Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) 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 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_4.0.0_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_4.0.0_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.00184/0.00184, allocations: 106.3 kB / 17.16 MB, free: 6.324 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.002409/0.002409, allocations: 198.9 kB / 18.08 MB, free: 5.422 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.622/2.622, allocations: 222.9 MB / 241.8 MB, free: 15.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001807/0.001807, allocations: 42.36 kB / 300.6 MB, free: 6.258 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1626/0.1644, allocations: 49.45 MB / 350.1 MB, free: 4.793 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.ControlledTanks): time 0.009232/0.1737, allocations: 3.97 MB / 354 MB, free: 0.793 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.008268/0.182, allocations: 2.619 MB / 356.6 MB, free: 14.16 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001927/0.184, allocations: 27.88 kB / 356.7 MB, free: 14.14 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002577/0.1866, allocations: 0.4963 MB / 357.2 MB, free: 13.64 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002384/0.189, allocations: 374 kB / 357.5 MB, free: 13.28 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004261/0.1933, allocations: 0.994 MB / 358.5 MB, free: 12.29 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005006/0.1983, allocations: 1.978 MB / 360.5 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003095/0.2015, allocations: 1.085 MB / 361.6 MB, free: 9.195 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001768/0.2032, allocations: 0.5953 MB / 362.2 MB, free: 8.598 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001699/0.205, allocations: 0.6688 MB / 362.9 MB, free: 7.926 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007593/0.2057, allocations: 88 kB / 362.9 MB, free: 7.84 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001111/0.2069, allocations: 175.9 kB / 363.1 MB, free: 7.668 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009384/0.2078, allocations: 394.7 kB / 363.5 MB, free: 7.281 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002191/0.21, allocations: 0.6838 MB / 364.2 MB, free: 6.594 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003581/0.2137, allocations: 1.766 MB / 365.9 MB, free: 4.824 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.246e-06/0.2137, allocations: 0 / 365.9 MB, free: 4.824 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.469e-06/0.2137, allocations: 0 / 365.9 MB, free: 4.824 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001749/0.2139, allocations: 0 / 365.9 MB, free: 4.824 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 319 * Number of variables: 319 Notification: Performance of Generate backend data structure: time 0.008421/0.2223, allocations: 1.906 MB / 367.9 MB, free: 2.801 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.097e-05/0.2224, allocations: 12.02 kB / 367.9 MB, free: 2.789 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009866/0.2234, allocations: 163.1 kB / 368 MB, free: 2.629 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002959/0.2264, allocations: 0.9036 MB / 368.9 MB, free: 1.684 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005071/0.2269, allocations: 204.7 kB / 369.1 MB, free: 1.465 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005854/0.2275, allocations: 151.9 kB / 369.3 MB, free: 1.316 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3334/0.561, allocations: 1.48 MB / 370.8 MB, free: 24.59 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.265e-05/0.5611, allocations: 1.906 kB / 370.8 MB, free: 24.59 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002054/0.5613, allocations: 62.47 kB / 370.8 MB, free: 24.59 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001473/0.5615, allocations: 50.38 kB / 370.9 MB, free: 24.59 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003944/0.5654, allocations: 0.9879 MB / 371.9 MB, free: 24.56 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008855/0.5743, allocations: 5.537 MB / 377.4 MB, free: 20.8 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002127/0.5765, allocations: 1.261 MB / 378.7 MB, free: 19.94 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009256/0.5774, allocations: 0.5328 MB / 379.2 MB, free: 19.66 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001557/0.5776, allocations: 102.6 kB / 379.3 MB, free: 19.56 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00218/0.5798, allocations: 0.9031 MB / 380.2 MB, free: 19.02 MB / 302.1 MB Notification: Performance of pre-optimization done (n=133): time 6.362e-06/0.5798, allocations: 0 / 380.2 MB, free: 19.02 MB / 302.1 MB Notification: Performance of matching and sorting (n=133): time 0.003804/0.5837, allocations: 1.49 MB / 381.7 MB, free: 18.38 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002318/0.5839, allocations: 0.6038 MB / 382.3 MB, free: 17.68 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001697/0.5856, allocations: 0.9345 MB / 383.2 MB, free: 17.26 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002352/0.5859, allocations: 115.8 kB / 383.3 MB, free: 17.18 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004985/0.5864, allocations: 0.5151 MB / 383.8 MB, free: 16.8 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003599/0.5867, allocations: 339.6 kB / 384.2 MB, free: 16.55 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006447/0.5874, allocations: 376.1 kB / 384.5 MB, free: 16.39 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001405/0.5875, allocations: 360.6 kB / 384.9 MB, free: 16.07 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001135/0.5887, allocations: 476.2 kB / 385.4 MB, free: 15.89 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001469/0.5902, allocations: 0.9179 MB / 386.3 MB, free: 15.18 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002183/0.5924, allocations: 1.383 MB / 387.7 MB, free: 14.13 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.475e-05/0.5924, allocations: 6.781 kB / 387.7 MB, free: 14.12 MB / 302.1 MB Notification: Performance of matching and sorting (n=226) (initialization): time 0.004002/0.5964, allocations: 1.573 MB / 389.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001331/0.5966, allocations: 105.1 kB / 389.3 MB, free: 13.33 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.473e-05/0.5966, allocations: 15.73 kB / 389.4 MB, free: 13.33 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.473e-05/0.5967, allocations: 23.08 kB / 389.4 MB, free: 13.33 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001163/0.5979, allocations: 187.9 kB / 389.6 MB, free: 13.29 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.11e-05/0.598, allocations: 26.38 kB / 389.6 MB, free: 13.29 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001559/0.5995, allocations: 149.7 kB / 389.7 MB, free: 13.2 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002808/0.5998, allocations: 78.16 kB / 389.8 MB, free: 13.18 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * Number of states: 0 () * Number of discrete variables: 180 ($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.start.pre_reset[1],$PRE.start.pre_reset[2],$PRE.stop.pre_reset[1],$PRE.stop.pre_reset[2],$PRE.shut.pre_reset[1],$PRE.shut.pre_reset[2],$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.on,$PRE.shut.on,shut.reset[2],shut.reset[1],stop.on,$PRE.stop.on,stop.reset[2],stop.reset[1],start.on,$PRE.start.on,start.reset[2],start.reset[1],tankController.T6.enableFire,tankController.T6.condition,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.condition,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.condition,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.condition,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,$whenCondition1,$whenCondition2,$whenCondition3,shut.pre_reset[2],shut.pre_reset[1],shut.table.combiTimeTable.nextTimeEventScaled,$PRE.shut.table.combiTimeTable.nextTimeEventScaled,shut.table.combiTimeTable.nextTimeEvent,shut.table.y,$PRE.shut.table.y,$PRE.shut.reset[2],$PRE.shut.reset[1],$whenCondition9,$whenCondition7,$whenCondition8,stop.pre_reset[2],stop.pre_reset[1],stop.table.combiTimeTable.nextTimeEventScaled,$PRE.stop.table.combiTimeTable.nextTimeEventScaled,stop.table.combiTimeTable.nextTimeEvent,stop.table.y,$PRE.stop.table.y,$PRE.stop.reset[2],$PRE.stop.reset[1],$whenCondition12,$whenCondition10,$whenCondition11,start.pre_reset[2],start.pre_reset[1],start.table.combiTimeTable.nextTimeEventScaled,$PRE.start.table.combiTimeTable.nextTimeEventScaled,start.table.combiTimeTable.nextTimeEvent,start.table.y,$PRE.start.table.y,$PRE.start.reset[2],$PRE.start.reset[1],$whenCondition15,$whenCondition13,$whenCondition14,tankController.makeProduct.T1.t_start,$PRE.tankController.makeProduct.T1.t_start,tankController.makeProduct.T3.t_start,$PRE.tankController.makeProduct.T3.t_start,tankController.T1.t_start,$PRE.tankController.T1.t_start,tankController.T2.t_start,$PRE.tankController.T2.t_start,tankController.T3.t_start,$PRE.tankController.T3.t_start,tankController.T4.t_start,$PRE.tankController.T4.t_start,tankController.T5.t_start,$PRE.tankController.T5.t_start,tankController.T6.t_start,$PRE.tankController.T6.t_start,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 (214): * Single equations (assignments): 211 * 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.001716/0.6016, allocations: 0.6347 MB / 390.4 MB, free: 12.73 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004863/0.6021, allocations: 112.3 kB / 390.6 MB, free: 12.67 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003734/0.6058, allocations: 1.207 MB / 391.8 MB, free: 12.12 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.125e-05/0.6059, allocations: 15.75 kB / 391.8 MB, free: 12.12 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.599e-05/0.6059, allocations: 3.812 kB / 391.8 MB, free: 12.12 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.324e-05/0.6059, allocations: 9.797 kB / 391.8 MB, free: 12.12 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007082/0.613, allocations: 2.723 MB / 394.5 MB, free: 10.35 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.852e-05/0.6131, allocations: 1.781 kB / 394.5 MB, free: 10.35 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006363/0.6138, allocations: 76.97 kB / 394.6 MB, free: 10.32 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.175e-05/0.6138, allocations: 14.12 kB / 394.6 MB, free: 10.31 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001456/0.614, allocations: 40.5 kB / 394.6 MB, free: 10.29 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.974e-05/0.614, allocations: 10 kB / 394.7 MB, free: 10.29 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.125e-06/0.614, allocations: 11.27 kB / 394.7 MB, free: 10.28 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005497/0.6195, allocations: 1.91 MB / 396.6 MB, free: 9.156 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008762/0.6205, allocations: 304.8 kB / 396.9 MB, free: 8.895 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003556/0.6209, allocations: 56.77 kB / 396.9 MB, free: 8.867 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007107/0.6216, allocations: 49.42 kB / 397 MB, free: 8.84 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005254/0.6221, allocations: 148.5 kB / 397.1 MB, free: 8.758 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001501/0.6223, allocations: 55.09 kB / 397.2 MB, free: 8.742 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.001125/0.6234, allocations: 0.5801 MB / 397.8 MB, free: 8.426 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.2e-07/0.6234, allocations: 2.844 kB / 397.8 MB, free: 8.426 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.002296/0.6258, allocations: 346 kB / 398.1 MB, free: 8.328 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 2 (tank1.level,tank2.level) * Number of discrete variables: 112 (tankController.T6.t_start,tankController.T5.t_start,tankController.T4.t_start,tankController.T3.t_start,tankController.T2.t_start,tankController.T1.t_start,tankController.makeProduct.T3.t_start,tankController.makeProduct.T1.t_start,tankController.makeProduct.stateGraphRoot.suspend,tankController.emptyTanks.localActive,tankController.s2.localActive,tankController.makeProduct.T4.enableFire,tankController.makeProduct.wait2.localActive,tankController.makeProduct.T2.enableFire,tankController.makeProduct.wait1.localActive,tankController.makeProduct.emptyTank2.localActive,tankController.makeProduct.fillTank2.localActive,tankController.makeProduct.fillTank1.localActive,tankController.s1.localActive,$cse1,$cse2,$cse3,$cse4,$cse5,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$whenCondition8,$whenCondition7,$whenCondition9,$whenCondition11,$whenCondition10,$whenCondition12,$whenCondition14,$whenCondition13,$whenCondition15,tankController.s1.active,tankController.s1.inPort[2].occupied,tankController.s1.newActive,tankController.s1.oldActive,tankController.makeProduct.stateGraphRoot.resume,tankController.makeProduct.active,tankController.makeProduct.newActive,tankController.makeProduct.activeSteps,tankController.makeProduct.fillTank1.active,tankController.makeProduct.fillTank1.newActive,tankController.makeProduct.fillTank1.oldActive,tankController.makeProduct.T1.condition,tankController.makeProduct.T1.enableFire,tankController.makeProduct.fillTank2.active,tankController.makeProduct.fillTank2.newActive,tankController.makeProduct.fillTank2.oldActive,tankController.makeProduct.T3.condition,tankController.makeProduct.T3.enableFire,tankController.makeProduct.emptyTank2.active,tankController.makeProduct.emptyTank2.newActive,tankController.makeProduct.emptyTank2.oldActive,tankController.makeProduct.wait1.active,tankController.makeProduct.wait1.newActive,tankController.makeProduct.wait1.oldActive,tankController.makeProduct.T2.fire,tankController.makeProduct.T2.t_start,tankController.makeProduct.wait2.active,tankController.makeProduct.wait2.newActive,tankController.makeProduct.wait2.oldActive,tankController.makeProduct.T4.fire,tankController.makeProduct.T4.t_start,tankController.T1.enableFire,tankController.T2.condition,tankController.T2.enableFire,tankController.T3.enableFire,tankController.s2.active,tankController.s2.outPort[2].available,tankController.s2.newActive,tankController.s2.oldActive,tankController.T4.enableFire,tankController.T5.enableFire,tankController.emptyTanks.active,tankController.emptyTanks.newActive,tankController.emptyTanks.oldActive,tankController.T6.condition,tankController.T6.enableFire,start.reset[1],start.reset[2],start.on,start.table.y,start.table.combiTimeTable.nextTimeEvent,start.table.combiTimeTable.nextTimeEventScaled,start.pre_reset[1],start.pre_reset[2],stop.reset[1],stop.reset[2],stop.on,stop.table.y,stop.table.combiTimeTable.nextTimeEvent,stop.table.combiTimeTable.nextTimeEventScaled,stop.pre_reset[1],stop.pre_reset[2],shut.reset[1],shut.reset[2],shut.on,shut.table.y,shut.table.combiTimeTable.nextTimeEvent,shut.table.combiTimeTable.nextTimeEventScaled,shut.pre_reset[1],shut.pre_reset[2],valve2.valveControl,valve3.valveControl,stateGraphRoot.activeSteps) * Number of discrete states: 50 (shut.table.combiTimeTable.nextTimeEvent,stop.table.combiTimeTable.nextTimeEvent,start.table.combiTimeTable.nextTimeEvent,tankController.s1.newActive,tankController.makeProduct.fillTank1.newActive,tankController.makeProduct.fillTank2.newActive,tankController.makeProduct.emptyTank2.newActive,tankController.makeProduct.wait1.newActive,tankController.makeProduct.wait2.newActive,tankController.makeProduct.newActive,tankController.s2.newActive,tankController.emptyTanks.newActive,shut.table.combiTimeTable.nextTimeEventScaled,$whenCondition9,shut.on,$whenCondition8,$whenCondition7,shut.pre_reset[2],shut.pre_reset[1],shut.reset[1],shut.reset[2],shut.table.y,stop.table.combiTimeTable.nextTimeEventScaled,$whenCondition12,stop.on,$whenCondition11,$whenCondition10,stop.pre_reset[2],stop.pre_reset[1],stop.reset[1],stop.reset[2],stop.table.y,start.table.combiTimeTable.nextTimeEventScaled,$whenCondition15,start.on,$whenCondition14,$whenCondition13,start.pre_reset[2],start.pre_reset[1],start.reset[1],start.reset[2],start.table.y,tankController.makeProduct.T1.t_start,tankController.makeProduct.T3.t_start,tankController.T1.t_start,tankController.T2.t_start,tankController.T3.t_start,tankController.T4.t_start,tankController.T5.t_start,tankController.T6.t_start) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (123): * Single equations (assignments): 96 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 24 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002025/0.6278, allocations: 0.5682 MB / 398.7 MB, free: 8.051 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.003853/0.6317, allocations: 1.482 MB / 400.1 MB, free: 6.656 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.722e-06/0.6317, allocations: 3.156 kB / 400.2 MB, free: 6.656 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001807/0.6335, allocations: 0.8593 MB / 401 MB, free: 5.762 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001977/0.6355, allocations: 206.7 kB / 401.2 MB, free: 5.559 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006088/0.6416, allocations: 2.744 MB / 404 MB, free: 2.754 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001012/0.6427, allocations: 1.154 MB / 405.1 MB, free: 1.566 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008442/0.6436, allocations: 115.4 kB / 405.2 MB, free: 1.453 MB / 302.1 MB Notification: Performance of SimCode: time 3.006e-06/0.6436, allocations: 0 / 405.2 MB, free: 1.453 MB / 302.1 MB Notification: Performance of Templates: time 0.04312/0.6867, allocations: 18.15 MB / 423.4 MB, free: 15.33 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.StateGraph.Examples.ControlledTanks.makefile (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.ControlledTanks.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.ControlledTanks.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.ControlledTanks.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.ControlledTanks.sim & ./Modelica_4.0.0_Modelica.StateGraph.Examples.ControlledTanks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.StateGraph.Examples.ControlledTanks.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.StateGraph.Examples.ControlledTanks_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/ControlledTanks/ControlledTanks.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.StateGraph.Examples.ControlledTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches