Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Examples.VAVReheat.BaseClasses.Controls.Examples.OperationModes.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Examples.VAVReheat.BaseClasses.Controls.Examples.OperationModes,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Examples.VAVReheat.BaseClasses.Controls.Examples.OperationModes") translateModel(Buildings.Examples.VAVReheat.BaseClasses.Controls.Examples.OperationModes,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Examples.VAVReheat.BaseClasses.Controls.Examples.OperationModes") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.084/2.084, allocations: 391.2 MB / 407 MB, free: 10.88 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001139/0.001139, allocations: 203.4 kB / 499.1 MB, free: 4.613 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.385/1.385, allocations: 222.9 MB / 0.7948 GB, free: 15.77 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001091/0.001091, allocations: 107.8 kB / 0.9329 GB, free: 7.047 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.001145/0.001145, allocations: 46.44 kB / 1.081 GB, free: 218.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2592/0.2604, allocations: 140.6 MB / 1.218 GB, free: 117.2 MB / 0.823 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.VAVReheat.BaseClasses.Controls.Examples.OperationModes): time 0.005054/0.2655, allocations: 4.845 MB / 1.223 GB, free: 112.3 MB / 0.823 GB Notification: Performance of NFInst.instExpressions: time 0.002696/0.2682, allocations: 2.12 MB / 1.225 GB, free: 110.2 MB / 0.823 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004024/0.2686, allocations: 35.81 kB / 1.225 GB, free: 110.1 MB / 0.823 GB Notification: Performance of NFTyping.typeComponents: time 0.0003339/0.269, allocations: 126.8 kB / 1.225 GB, free: 110 MB / 0.823 GB Notification: Performance of NFTyping.typeBindings: time 0.000343/0.2693, allocations: 142.9 kB / 1.225 GB, free: 109.9 MB / 0.823 GB Notification: Performance of NFTyping.typeClassSections: time 0.00109/0.2704, allocations: 0.7216 MB / 1.226 GB, free: 109.1 MB / 0.823 GB Notification: Performance of NFFlatten.flatten: time 0.001055/0.2715, allocations: 1.711 MB / 1.228 GB, free: 107.4 MB / 0.823 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001136/0.2726, allocations: 1.369 MB / 1.229 GB, free: 106 MB / 0.823 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003492/0.273, allocations: 0.5447 MB / 1.229 GB, free: 105.5 MB / 0.823 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004175/0.2734, allocations: 0.6298 MB / 1.23 GB, free: 104.8 MB / 0.823 GB Notification: Performance of NFPackage.collectConstants: time 0.0001297/0.2735, allocations: 100 kB / 1.23 GB, free: 104.8 MB / 0.823 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002511/0.2738, allocations: 199.9 kB / 1.23 GB, free: 104.6 MB / 0.823 GB Notification: Performance of NFScalarize.scalarize: time 0.0002041/0.274, allocations: 322.8 kB / 1.231 GB, free: 104.2 MB / 0.823 GB Notification: Performance of NFVerifyModel.verify: time 0.0004093/0.2744, allocations: 0.6604 MB / 1.231 GB, free: 103.6 MB / 0.823 GB Notification: Performance of NFConvertDAE.convert: time 0.001166/0.2756, allocations: 1.982 MB / 1.233 GB, free: 101.6 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.2756, allocations: 4 kB / 1.233 GB, free: 101.6 MB / 0.823 GB Notification: Performance of FrontEnd: time 8.11e-07/0.2756, allocations: 0 / 1.233 GB, free: 101.6 MB / 0.823 GB Notification: Performance of Transformations before backend: time 1.306e-05/0.2756, allocations: 0 / 1.233 GB, free: 101.6 MB / 0.823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 375 * Number of variables: 375 Notification: Performance of Generate backend data structure: time 0.002102/0.2777, allocations: 1.694 MB / 1.235 GB, free: 99.81 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 3.426e-05/0.2778, allocations: 15.98 kB / 1.235 GB, free: 99.79 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001881/0.278, allocations: 159.1 kB / 1.235 GB, free: 99.64 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008529/0.2788, allocations: 0.7493 MB / 1.236 GB, free: 98.84 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.189e-05/0.2789, allocations: 131.3 kB / 1.236 GB, free: 98.71 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001609/0.2791, allocations: 160.4 kB / 1.236 GB, free: 98.56 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001831/0.2809, allocations: 1.608 MB / 1.238 GB, free: 96.84 MB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.398e-05/0.281, allocations: 0 / 1.238 GB, free: 96.84 MB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.393e-05/0.2811, allocations: 71.92 kB / 1.238 GB, free: 96.77 MB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.091e-05/0.2811, allocations: 36 kB / 1.238 GB, free: 96.74 MB / 0.823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001602/0.2827, allocations: 1.205 MB / 1.239 GB, free: 95.53 MB / 0.823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004679/0.2874, allocations: 5.685 MB / 1.244 GB, free: 89.68 MB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001475/0.2889, allocations: 1.178 MB / 1.246 GB, free: 88.42 MB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005866/0.2895, allocations: 0.5211 MB / 1.246 GB, free: 87.88 MB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 8.079e-05/0.2896, allocations: 25.31 kB / 1.246 GB, free: 87.85 MB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000764/0.2904, allocations: 0.6375 MB / 1.247 GB, free: 87.18 MB / 0.823 GB Notification: Performance of pre-optimization done (n=124): time 3.005e-06/0.2904, allocations: 0 / 1.247 GB, free: 87.18 MB / 0.823 GB Notification: Performance of matching and sorting (n=124): time 0.001798/0.2922, allocations: 1.277 MB / 1.248 GB, free: 85.89 MB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.51e-05/0.2923, allocations: 272.3 kB / 1.248 GB, free: 85.57 MB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005276/0.2928, allocations: 0.6309 MB / 1.249 GB, free: 84.93 MB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 8.678e-05/0.2929, allocations: 81.69 kB / 1.249 GB, free: 84.84 MB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 0.000254/0.2932, allocations: 0.5237 MB / 1.249 GB, free: 84.31 MB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001717/0.2933, allocations: 319.8 kB / 1.25 GB, free: 83.99 MB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003379/0.2937, allocations: 339.4 kB / 1.25 GB, free: 83.65 MB / 0.823 GB Notification: Performance of setup shared object (initialization): time 7.116e-05/0.2938, allocations: 349.9 kB / 1.25 GB, free: 83.3 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005811/0.2944, allocations: 423.8 kB / 1.251 GB, free: 82.89 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007223/0.2951, allocations: 0.7739 MB / 1.252 GB, free: 81.97 MB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001069/0.2962, allocations: 1.028 MB / 1.253 GB, free: 80.81 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.441e-06/0.2962, allocations: 3.938 kB / 1.253 GB, free: 80.81 MB / 0.823 GB Notification: Performance of matching and sorting (n=193) (initialization): time 0.00159/0.2978, allocations: 1.277 MB / 1.254 GB, free: 79.52 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 2.176e-05/0.2978, allocations: 8 kB / 1.254 GB, free: 79.52 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.205e-05/0.2978, allocations: 12 kB / 1.254 GB, free: 79.5 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.787e-05/0.2979, allocations: 16 kB / 1.254 GB, free: 79.49 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00054/0.2984, allocations: 179.6 kB / 1.254 GB, free: 79.31 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.004e-05/0.2984, allocations: 24.48 kB / 1.254 GB, free: 79.29 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006661/0.2991, allocations: 182.5 kB / 1.254 GB, free: 79.11 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.402e-05/0.2992, allocations: 63.98 kB / 1.254 GB, free: 79.05 MB / 0.823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 42 * Number of states: 0 () * Number of discrete variables: 134 ($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.start.t_start,$PRE.operationModes.start.t_start,operationModes.t5.t_start,$PRE.operationModes.t5.t_start,operationModes.t3.t_start,$PRE.operationModes.t3.t_start,operationModes.t4.t_start,$PRE.operationModes.t4.t_start,operationModes.t7.t_start,$PRE.operationModes.t7.t_start,operationModes.t9.t_start,$PRE.operationModes.t9.t_start,operationModes.t8.t_start,$PRE.operationModes.t8.t_start,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.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 (190): * Single equations (assignments): 189 * 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.0004947/0.2997, allocations: 435.4 kB / 1.255 GB, free: 78.6 MB / 0.823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001192/0.2998, allocations: 98.86 kB / 1.255 GB, free: 78.5 MB / 0.823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001542/0.3014, allocations: 1.024 MB / 1.256 GB, free: 77.47 MB / 0.823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.488e-05/0.3014, allocations: 12 kB / 1.256 GB, free: 77.46 MB / 0.823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.086e-05/0.3014, allocations: 4 kB / 1.256 GB, free: 77.46 MB / 0.823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.219e-05/0.3015, allocations: 23.84 kB / 1.256 GB, free: 77.43 MB / 0.823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003323/0.3048, allocations: 2.44 MB / 1.258 GB, free: 74.94 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.675e-06/0.3048, allocations: 4 kB / 1.258 GB, free: 74.93 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004258/0.3052, allocations: 107.8 kB / 1.258 GB, free: 74.83 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.282e-05/0.3053, allocations: 11.98 kB / 1.258 GB, free: 74.82 MB / 0.823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.536e-05/0.3053, allocations: 27.98 kB / 1.258 GB, free: 74.79 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.074e-05/0.3053, allocations: 11.94 kB / 1.258 GB, free: 74.78 MB / 0.823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.3054, allocations: 4 kB / 1.258 GB, free: 74.77 MB / 0.823 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.003175/0.3085, allocations: 2.323 MB / 1.261 GB, free: 72.38 MB / 0.823 GB Error: post-optimization module symbolicJacobian (simulation) failed.