Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.StateGraph.Examples.ControlledTanks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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.3_Modelica.StateGraph.Examples.ControlledTanks") 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.3_Modelica.StateGraph.Examples.ControlledTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001037/0.001037, allocations: 107.3 kB / 18.4 MB, free: 4.676 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001182/0.001182, allocations: 191.3 kB / 19.34 MB, free: 3.754 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.348/1.348, allocations: 205.1 MB / 225.2 MB, free: 12.27 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001397/0.001397, allocations: 47.92 kB / 329.2 MB, free: 3.367 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09225/0.09365, allocations: 46.62 MB / 375.8 MB, free: 4.629 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.ControlledTanks): time 0.006455/0.1001, allocations: 3.792 MB / 379.6 MB, free: 0.8125 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.2117/0.3119, allocations: 2.426 MB / 382 MB, free: 9.625 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008294/0.3128, allocations: 28.69 kB / 382 MB, free: 9.625 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001486/0.3143, allocations: 0.5624 MB / 382.6 MB, free: 9.613 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001305/0.3156, allocations: 429.7 kB / 383 MB, free: 9.562 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002693/0.3183, allocations: 1.031 MB / 384.1 MB, free: 9.5 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003447/0.3218, allocations: 2.115 MB / 386.2 MB, free: 8.492 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002102/0.3239, allocations: 1.214 MB / 387.4 MB, free: 7.98 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001321/0.3253, allocations: 0.6996 MB / 388.1 MB, free: 7.617 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001117/0.3264, allocations: 0.7084 MB / 388.8 MB, free: 7.238 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003862/0.3268, allocations: 196.7 kB / 389 MB, free: 7.238 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006329/0.3274, allocations: 285.3 kB / 389.3 MB, free: 7.215 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004596/0.3279, allocations: 475 kB / 389.7 MB, free: 6.934 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006773/0.3286, allocations: 0.7523 MB / 390.5 MB, free: 6.383 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002929/0.3315, allocations: 2.276 MB / 392.8 MB, free: 5.469 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.3316, allocations: 0 / 392.8 MB, free: 5.469 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.425e-06/0.3316, allocations: 0 / 392.8 MB, free: 5.469 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.381e-05/0.3316, allocations: 5.844 kB / 392.8 MB, free: 5.465 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 313 * Number of variables: 313 Notification: Performance of Generate backend data structure: time 0.003624/0.3353, allocations: 1.825 MB / 394.6 MB, free: 4.133 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.042e-05/0.3353, allocations: 9.188 kB / 394.6 MB, free: 4.133 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003955/0.3357, allocations: 160 kB / 394.8 MB, free: 4.055 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001316/0.3371, allocations: 0.8951 MB / 395.7 MB, free: 3.465 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001908/0.3373, allocations: 200.8 kB / 395.8 MB, free: 3.316 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001946/0.3375, allocations: 137.9 kB / 396 MB, free: 3.273 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00246/0.3399, allocations: 1.452 MB / 397.4 MB, free: 2.484 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.215e-05/0.34, allocations: 5.094 kB / 397.4 MB, free: 2.48 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001112/0.3401, allocations: 54.22 kB / 397.5 MB, free: 2.441 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.53e-05/0.3402, allocations: 49.16 kB / 397.5 MB, free: 2.438 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001851/0.342, allocations: 0.9645 MB / 398.5 MB, free: 2.051 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006397/0.3485, allocations: 5.446 MB / 404 MB, free: 13.5 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001947/0.3504, allocations: 1.086 MB / 405 MB, free: 12.77 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008286/0.3513, allocations: 460.8 kB / 405.5 MB, free: 12.54 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001655/0.3515, allocations: 99.92 kB / 405.6 MB, free: 12.43 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001137/0.3526, allocations: 0.6326 MB / 406.2 MB, free: 12 MB / 334.1 MB Notification: Performance of pre-optimization done (n=116): time 5.069e-06/0.3527, allocations: 4 kB / 406.2 MB, free: 11.99 MB / 334.1 MB Notification: Performance of matching and sorting (n=116): time 0.00276/0.3554, allocations: 1.324 MB / 407.5 MB, free: 11.31 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001775/0.3556, allocations: 313 kB / 407.9 MB, free: 10.95 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001513/0.3571, allocations: 0.9449 MB / 408.8 MB, free: 10.4 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002111/0.3574, allocations: 96.77 kB / 408.9 MB, free: 10.32 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005714/0.3579, allocations: 0.5367 MB / 409.4 MB, free: 9.879 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003007/0.3583, allocations: 294.4 kB / 409.7 MB, free: 9.645 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005117/0.3588, allocations: 361.3 kB / 410.1 MB, free: 9.438 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001851/0.359, allocations: 363.1 kB / 410.4 MB, free: 9.09 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008462/0.3598, allocations: 416 kB / 410.8 MB, free: 8.887 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001499/0.3613, allocations: 0.7986 MB / 411.6 MB, free: 8.203 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001899/0.3632, allocations: 1.194 MB / 412.8 MB, free: 7.23 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.338e-05/0.3633, allocations: 3.312 kB / 412.8 MB, free: 7.23 MB / 334.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.003048/0.3663, allocations: 1.419 MB / 414.2 MB, free: 6.477 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001013/0.3665, allocations: 97.78 kB / 414.3 MB, free: 6.375 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.441e-05/0.3665, allocations: 10.66 kB / 414.3 MB, free: 6.375 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.347e-05/0.3666, allocations: 21.45 kB / 414.4 MB, free: 6.371 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009673/0.3675, allocations: 174.4 kB / 414.5 MB, free: 6.312 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.959e-05/0.3676, allocations: 26.52 kB / 414.6 MB, free: 6.305 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001249/0.3689, allocations: 134.2 kB / 414.7 MB, free: 6.215 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002163/0.3691, allocations: 72.55 kB / 414.8 MB, free: 6.195 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * Number of states: 0 () * Number of discrete variables: 146 ($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,$PRE.shut.table.combiTimeTable.nextTimeEvent,$whenCondition6,$PRE.stop.table.combiTimeTable.nextTimeEvent,$whenCondition5,$PRE.start.table.combiTimeTable.nextTimeEvent,$whenCondition4,stateGraphRoot.activeSteps,valve3.valveControl,valve2.valveControl,shut.table.combiTimeTable.nextTimeEventScaled,$PRE.shut.table.combiTimeTable.nextTimeEventScaled,shut.table.combiTimeTable.nextTimeEvent,shut.table.y,shut.on,$PRE.shut.on,shut.reset[2],$PRE.shut.reset[2],shut.reset[1],$PRE.shut.reset[1],stop.table.combiTimeTable.nextTimeEventScaled,$PRE.stop.table.combiTimeTable.nextTimeEventScaled,stop.table.combiTimeTable.nextTimeEvent,stop.table.y,stop.on,$PRE.stop.on,stop.reset[2],$PRE.stop.reset[2],stop.reset[1],$PRE.stop.reset[1],start.table.combiTimeTable.nextTimeEventScaled,$PRE.start.table.combiTimeTable.nextTimeEventScaled,start.table.combiTimeTable.nextTimeEvent,start.table.y,start.on,$PRE.start.on,start.reset[2],$PRE.start.reset[2],start.reset[1],$PRE.start.reset[1],tankController.T6.enableFire,tankController.T6.localCondition,tankController.emptyTanks.oldActive,$PRE.tankController.emptyTanks.oldActive,tankController.emptyTanks.newActive,$PRE.tankController.emptyTanks.newActive,tankController.emptyTanks.localActive,$PRE.tankController.emptyTanks.localActive,tankController.emptyTanks.active,tankController.T5.enableFire,tankController.T4.enableFire,tankController.s2.oldActive,$PRE.tankController.s2.oldActive,tankController.s2.newActive,$PRE.tankController.s2.newActive,tankController.s2.outPort[2].available,tankController.s2.localActive,$PRE.tankController.s2.localActive,tankController.s2.active,tankController.T3.enableFire,tankController.T2.enableFire,tankController.T2.localCondition,tankController.T1.enableFire,tankController.makeProduct.T4.t_start,$PRE.tankController.makeProduct.T4.t_start,tankController.makeProduct.T4.fire,tankController.makeProduct.T4.enableFire,tankController.makeProduct.wait2.oldActive,$PRE.tankController.makeProduct.wait2.oldActive,tankController.makeProduct.wait2.newActive,$PRE.tankController.makeProduct.wait2.newActive,tankController.makeProduct.wait2.localActive,$PRE.tankController.makeProduct.wait2.localActive,tankController.makeProduct.wait2.active,tankController.makeProduct.T2.t_start,$PRE.tankController.makeProduct.T2.t_start,tankController.makeProduct.T2.fire,tankController.makeProduct.T2.enableFire,tankController.makeProduct.wait1.oldActive,$PRE.tankController.makeProduct.wait1.oldActive,tankController.makeProduct.wait1.newActive,$PRE.tankController.makeProduct.wait1.newActive,tankController.makeProduct.wait1.localActive,$PRE.tankController.makeProduct.wait1.localActive,tankController.makeProduct.wait1.active,tankController.makeProduct.emptyTank2.oldActive,$PRE.tankController.makeProduct.emptyTank2.oldActive,tankController.makeProduct.emptyTank2.newActive,$PRE.tankController.makeProduct.emptyTank2.newActive,tankController.makeProduct.emptyTank2.localActive,$PRE.tankController.makeProduct.emptyTank2.localActive,tankController.makeProduct.emptyTank2.active,tankController.makeProduct.T3.enableFire,tankController.makeProduct.T3.localCondition,tankController.makeProduct.fillTank2.oldActive,$PRE.tankController.makeProduct.fillTank2.oldActive,tankController.makeProduct.fillTank2.newActive,$PRE.tankController.makeProduct.fillTank2.newActive,tankController.makeProduct.fillTank2.localActive,$PRE.tankController.makeProduct.fillTank2.localActive,tankController.makeProduct.fillTank2.active,tankController.makeProduct.T1.enableFire,tankController.makeProduct.T1.localCondition,tankController.makeProduct.fillTank1.oldActive,$PRE.tankController.makeProduct.fillTank1.oldActive,tankController.makeProduct.fillTank1.newActive,$PRE.tankController.makeProduct.fillTank1.newActive,tankController.makeProduct.fillTank1.localActive,$PRE.tankController.makeProduct.fillTank1.localActive,tankController.makeProduct.fillTank1.active,tankController.makeProduct.activeSteps,tankController.makeProduct.newActive,$PRE.tankController.makeProduct.newActive,tankController.makeProduct.active,tankController.makeProduct.stateGraphRoot.resume,tankController.makeProduct.stateGraphRoot.suspend,tankController.s1.oldActive,$PRE.tankController.s1.oldActive,tankController.s1.newActive,$PRE.tankController.s1.newActive,tankController.s1.inPort[2].occupied,tankController.s1.localActive,$PRE.tankController.s1.localActive,tankController.s1.active,$whenCondition11,$whenCondition12,$whenCondition9,$whenCondition10,$whenCondition7,$whenCondition8,$whenCondition1,$whenCondition2,$whenCondition3,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 (194): * Single equations (assignments): 191 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * 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.001672/0.3708, allocations: 0.5794 MB / 415.3 MB, free: 5.734 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00042/0.3712, allocations: 100.7 kB / 415.4 MB, free: 5.684 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003299/0.3746, allocations: 1.127 MB / 416.6 MB, free: 5.031 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.274e-05/0.3746, allocations: 3.984 kB / 416.6 MB, free: 5.027 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.815e-06/0.3746, allocations: 0 / 416.6 MB, free: 5.027 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009154/0.3756, allocations: 285.1 kB / 416.9 MB, free: 4.777 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004513/0.376, allocations: 47.05 kB / 416.9 MB, free: 4.746 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007294/0.3768, allocations: 43.16 kB / 416.9 MB, free: 4.723 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005892/0.3774, allocations: 140 kB / 417.1 MB, free: 4.645 MB / 334.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.003914/0.3813, allocations: 1.325 MB / 418.4 MB, free: 3.625 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.004667/0.386, allocations: 1.765 MB / 420.2 MB, free: 1.828 MB / 334.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001277/0.3873, allocations: 491.8 kB / 420.7 MB, free: 1.344 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001527/0.3889, allocations: 0.5849 MB / 421.2 MB, free: 0.7656 MB / 334.1 MB Notification: Performance of Backend: time 1.002e-06/0.3889, allocations: 0 / 421.2 MB, free: 0.7656 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00581/0.3948, allocations: 1.388 MB / 422.6 MB, free: 15.36 MB / 350.1 MB Notification: Performance of SimCode: time 0.006875/0.4017, allocations: 2.502 MB / 425.1 MB, free: 12.76 MB / 350.1 MB Notification: Performance of Templates: time 0.05709/0.4588, allocations: 16.01 MB / 441.1 MB, free: 12.74 MB / 366.1 MB make -j1 -f Modelica_3.2.3_Modelica.StateGraph.Examples.ControlledTanks.makefile (rm -f Modelica_3.2.3_Modelica.StateGraph.Examples.ControlledTanks.pipe ; mkfifo Modelica_3.2.3_Modelica.StateGraph.Examples.ControlledTanks.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.StateGraph.Examples.ControlledTanks.pipe >> ../files/Modelica_3.2.3_Modelica.StateGraph.Examples.ControlledTanks.sim & ./Modelica_3.2.3_Modelica.StateGraph.Examples.ControlledTanks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.StateGraph.Examples.ControlledTanks.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.StateGraph.Examples.ControlledTanks_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/ControlledTanks/ControlledTanks.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.StateGraph.Examples.ControlledTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches