Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.StateGraph.Examples.ControlledTanks.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: translateModel(Modelica.StateGraph.Examples.ControlledTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank2.level|shut.on|shut.reset.1.|shut.reset.2.|start.on|start.reset.1.|start.reset.2.|stop.on|stop.reset.1.|stop.reset.2.|tankController.T1.enableFire|tankController.T2.enableFire|tankController.T3.enableFire|tankController.T4.enableFire|tankController.T5.enableFire|tankController.T6.enableFire|tankController.makeProduct.T1.enableFire|tankController.makeProduct.T2.enableFire|tankController.makeProduct.T3.enableFire|tankController.makeProduct.T4.enableFire",fileNamePrefix="Modelica_3.2.1_Modelica.StateGraph.Examples.ControlledTanks") Notification: Performance of loadModel(Modelica): time 1.661/1.661, allocations: 171.2 MB / 186.7 MB, free: 1.121 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003476/0.0003476, allocations: 11.98 kB / 233.9 MB, free: 2.391 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08407/0.08444, allocations: 38.77 MB / 272.6 MB, free: 11.54 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.ControlledTanks): time 0.004691/0.08918, allocations: 2.653 MB / 275.3 MB, free: 8.859 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.004535/0.09377, allocations: 1.871 MB / 277.1 MB, free: 6.98 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004891/0.0943, allocations: 23.88 kB / 277.2 MB, free: 6.957 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003282/0.09465, allocations: 107 kB / 277.3 MB, free: 6.852 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004997/0.09516, allocations: 91.64 kB / 277.4 MB, free: 6.762 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002327/0.0975, allocations: 0.5811 MB / 277.9 MB, free: 6.18 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.00178/0.0993, allocations: 0.9487 MB / 278.9 MB, free: 5.227 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001445/0.1008, allocations: 0.7586 MB / 279.7 MB, free: 4.457 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005423/0.1013, allocations: 358.7 kB / 280 MB, free: 4.105 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006018/0.1019, allocations: 402 kB / 280.4 MB, free: 3.711 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001568/0.1021, allocations: 52 kB / 280.4 MB, free: 3.66 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005045/0.1026, allocations: 171.8 kB / 280.6 MB, free: 3.492 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003461/0.103, allocations: 235.2 kB / 280.8 MB, free: 3.262 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003463/0.1034, allocations: 221.1 kB / 281.1 MB, free: 3.039 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002187/0.1056, allocations: 1.391 MB / 282.5 MB, free: 1.645 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.895e-06/0.1056, allocations: 0 / 282.5 MB, free: 1.645 MB / 234.7 MB Notification: Performance of FrontEnd: time 5.4e-06/0.1056, allocations: 0 / 282.5 MB, free: 1.645 MB / 234.7 MB Notification: Performance of Transformations before backend: time 3.915e-05/0.1057, allocations: 3.938 kB / 282.5 MB, free: 1.641 MB / 234.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 292 * Number of variables: 292 Notification: Performance of Generate backend data structure: time 0.002724/0.1084, allocations: 1.314 MB / 283.8 MB, free: 212 kB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.097e-05/0.1085, allocations: 12.03 kB / 283.8 MB, free: 200 kB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000329/0.1088, allocations: 122.6 kB / 283.9 MB, free: 76 kB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001324/0.1101, allocations: 0.6151 MB / 284.5 MB, free: 15.42 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002576/0.1104, allocations: 191.7 kB / 284.7 MB, free: 15.21 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002968/0.1107, allocations: 140 kB / 284.8 MB, free: 15.07 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00336/0.1141, allocations: 1.338 MB / 286.2 MB, free: 13.62 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.094e-05/0.1142, allocations: 7.938 kB / 286.2 MB, free: 13.62 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001676/0.1143, allocations: 48 kB / 286.2 MB, free: 13.57 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.028e-05/0.1144, allocations: 49.98 kB / 286.3 MB, free: 13.52 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002832/0.1173, allocations: 0.9484 MB / 287.2 MB, free: 12.57 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008416/0.1257, allocations: 5.143 MB / 292.4 MB, free: 7.27 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002365/0.1281, allocations: 0.988 MB / 293.4 MB, free: 6.211 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001754/0.1283, allocations: 106 kB / 293.5 MB, free: 6.09 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00153/0.1299, allocations: 0.7061 MB / 294.2 MB, free: 5.336 MB / 250.7 MB Notification: Performance of pre-optimization done (n=110): time 4.017e-06/0.1299, allocations: 0 / 294.2 MB, free: 5.336 MB / 250.7 MB Notification: Performance of matching and sorting (n=110): time 0.004024/0.1339, allocations: 1.868 MB / 296 MB, free: 3.316 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002636/0.1342, allocations: 404.8 kB / 296.4 MB, free: 2.836 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000932/0.1352, allocations: 0.5086 MB / 296.9 MB, free: 2.316 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002595/0.1355, allocations: 93.69 kB / 297 MB, free: 2.219 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004658/0.1359, allocations: 432.3 kB / 297.5 MB, free: 1.789 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003702/0.1363, allocations: 272.6 kB / 297.7 MB, free: 1.52 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001038/0.1364, allocations: 32 kB / 297.8 MB, free: 1.488 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0002328/0.1367, allocations: 386.7 kB / 298.1 MB, free: 1.102 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001149/0.1378, allocations: 395.8 kB / 298.5 MB, free: 0.7148 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.21/0.3478, allocations: 0.6998 MB / 299.2 MB, free: 29.95 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001551/0.3494, allocations: 0.6503 MB / 299.9 MB, free: 29.66 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.167e-05/0.3495, allocations: 2.656 kB / 299.9 MB, free: 29.66 MB / 250.7 MB Notification: Performance of matching and sorting (n=197) (initialization): time 0.003452/0.3529, allocations: 1.54 MB / 301.4 MB, free: 29.26 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001448/0.3531, allocations: 269.7 kB / 301.7 MB, free: 28.98 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.304e-05/0.3531, allocations: 8.594 kB / 301.7 MB, free: 28.98 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.289e-05/0.3532, allocations: 18.12 kB / 301.7 MB, free: 28.98 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008647/0.3541, allocations: 143.5 kB / 301.8 MB, free: 28.96 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.831e-05/0.3541, allocations: 25.97 kB / 301.9 MB, free: 28.96 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007827/0.3549, allocations: 135.5 kB / 302 MB, free: 28.96 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001699/0.3551, allocations: 67.03 kB / 302.1 MB, free: 28.96 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 41 * Number of states: 0 () * Number of discrete variables: 149 ($PRE.tankController.makeProduct.T1.enableFire,$PRE.tankController.makeProduct.T3.enableFire,$PRE.tankController.makeProduct.T2.enableFire,$PRE.tankController.makeProduct.T4.enableFire,$PRE.tankController.T1.enableFire,$PRE.tankController.T2.enableFire,$PRE.tankController.T3.enableFire,$PRE.tankController.T4.enableFire,$PRE.tankController.T5.enableFire,$PRE.tankController.T6.enableFire,$whenCondition3,$whenCondition2,$whenCondition1,$whenCondition5,$whenCondition4,$whenCondition6,$whenCondition8,$whenCondition7,$whenCondition9,$whenCondition11,$whenCondition10,$whenCondition12,tankController.s1.active,$PRE.tankController.s1.localActive,tankController.s1.localActive,tankController.s1.inPort[2].occupied,$PRE.tankController.s1.newActive,tankController.s1.newActive,$PRE.tankController.s1.oldActive,tankController.s1.oldActive,tankController.makeProduct.stateGraphRoot.suspend,tankController.makeProduct.stateGraphRoot.resume,tankController.makeProduct.active,$PRE.tankController.makeProduct.newActive,tankController.makeProduct.newActive,tankController.makeProduct.activeSteps,tankController.makeProduct.fillTank1.active,$PRE.tankController.makeProduct.fillTank1.localActive,tankController.makeProduct.fillTank1.localActive,$PRE.tankController.makeProduct.fillTank1.newActive,tankController.makeProduct.fillTank1.newActive,$PRE.tankController.makeProduct.fillTank1.oldActive,tankController.makeProduct.fillTank1.oldActive,tankController.makeProduct.T1.condition,tankController.makeProduct.T1.enableFire,tankController.makeProduct.fillTank2.active,$PRE.tankController.makeProduct.fillTank2.localActive,tankController.makeProduct.fillTank2.localActive,$PRE.tankController.makeProduct.fillTank2.newActive,tankController.makeProduct.fillTank2.newActive,$PRE.tankController.makeProduct.fillTank2.oldActive,tankController.makeProduct.fillTank2.oldActive,tankController.makeProduct.T3.condition,tankController.makeProduct.T3.enableFire,tankController.makeProduct.emptyTank2.active,$PRE.tankController.makeProduct.emptyTank2.localActive,tankController.makeProduct.emptyTank2.localActive,$PRE.tankController.makeProduct.emptyTank2.newActive,tankController.makeProduct.emptyTank2.newActive,$PRE.tankController.makeProduct.emptyTank2.oldActive,tankController.makeProduct.emptyTank2.oldActive,tankController.makeProduct.wait1.active,$PRE.tankController.makeProduct.wait1.localActive,tankController.makeProduct.wait1.localActive,$PRE.tankController.makeProduct.wait1.newActive,tankController.makeProduct.wait1.newActive,$PRE.tankController.makeProduct.wait1.oldActive,tankController.makeProduct.wait1.oldActive,tankController.makeProduct.T2.enableFire,tankController.makeProduct.T2.fire,$PRE.tankController.makeProduct.T2.t_start,tankController.makeProduct.T2.t_start,tankController.makeProduct.wait2.active,$PRE.tankController.makeProduct.wait2.localActive,tankController.makeProduct.wait2.localActive,$PRE.tankController.makeProduct.wait2.newActive,tankController.makeProduct.wait2.newActive,$PRE.tankController.makeProduct.wait2.oldActive,tankController.makeProduct.wait2.oldActive,tankController.makeProduct.T4.enableFire,tankController.makeProduct.T4.fire,$PRE.tankController.makeProduct.T4.t_start,tankController.makeProduct.T4.t_start,tankController.T1.enableFire,tankController.T2.condition,tankController.T2.enableFire,tankController.T3.enableFire,tankController.s2.active,$PRE.tankController.s2.localActive,tankController.s2.localActive,tankController.s2.outPort[2].available,$PRE.tankController.s2.newActive,tankController.s2.newActive,$PRE.tankController.s2.oldActive,tankController.s2.oldActive,tankController.T4.enableFire,tankController.T5.enableFire,tankController.emptyTanks.active,$PRE.tankController.emptyTanks.localActive,tankController.emptyTanks.localActive,$PRE.tankController.emptyTanks.newActive,tankController.emptyTanks.newActive,$PRE.tankController.emptyTanks.oldActive,tankController.emptyTanks.oldActive,tankController.T6.condition,tankController.T6.enableFire,$PRE.start.reset[1],start.reset[1],$PRE.start.reset[2],start.reset[2],$PRE.start.on,start.on,$PRE.start.table.y,start.table.y,$PRE.start.table.nextTime,start.table.nextTime,$PRE.start.table.index,start.table.index,$PRE.stop.reset[1],stop.reset[1],$PRE.stop.reset[2],stop.reset[2],$PRE.stop.on,stop.on,$PRE.stop.table.y,stop.table.y,$PRE.stop.table.nextTime,stop.table.nextTime,$PRE.stop.table.index,stop.table.index,$PRE.shut.reset[1],shut.reset[1],$PRE.shut.reset[2],shut.reset[2],$PRE.shut.on,shut.on,$PRE.shut.table.y,shut.table.y,$PRE.shut.table.nextTime,shut.table.nextTime,$PRE.shut.table.index,shut.table.index,valve2.valveControl,valve3.valveControl,stateGraphRoot.activeSteps,stateGraphRoot.resume,stateGraphRoot.suspend,tankController.makeProduct.T4.condition,tankController.makeProduct.T2.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (185): * Single equations (assignments): 176 * Array equations: 0 * Algorithm blocks: 9 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0009792/0.3561, allocations: 0.609 MB / 302.7 MB, free: 28.59 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002241/0.3563, allocations: 75.38 kB / 302.7 MB, free: 28.59 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002859/0.3592, allocations: 1.23 MB / 304 MB, free: 27.98 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.138e-05/0.3593, allocations: 5.016 kB / 304 MB, free: 27.98 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.071e-06/0.3593, allocations: 1.125 kB / 304 MB, free: 27.98 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004892/0.3598, allocations: 260.8 kB / 304.2 MB, free: 27.81 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002443/0.36, allocations: 44.42 kB / 304.3 MB, free: 27.79 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005465/0.3606, allocations: 51.86 kB / 304.3 MB, free: 27.78 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004617/0.3611, allocations: 146.2 kB / 304.5 MB, free: 27.74 MB / 250.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.003262/0.3643, allocations: 1.629 MB / 306.1 MB, free: 26.71 MB / 250.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.004089/0.3685, allocations: 1.89 MB / 308 MB, free: 25.72 MB / 250.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001179/0.3697, allocations: 0.5128 MB / 308.5 MB, free: 25.5 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0004562/0.3702, allocations: 274 kB / 308.8 MB, free: 25.35 MB / 250.7 MB Notification: Performance of Backend: time 7.01e-07/0.3702, allocations: 0 / 308.8 MB, free: 25.35 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.002719/0.3729, allocations: 1.352 MB / 310.1 MB, free: 24.44 MB / 250.7 MB Notification: Performance of SimCode: time 0.003573/0.3765, allocations: 2.421 MB / 312.5 MB, free: 22.59 MB / 250.7 MB Notification: Performance of Templates: time 0.0298/0.4064, allocations: 10.66 MB / 323.2 MB, free: 15.55 MB / 250.7 MB