Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Examples.VAVReheat.Controls.Examples.OperationModes.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: translateModel(Buildings.Examples.VAVReheat.Controls.Examples.OperationModes,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Examples.VAVReheat.Controls.Examples.OperationModes") translateModel(Buildings.Examples.VAVReheat.Controls.Examples.OperationModes,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Examples.VAVReheat.Controls.Examples.OperationModes") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.534/1.534, allocations: 292.3 MB / 308.1 MB, free: 4.277 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001064/0.001063, allocations: 188.4 kB / 376.9 MB, free: 1.797 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.399/1.399, allocations: 205.1 MB / 0.6354 GB, free: 9.762 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009212/0.0009213, allocations: 103.6 kB / 0.748 GB, free: 61.29 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0009852/0.0009853, allocations: 43.92 kB / 0.8704 GB, free: 13.09 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2288/0.2298, allocations: 114.5 MB / 0.9822 GB, free: 10.37 MB / 0.7136 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.VAVReheat.Controls.Examples.OperationModes): time 0.005957/0.2357, allocations: 4.844 MB / 0.9869 GB, free: 5.492 MB / 0.7136 GB Notification: Performance of NFInst.instExpressions: time 0.003415/0.2392, allocations: 2.198 MB / 0.9891 GB, free: 3.285 MB / 0.7136 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004312/0.2396, allocations: 31.88 kB / 0.9891 GB, free: 3.254 MB / 0.7136 GB Notification: Performance of NFTyping.typeComponents: time 0.0003538/0.24, allocations: 130.8 kB / 0.9893 GB, free: 3.125 MB / 0.7136 GB Notification: Performance of NFTyping.typeBindings: time 0.0003729/0.2404, allocations: 134.9 kB / 0.9894 GB, free: 2.992 MB / 0.7136 GB Notification: Performance of NFTyping.typeClassSections: time 0.001333/0.2417, allocations: 0.7297 MB / 0.9901 GB, free: 2.262 MB / 0.7136 GB Notification: Performance of NFFlatten.flatten: time 0.001378/0.2431, allocations: 1.712 MB / 0.9918 GB, free: 0.5469 MB / 0.7136 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001453/0.2446, allocations: 1.366 MB / 0.9931 GB, free: 15.14 MB / 0.7292 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004463/0.245, allocations: 0.5408 MB / 0.9936 GB, free: 14.6 MB / 0.7292 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005381/0.2456, allocations: 0.6258 MB / 0.9942 GB, free: 13.97 MB / 0.7292 GB Notification: Performance of NFPackage.collectConstants: time 0.0001491/0.2457, allocations: 100 kB / 0.9943 GB, free: 13.87 MB / 0.7292 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003111/0.2461, allocations: 203.9 kB / 0.9945 GB, free: 13.67 MB / 0.7292 GB Notification: Performance of NFScalarize.scalarize: time 0.0002602/0.2463, allocations: 326.8 kB / 0.9948 GB, free: 13.35 MB / 0.7292 GB Notification: Performance of NFVerifyModel.verify: time 0.0005096/0.2469, allocations: 0.6409 MB / 0.9955 GB, free: 12.71 MB / 0.7292 GB Notification: Performance of NFConvertDAE.convert: time 0.001409/0.2483, allocations: 1.9 MB / 0.9973 GB, free: 10.8 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 5.62e-06/0.2483, allocations: 0 / 0.9973 GB, free: 10.8 MB / 0.7292 GB Notification: Performance of FrontEnd: time 8.51e-07/0.2483, allocations: 3.938 kB / 0.9973 GB, free: 10.8 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 1.464e-05/0.2483, allocations: 4 kB / 0.9973 GB, free: 10.79 MB / 0.7292 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 378 * Number of variables: 378 Notification: Performance of Generate backend data structure: time 0.002492/0.2508, allocations: 1.667 MB / 0.999 GB, free: 9.051 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 4.408e-05/0.2509, allocations: 8.031 kB / 0.999 GB, free: 9.043 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002212/0.2511, allocations: 159.1 kB / 0.9991 GB, free: 8.887 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001023/0.2521, allocations: 0.7454 MB / 0.9998 GB, free: 8.098 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.737e-05/0.2522, allocations: 123.3 kB / 1 GB, free: 7.977 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001835/0.2524, allocations: 164.3 kB / 1 GB, free: 7.816 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002206/0.2546, allocations: 1.608 MB / 1.002 GB, free: 6.102 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.261e-05/0.2547, allocations: 7.938 kB / 1.002 GB, free: 6.094 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001066/0.2548, allocations: 67.98 kB / 1.002 GB, free: 6.027 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.956e-05/0.2548, allocations: 39.98 kB / 1.002 GB, free: 5.988 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001863/0.2567, allocations: 1.205 MB / 1.003 GB, free: 4.777 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00574/0.2624, allocations: 5.685 MB / 1.009 GB, free: 14.93 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001616/0.2641, allocations: 1.046 MB / 1.01 GB, free: 13.86 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006795/0.2648, allocations: 491.7 kB / 1.01 GB, free: 13.38 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 8.788e-05/0.2649, allocations: 25.05 kB / 1.01 GB, free: 13.36 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008005/0.2657, allocations: 0.5164 MB / 1.011 GB, free: 12.83 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=118): time 3.998e-06/0.2657, allocations: 0 / 1.011 GB, free: 12.83 MB / 0.7448 GB Notification: Performance of matching and sorting (n=118): time 0.00195/0.2676, allocations: 1.206 MB / 1.012 GB, free: 11.62 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.052e-05/0.2677, allocations: 76.39 kB / 1.012 GB, free: 11.53 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006489/0.2684, allocations: 0.6592 MB / 1.012 GB, free: 10.86 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 9.332e-05/0.2685, allocations: 69.7 kB / 1.013 GB, free: 10.79 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 0.000366/0.2688, allocations: 0.5544 MB / 1.013 GB, free: 10.22 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002269/0.2691, allocations: 299.9 kB / 1.013 GB, free: 9.922 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000387/0.2695, allocations: 335.5 kB / 1.014 GB, free: 9.59 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001238/0.2696, allocations: 349.9 kB / 1.014 GB, free: 9.242 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006419/0.2703, allocations: 415.8 kB / 1.014 GB, free: 8.836 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008764/0.2711, allocations: 0.7507 MB / 1.015 GB, free: 7.953 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001242/0.2724, allocations: 0.9971 MB / 1.016 GB, free: 6.824 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.763e-06/0.2724, allocations: 4 kB / 1.016 GB, free: 6.82 MB / 0.7448 GB Notification: Performance of matching and sorting (n=187) (initialization): time 0.001762/0.2742, allocations: 1.238 MB / 1.017 GB, free: 5.574 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 2.521e-05/0.2742, allocations: 11.94 kB / 1.017 GB, free: 5.562 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.719e-05/0.2742, allocations: 12.81 kB / 1.017 GB, free: 5.551 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.624e-05/0.2743, allocations: 16 kB / 1.017 GB, free: 5.535 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005894/0.2749, allocations: 183.6 kB / 1.018 GB, free: 5.355 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.88e-05/0.2749, allocations: 27.91 kB / 1.018 GB, free: 5.328 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006713/0.2756, allocations: 178.6 kB / 1.018 GB, free: 5.152 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.719e-05/0.2757, allocations: 59.98 kB / 1.018 GB, free: 5.094 MB / 0.7448 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 42 * Number of states: 0 () * Number of discrete variables: 121 ($PRE.operationModes.start.enableFire,$PRE.operationModes.t2.enableFire,$PRE.operationModes.t1.enableFire,$PRE.operationModes.t6.enableFire,$PRE.operationModes.t5.enableFire,$PRE.operationModes.t3.enableFire,$PRE.operationModes.t4.enableFire,$PRE.operationModes.t7.enableFire,$PRE.operationModes.t9.enableFire,$PRE.operationModes.t8.enableFire,operationModes.stateGraphRoot.resume,operationModes.stateGraphRoot.suspend,operationModes.start.condition,operationModes.preCooSta.and3.u[2],occSch.tNext,$PRE.occSch.tNext,occSch.tNonOcc,$PRE.occSch.tNonOcc,occSch.tOcc,$PRE.occSch.tOcc,occSch.occupied,$PRE.occSch.occupied,modSel1.y,modSel.y,operationModes.or2.y,operationModes.yEco,operationModes.yFan,operationModes.sum.u[6],operationModes.sum.u[5],operationModes.sum.u[4],operationModes.sum.u[3],operationModes.sum.u[2],operationModes.sum.u[1],operationModes.t8.enableFire,operationModes.not1.y,operationModes.t9.enableFire,operationModes.t9.condition,operationModes.preCooSta.and3.u[3],operationModes.preCooSta.and3.u[1],operationModes.booleanExpression.y,operationModes.t7.enableFire,operationModes.t7.condition,operationModes.morPreCoo.active,operationModes.morPreCoo.oldActive,$PRE.operationModes.morPreCoo.oldActive,operationModes.morPreCoo.newActive,$PRE.operationModes.morPreCoo.newActive,operationModes.morPreCoo.localActive,$PRE.operationModes.morPreCoo.localActive,operationModes.t4.enableFire,operationModes.t4.condition,operationModes.t3.enableFire,operationModes.t3.condition,operationModes.occ.active,operationModes.occ.oldActive,$PRE.operationModes.occ.oldActive,operationModes.occ.newActive,$PRE.operationModes.occ.newActive,operationModes.occ.inPort[3].occupied,operationModes.occ.inPort[2].occupied,operationModes.occ.localActive,$PRE.operationModes.occ.localActive,operationModes.t5.enableFire,operationModes.t5.condition,operationModes.t6.t_start,$PRE.operationModes.t6.t_start,operationModes.t6.fire,operationModes.t6.enableFire,operationModes.morWarUp.active,operationModes.morWarUp.oldActive,$PRE.operationModes.morWarUp.oldActive,operationModes.morWarUp.newActive,$PRE.operationModes.morWarUp.newActive,operationModes.morWarUp.inPort[2].occupied,operationModes.morWarUp.localActive,$PRE.operationModes.morWarUp.localActive,operationModes.stateGraphRoot.activeSteps,operationModes.t1.t_start,$PRE.operationModes.t1.t_start,operationModes.t1.fire,operationModes.t1.enableFire,operationModes.t1.condition,operationModes.t2.t_start,$PRE.operationModes.t2.t_start,operationModes.t2.fire,operationModes.t2.enableFire,operationModes.t2.condition,operationModes.unOccNigSetBac.active,operationModes.unOccNigSetBac.oldActive,$PRE.operationModes.unOccNigSetBac.oldActive,operationModes.unOccNigSetBac.newActive,$PRE.operationModes.unOccNigSetBac.newActive,operationModes.unOccNigSetBac.outPort[2].available,operationModes.unOccNigSetBac.localActive,$PRE.operationModes.unOccNigSetBac.localActive,operationModes.unOccOff.active,operationModes.unOccOff.oldActive,$PRE.operationModes.unOccOff.oldActive,operationModes.unOccOff.newActive,$PRE.operationModes.unOccOff.newActive,operationModes.unOccOff.outPort[4].available,operationModes.unOccOff.outPort[3].available,operationModes.unOccOff.outPort[2].available,operationModes.unOccOff.inPort[3].occupied,operationModes.unOccOff.inPort[2].occupied,operationModes.unOccOff.localActive,$PRE.operationModes.unOccOff.localActive,operationModes.start.enableFire,operationModes.initialStepWithSignal.active,operationModes.initialStepWithSignal.oldActive,$PRE.operationModes.initialStepWithSignal.oldActive,operationModes.initialStepWithSignal.newActive,$PRE.operationModes.initialStepWithSignal.newActive,operationModes.initialStepWithSignal.localActive,$PRE.operationModes.initialStepWithSignal.localActive,controlBus.controlMode,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,PID.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (184): * Single equations (assignments): 183 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004795/0.2762, allocations: 424.5 kB / 1.018 GB, free: 4.668 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001106/0.2763, allocations: 98.78 kB / 1.018 GB, free: 4.57 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001623/0.2779, allocations: 1.032 MB / 1.019 GB, free: 3.531 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.028e-05/0.278, allocations: 16 kB / 1.019 GB, free: 3.516 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.432e-06/0.278, allocations: 7.938 kB / 1.019 GB, free: 3.508 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.258e-06/0.278, allocations: 3.984 kB / 1.019 GB, free: 3.504 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003375/0.2814, allocations: 2.417 MB / 1.022 GB, free: 1.027 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.287e-06/0.2814, allocations: 0 / 1.022 GB, free: 1.027 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004354/0.2818, allocations: 107.8 kB / 1.022 GB, free: 0.9219 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.684e-06/0.2818, allocations: 7.984 kB / 1.022 GB, free: 0.9141 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.681e-05/0.2819, allocations: 24 kB / 1.022 GB, free: 0.8906 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.572e-06/0.2819, allocations: 7.984 kB / 1.022 GB, free: 0.8828 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.2819, allocations: 3.938 kB / 1.022 GB, free: 0.8789 MB / 0.7448 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/Compiler/BackEnd/Differentiate.mo:267:5-267:157:writable] Error: Derivative of expression "operationModes.sum.u[1] = if operationModes.morPreCoo.active then Integer(operationModes.morPreCoo.mode) else 0" w.r.t. "dummyVarA" is non-existent. Error: Internal error SymbolicJacobian.deriveAll failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/Compiler/BackEnd/SymbolicJacobian.mo:2440:7-2440:87:writable] Error: Internal error function generateSymbolicJacobian failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/Compiler/BackEnd/SymbolicJacobian.mo:2231:9-2231:79:writable] Error: Internal error function createJacobian failed Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4614/0.7434, allocations: 2.226 MB / 1.024 GB, free: 97.5 MB / 0.7448 GB Error: post-optimization module symbolicJacobian (simulation) failed.