Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Fluid.Examples.ControlledTankSystem.ControlledTanks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Fluid.Examples.ControlledTankSystem.ControlledTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|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.normal.T1.enableFire|tankController.normal.T2.enableFire|tankController.normal.T3.enableFire|tankController.normal.T4.enableFire",fileNamePrefix="Modelica_trunk_cpp_Modelica.Fluid.Examples.ControlledTankSystem.ControlledTanks") translateModel(Modelica.Fluid.Examples.ControlledTankSystem.ControlledTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|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.normal.T1.enableFire|tankController.normal.T2.enableFire|tankController.normal.T3.enableFire|tankController.normal.T4.enableFire",fileNamePrefix="Modelica_trunk_cpp_Modelica.Fluid.Examples.ControlledTankSystem.ControlledTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00105/0.00105, allocations: 195.9 kB / 17.05 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.247/1.247, allocations: 226.6 MB / 244.4 MB, free: 8.289 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007327/0.0007327, allocations: 106.3 kB / 296.4 MB, free: 7.016 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002006/0.0002008, allocations: 8 kB / 356.2 MB, free: 11.24 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1698/0.17, allocations: 51.29 MB / 407.5 MB, free: 27.85 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.ControlledTankSystem.ControlledTanks): time 0.01598/0.186, allocations: 26.5 MB / 434 MB, free: 1.285 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.009296/0.1954, allocations: 7.468 MB / 441.5 MB, free: 9.805 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00108/0.1965, allocations: 59.56 kB / 441.5 MB, free: 9.746 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001771/0.1983, allocations: 0.8466 MB / 442.4 MB, free: 8.898 MB / 314.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:730:36-731:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:728:36-729:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:730:36-731:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:728:36-729:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.002668/0.2009, allocations: 1.457 MB / 443.8 MB, free: 7.434 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003701/0.2046, allocations: 1.68 MB / 445.5 MB, free: 5.773 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.004573/0.2092, allocations: 5.238 MB / 450.7 MB, free: 0.5156 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001976/0.2112, allocations: 1.664 MB / 452.4 MB, free: 14.82 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001752/0.213, allocations: 1.44 MB / 453.8 MB, free: 13.37 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0015/0.2145, allocations: 1.463 MB / 455.3 MB, free: 11.9 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002542/0.2148, allocations: 116 kB / 455.4 MB, free: 11.79 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001296/0.2161, allocations: 0.558 MB / 456 MB, free: 11.23 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005572/0.2166, allocations: 0.6463 MB / 456.6 MB, free: 10.58 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000431/0.2171, allocations: 488.4 kB / 457.1 MB, free: 10.1 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002623/0.2197, allocations: 3.044 MB / 460.1 MB, free: 7.047 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.2197, allocations: 0 / 460.1 MB, free: 7.047 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.253e-06/0.2197, allocations: 0 / 460.1 MB, free: 7.047 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.397e-05/0.2198, allocations: 0 / 460.1 MB, free: 7.047 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 527 * Number of variables: 527 Notification: Performance of Generate backend data structure: time 0.004318/0.2241, allocations: 2.584 MB / 462.7 MB, free: 4.328 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.066e-05/0.2241, allocations: 8.031 kB / 462.7 MB, free: 4.32 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006396/0.2248, allocations: 300.8 kB / 463 MB, free: 4.023 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001887/0.2267, allocations: 1.382 MB / 464.4 MB, free: 2.586 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002329/0.2269, allocations: 315.3 kB / 464.7 MB, free: 2.254 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002849/0.2272, allocations: 220 kB / 464.9 MB, free: 2.039 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004049/0.2313, allocations: 2.747 MB / 467.7 MB, free: 15.13 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.787e-05/0.2313, allocations: 7.938 kB / 467.7 MB, free: 15.12 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002001/0.2315, allocations: 95.94 kB / 467.8 MB, free: 15.03 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001031/0.2316, allocations: 99.69 kB / 467.9 MB, free: 14.93 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003498/0.2351, allocations: 2.189 MB / 470.1 MB, free: 12.74 MB / 346.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0116/0.2467, allocations: 10.35 MB / 480.4 MB, free: 2 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002622/0.2494, allocations: 2.058 MB / 482.5 MB, free: 15.8 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001522/0.2509, allocations: 1.095 MB / 483.6 MB, free: 14.68 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007215/0.2581, allocations: 5.518 MB / 489.1 MB, free: 8.816 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002074/0.2602, allocations: 1.52 MB / 490.6 MB, free: 7.207 MB / 362.7 MB Notification: Performance of pre-optimization done (n=207): time 4.779e-06/0.2603, allocations: 0 / 490.6 MB, free: 7.207 MB / 362.7 MB Notification: Performance of matching and sorting (n=217): time 0.01439/0.2747, allocations: 8.547 MB / 499.2 MB, free: 14.47 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003324/0.275, allocations: 0.7555 MB / 499.9 MB, free: 13.54 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00202/0.2771, allocations: 1.658 MB / 0.4898 GB, free: 11.87 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002736/0.2773, allocations: 137.9 kB / 0.4899 GB, free: 11.73 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006751/0.278, allocations: 0.8853 MB / 0.4908 GB, free: 10.83 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005275/0.2786, allocations: 0.6129 MB / 0.4914 GB, free: 10.21 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001237/0.2787, allocations: 52 kB / 0.4915 GB, free: 10.16 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001862/0.2789, allocations: 415.5 kB / 0.4919 GB, free: 9.75 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001623/0.2805, allocations: 0.9501 MB / 0.4928 GB, free: 8.797 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002046/0.2826, allocations: 1.678 MB / 0.4944 GB, free: 6.82 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00173/0.2843, allocations: 1.135 MB / 0.4955 GB, free: 5.672 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.277e-06/0.2843, allocations: 4 kB / 0.4955 GB, free: 5.668 MB / 378.7 MB Notification: Performance of matching and sorting (n=352) (initialization): time 0.005147/0.2895, allocations: 3.169 MB / 0.4986 GB, free: 2.465 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.152e-05/0.2896, allocations: 105.4 kB / 0.4987 GB, free: 2.344 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.683e-05/0.2896, allocations: 27.97 kB / 0.4988 GB, free: 2.316 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001121/0.2907, allocations: 0.5769 MB / 0.4993 GB, free: 1.73 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001336/0.2921, allocations: 407.1 kB / 0.4997 GB, free: 1.332 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1471/0.4392, allocations: 2.252 MB / 0.5019 GB, free: 93.11 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001961/0.4412, allocations: 163.9 kB / 0.5021 GB, free: 93.11 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002686/0.4415, allocations: 126.2 kB / 0.5022 GB, free: 93.11 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 83 * Number of states: 0 () * Number of discrete variables: 188 ($PRE.tankController.normal.T1.enableFire,$PRE.tankController.normal.T3.enableFire,$PRE.tankController.normal.T2.enableFire,$PRE.tankController.normal.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.tankController.T6.t_start,tankController.T6.t_start,$PRE.tankController.T5.t_start,tankController.T5.t_start,$PRE.tankController.T4.t_start,tankController.T4.t_start,$PRE.tankController.T3.t_start,tankController.T3.t_start,$PRE.tankController.T2.t_start,tankController.T2.t_start,$PRE.tankController.T1.t_start,tankController.T1.t_start,$PRE.tankController.normal.T3.t_start,tankController.normal.T3.t_start,$PRE.tankController.normal.T1.t_start,tankController.normal.T1.t_start,$whenCondition12,$PRE.start.table.combiTimeTable.nextTimeEvent,$whenCondition11,$PRE.stop.table.combiTimeTable.nextTimeEvent,$whenCondition10,$PRE.shut.table.combiTimeTable.nextTimeEvent,$whenCondition8,$whenCondition7,$whenCondition9,$PRE.shut.reset[1],$PRE.shut.reset[2],$PRE.shut.table.y,shut.table.y,shut.table.combiTimeTable.nextTimeEvent,$PRE.shut.table.combiTimeTable.nextTimeEventScaled,shut.table.combiTimeTable.nextTimeEventScaled,shut.pre_reset[1],shut.pre_reset[2],$whenCondition5,$whenCondition4,$whenCondition6,$PRE.stop.reset[1],$PRE.stop.reset[2],$PRE.stop.table.y,stop.table.y,stop.table.combiTimeTable.nextTimeEvent,$PRE.stop.table.combiTimeTable.nextTimeEventScaled,stop.table.combiTimeTable.nextTimeEventScaled,stop.pre_reset[1],stop.pre_reset[2],$whenCondition2,$whenCondition1,$whenCondition3,$PRE.start.reset[1],$PRE.start.reset[2],$PRE.start.table.y,start.table.y,start.table.combiTimeTable.nextTimeEvent,$PRE.start.table.combiTimeTable.nextTimeEventScaled,start.table.combiTimeTable.nextTimeEventScaled,start.pre_reset[1],start.pre_reset[2],tankController.stateGraphRoot.resume,tankController.stateGraphRoot.suspend,tankController.normal.T4.condition,tankController.normal.T2.condition,$whenCondition15,$whenCondition14,$whenCondition13,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.normal.stateGraphRoot.suspend,tankController.normal.stateGraphRoot.resume,tankController.normal.active,$PRE.tankController.normal.newActive,tankController.normal.newActive,tankController.normal.activeSteps,tankController.normal.fillTank1.active,$PRE.tankController.normal.fillTank1.localActive,tankController.normal.fillTank1.localActive,$PRE.tankController.normal.fillTank1.newActive,tankController.normal.fillTank1.newActive,$PRE.tankController.normal.fillTank1.oldActive,tankController.normal.fillTank1.oldActive,tankController.normal.T1.condition,tankController.normal.T1.enableFire,tankController.normal.fillTank2.active,$PRE.tankController.normal.fillTank2.localActive,tankController.normal.fillTank2.localActive,$PRE.tankController.normal.fillTank2.newActive,tankController.normal.fillTank2.newActive,$PRE.tankController.normal.fillTank2.oldActive,tankController.normal.fillTank2.oldActive,tankController.normal.T3.condition,tankController.normal.T3.enableFire,tankController.normal.emptyTank2.active,$PRE.tankController.normal.emptyTank2.localActive,tankController.normal.emptyTank2.localActive,$PRE.tankController.normal.emptyTank2.newActive,tankController.normal.emptyTank2.newActive,$PRE.tankController.normal.emptyTank2.oldActive,tankController.normal.emptyTank2.oldActive,tankController.normal.wait1.active,$PRE.tankController.normal.wait1.localActive,tankController.normal.wait1.localActive,$PRE.tankController.normal.wait1.newActive,tankController.normal.wait1.newActive,$PRE.tankController.normal.wait1.oldActive,tankController.normal.wait1.oldActive,tankController.normal.T2.enableFire,tankController.normal.T2.fire,$PRE.tankController.normal.T2.t_start,tankController.normal.T2.t_start,tankController.normal.wait2.active,$PRE.tankController.normal.wait2.localActive,tankController.normal.wait2.localActive,$PRE.tankController.normal.wait2.newActive,tankController.normal.wait2.newActive,$PRE.tankController.normal.wait2.oldActive,tankController.normal.wait2.oldActive,tankController.normal.T4.enableFire,tankController.normal.T4.fire,$PRE.tankController.normal.T4.t_start,tankController.normal.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,tankController.valve2,tankController.valve3,tankController.stateGraphRoot.activeSteps,start.reset[1],start.reset[2],$PRE.start.on,start.on,stop.reset[1],stop.reset[2],$PRE.stop.on,stop.on,shut.reset[1],shut.reset[2],$PRE.shut.on,shut.on,tank1.regularFlow[1],tank1.regularFlow[2],tank1.inFlow[1],tank1.inFlow[2],tank2.regularFlow[1],tank2.regularFlow[2],tank2.inFlow[1],tank2.inFlow[2]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (325): * Single equations (assignments): 319 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {2 3,4 4,2 3} Notification: Performance of prepare postOptimizeDAE: time 0.001262/0.4428, allocations: 0.806 MB / 0.503 GB, free: 92.87 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003656/0.4432, allocations: 214.7 kB / 0.5032 GB, free: 92.87 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004863/0.448, allocations: 3.073 MB / 0.5062 GB, free: 91.94 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.697e-05/0.4481, allocations: 25.09 kB / 0.5062 GB, free: 91.94 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.002e-05/0.4481, allocations: 3.875 kB / 0.5062 GB, free: 91.94 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.652e-05/0.4481, allocations: 13.59 kB / 0.5062 GB, free: 91.94 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007404/0.4555, allocations: 5.528 MB / 0.5116 GB, free: 89.7 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.217e-06/0.4556, allocations: 7.094 kB / 0.5116 GB, free: 89.7 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009391/0.4565, allocations: 248.8 kB / 0.5119 GB, free: 89.66 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009126/0.4574, allocations: 0.5619 MB / 0.5124 GB, free: 89.48 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001455/0.4576, allocations: 68.86 kB / 0.5125 GB, free: 89.44 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001487/0.4591, allocations: 2.225 MB / 0.5146 GB, free: 87.51 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/0.4591, allocations: 7.781 kB / 0.5146 GB, free: 87.51 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005336/0.4644, allocations: 4.253 MB / 0.5188 GB, free: 84.92 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007902/0.4653, allocations: 0.5542 MB / 0.5193 GB, free: 84.46 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002951/0.4656, allocations: 83.92 kB / 0.5194 GB, free: 84.38 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001099/0.4667, allocations: 138.5 kB / 0.5196 GB, free: 84.25 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003862/0.4671, allocations: 276.7 kB / 0.5198 GB, free: 83.99 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001582/0.4672, allocations: 95.95 kB / 0.5199 GB, free: 83.89 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001093/0.4683, allocations: 1.047 MB / 0.5209 GB, free: 82.85 MB / 378.7 MB Notification: Performance of sort global known variables: time 9.61e-07/0.4683, allocations: 2.062 kB / 0.5209 GB, free: 82.85 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001703/0.47, allocations: 0.6945 MB / 0.5216 GB, free: 82.19 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 4 (tank1.level,tank1.medium.T,tank2.level,tank2.medium.T) * Number of discrete variables: 120 (tankController.normal.stateGraphRoot.suspend,tankController.s1.localActive,tankController.normal.fillTank1.localActive,tankController.normal.fillTank2.localActive,tankController.normal.T2.enableFire,tankController.normal.emptyTank2.localActive,tankController.normal.T4.enableFire,tankController.normal.wait1.localActive,tankController.normal.wait2.localActive,tankController.s2.localActive,tankController.emptyTanks.localActive,$cse1,$cse2,$cse5,$cse6,$cse7,$whenCondition15,$whenCondition14,$whenCondition13,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition2,$whenCondition1,$whenCondition3,$whenCondition5,$whenCondition4,$whenCondition6,$whenCondition8,$whenCondition7,$whenCondition9,tankController.s1.active,tankController.s1.inPort[2].occupied,tankController.s1.newActive,tankController.s1.oldActive,tankController.normal.stateGraphRoot.resume,tankController.normal.active,tankController.normal.newActive,tankController.normal.activeSteps,tankController.normal.fillTank1.active,tankController.normal.fillTank1.newActive,tankController.normal.fillTank1.oldActive,tankController.normal.T1.condition,tankController.normal.T1.enableFire,tankController.normal.fillTank2.active,tankController.normal.fillTank2.newActive,tankController.normal.fillTank2.oldActive,tankController.normal.T3.condition,tankController.normal.T3.enableFire,tankController.normal.emptyTank2.active,tankController.normal.emptyTank2.newActive,tankController.normal.emptyTank2.oldActive,tankController.normal.wait1.active,tankController.normal.wait1.newActive,tankController.normal.wait1.oldActive,tankController.normal.T2.fire,tankController.normal.T2.t_start,tankController.normal.wait2.active,tankController.normal.wait2.newActive,tankController.normal.wait2.oldActive,tankController.normal.T4.fire,tankController.normal.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,tankController.valve2,tankController.valve3,tankController.stateGraphRoot.activeSteps,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],tank1.regularFlow[1],tank1.regularFlow[2],tank1.inFlow[1],tank1.inFlow[2],tank2.regularFlow[1],tank2.regularFlow[2],tank2.inFlow[1],tank2.inFlow[2],tankController.normal.T1.t_start,tankController.normal.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 discrete states: 50 (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.normal.T3.t_start,tankController.normal.T1.t_start,start.table.combiTimeTable.nextTimeEvent,stop.table.combiTimeTable.nextTimeEvent,shut.table.combiTimeTable.nextTimeEvent,shut.table.combiTimeTable.nextTimeEventScaled,stop.table.combiTimeTable.nextTimeEventScaled,start.table.combiTimeTable.nextTimeEventScaled,tankController.emptyTanks.newActive,tankController.s2.newActive,tankController.normal.newActive,tankController.normal.wait2.newActive,tankController.normal.wait1.newActive,tankController.normal.emptyTank2.newActive,tankController.normal.fillTank2.newActive,tankController.normal.fillTank1.newActive,tankController.s1.newActive,$whenCondition9,shut.on,$whenCondition8,$whenCondition7,shut.pre_reset[2],shut.pre_reset[1],shut.reset[1],shut.reset[2],shut.table.y,$whenCondition6,stop.on,$whenCondition5,$whenCondition4,stop.pre_reset[2],stop.pre_reset[1],stop.reset[1],stop.reset[2],stop.table.y,$whenCondition3,start.on,$whenCondition2,$whenCondition1,start.pre_reset[2],start.pre_reset[1],start.reset[1],start.reset[2],start.table.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (219): * Single equations (assignments): 183 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 6 * When equations: 24 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {2 3,4 4,2 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.0013/0.4713, allocations: 0.8303 MB / 0.5224 GB, free: 81.61 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.004062/0.4754, allocations: 2.824 MB / 0.5252 GB, free: 78.76 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.59e-06/0.4754, allocations: 2.234 kB / 0.5252 GB, free: 78.76 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002242/0.4777, allocations: 1.639 MB / 0.5268 GB, free: 77.09 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002871/0.4806, allocations: 0.7425 MB / 0.5275 GB, free: 76.38 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006748/0.4873, allocations: 5.284 MB / 0.5327 GB, free: 71.04 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007226/0.4881, allocations: 1.58 MB / 0.5342 GB, free: 69.43 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007481/0.4888, allocations: 243.3 kB / 0.5344 GB, free: 69.19 MB / 378.7 MB Notification: Performance of SimCode: time 1.022e-06/0.4888, allocations: 0 / 0.5344 GB, free: 69.19 MB / 378.7 MB Notification: Performance of Templates: time 0.05373/0.5426, allocations: 68.23 MB / 0.6011 GB, free: 1.008 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Fluid.Examples.ControlledTankSystem.ControlledTanks.makefile (rm -f Modelica_trunk_cpp_Modelica.Fluid.Examples.ControlledTankSystem.ControlledTanks.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Fluid.Examples.ControlledTankSystem.ControlledTanks.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Fluid.Examples.ControlledTankSystem.ControlledTanks.pipe >> ../files/Modelica_trunk_cpp_Modelica.Fluid.Examples.ControlledTankSystem.ControlledTanks.sim & ./Modelica_trunk_cpp_Modelica.Fluid.Examples.ControlledTankSystem.ControlledTanks --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Fluid.Examples.ControlledTankSystem.ControlledTanks.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Fluid.Examples.ControlledTankSystem.ControlledTanks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/ControlledTankSystem/ControlledTanks/ControlledTanks.csv","../files/Modelica_trunk_cpp_Modelica.Fluid.Examples.ControlledTankSystem.ControlledTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches