Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Fluid.Examples.ControlledTankSystem.ControlledTanks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/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_3.2.3_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_3.2.3_Modelica.Fluid.Examples.ControlledTankSystem.ControlledTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001107/0.001107, allocations: 187 kB / 17.91 MB, free: 3.855 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.208/1.208, allocations: 205.1 MB / 223.7 MB, free: 8.492 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001005/0.001005, allocations: 108.4 kB / 271.2 MB, free: 8.445 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008968/0.000897, allocations: 39.94 kB / 327.2 MB, free: 348 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2252/0.2261, allocations: 46.61 MB / 373.8 MB, free: 45.65 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.ControlledTankSystem.ControlledTanks): time 0.02251/0.2486, allocations: 28.72 MB / 402.5 MB, free: 20.72 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00941/0.2581, allocations: 7.618 MB / 410.2 MB, free: 13.08 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001756/0.2599, allocations: 63.56 kB / 410.2 MB, free: 13.02 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001921/0.2619, allocations: 0.875 MB / 411.1 MB, free: 12.14 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002687/0.2646, allocations: 1.423 MB / 412.5 MB, free: 10.71 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003767/0.2684, allocations: 2.023 MB / 414.5 MB, free: 8.703 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.00386/0.2722, allocations: 5.971 MB / 420.5 MB, free: 2.715 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001693/0.2739, allocations: 1.816 MB / 422.3 MB, free: 0.8633 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001525/0.2755, allocations: 1.514 MB / 423.8 MB, free: 15.34 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001522/0.277, allocations: 1.595 MB / 425.4 MB, free: 13.74 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002761/0.2773, allocations: 152 kB / 425.6 MB, free: 13.59 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001785/0.2791, allocations: 0.7802 MB / 426.4 MB, free: 12.81 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006888/0.2798, allocations: 0.693 MB / 427.1 MB, free: 12.12 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001186/0.281, allocations: 1.22 MB / 428.3 MB, free: 10.89 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003493/0.2845, allocations: 3.872 MB / 432.1 MB, free: 7.008 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.918e-06/0.2845, allocations: 0 / 432.1 MB, free: 7.008 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.332e-06/0.2845, allocations: 0 / 432.1 MB, free: 7.008 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.85e-05/0.2846, allocations: 0 / 432.1 MB, free: 7.008 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 521 * Number of variables: 521 Notification: Performance of Generate backend data structure: time 0.005413/0.29, allocations: 3.012 MB / 435.2 MB, free: 3.875 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.054e-05/0.2901, allocations: 8.031 kB / 435.2 MB, free: 3.867 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006781/0.2907, allocations: 293.8 kB / 435.5 MB, free: 3.578 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002045/0.2928, allocations: 1.405 MB / 436.9 MB, free: 2.117 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002204/0.293, allocations: 307.3 kB / 437.2 MB, free: 1.793 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002733/0.2933, allocations: 212 kB / 437.4 MB, free: 1.586 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003829/0.2971, allocations: 2.73 MB / 440.1 MB, free: 14.69 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.169e-05/0.2972, allocations: 15.78 kB / 440.1 MB, free: 14.68 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001855/0.2974, allocations: 95.97 kB / 440.2 MB, free: 14.58 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.041e-05/0.2975, allocations: 99.69 kB / 440.3 MB, free: 14.48 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003325/0.3008, allocations: 2.189 MB / 442.5 MB, free: 12.29 MB / 330.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.01176/0.3126, allocations: 10.25 MB / 452.7 MB, free: 1.66 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002545/0.3152, allocations: 1.884 MB / 454.6 MB, free: 15.71 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001491/0.3167, allocations: 1.018 MB / 455.6 MB, free: 14.7 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006587/0.3233, allocations: 4.727 MB / 460.4 MB, free: 9.625 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001943/0.3252, allocations: 1.427 MB / 461.8 MB, free: 8.133 MB / 346.7 MB Notification: Performance of pre-optimization done (n=193): time 3.256e-06/0.3252, allocations: 0 / 461.8 MB, free: 8.133 MB / 346.7 MB Notification: Performance of matching and sorting (n=203): time 0.01173/0.337, allocations: 6.194 MB / 468 MB, free: 1.785 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000238/0.3372, allocations: 0.5547 MB / 468.5 MB, free: 1.109 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001999/0.3392, allocations: 1.638 MB / 470.2 MB, free: 15.45 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002229/0.3395, allocations: 109.7 kB / 470.3 MB, free: 15.34 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007694/0.3403, allocations: 0.9038 MB / 471.2 MB, free: 14.43 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005107/0.3408, allocations: 0.5704 MB / 471.8 MB, free: 13.85 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008026/0.3416, allocations: 0.5479 MB / 472.3 MB, free: 13.3 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001096/0.3417, allocations: 317 kB / 472.6 MB, free: 12.98 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001551/0.3433, allocations: 0.9108 MB / 473.5 MB, free: 12.07 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002108/0.3454, allocations: 1.601 MB / 475.1 MB, free: 10.19 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003377/0.3488, allocations: 2.426 MB / 477.6 MB, free: 7.492 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.384e-05/0.3488, allocations: 4 kB / 477.6 MB, free: 7.488 MB / 362.7 MB Notification: Performance of matching and sorting (n=332) (initialization): time 0.00533/0.3541, allocations: 3.049 MB / 480.6 MB, free: 4.402 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.39e-05/0.3542, allocations: 101.1 kB / 480.7 MB, free: 4.285 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.089e-05/0.3543, allocations: 16 kB / 480.7 MB, free: 4.27 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001238/0.3555, allocations: 0.5762 MB / 481.3 MB, free: 3.684 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001344/0.3569, allocations: 391.2 kB / 481.7 MB, free: 3.301 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002103/0.359, allocations: 2.27 MB / 484 MB, free: 0.9531 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001573/0.3606, allocations: 139.8 kB / 484.1 MB, free: 0.8164 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002373/0.3608, allocations: 120 kB / 484.2 MB, free: 0.6992 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 77 * Number of states: 0 () * Number of discrete variables: 160 ($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.table.combiTimeTable.nextTimeEvent,$whenCondition12,$PRE.stop.table.combiTimeTable.nextTimeEvent,$whenCondition11,$PRE.shut.table.combiTimeTable.nextTimeEvent,$whenCondition10,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.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],$whenCondition6,$whenCondition4,$whenCondition5,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],$whenCondition3,$whenCondition1,$whenCondition2,tankController.stateGraphRoot.resume,tankController.stateGraphRoot.suspend,tankController.normal.T4.condition,tankController.normal.T2.condition,tank2.inFlow[2],tank2.inFlow[1],tank2.regularFlow[2],tank2.regularFlow[1],tank1.inFlow[2],tank1.inFlow[1],tank1.regularFlow[2],tank1.regularFlow[1],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.stateGraphRoot.activeSteps,tankController.valve3,tankController.valve2,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.normal.T4.t_start,$PRE.tankController.normal.T4.t_start,tankController.normal.T4.fire,tankController.normal.T4.enableFire,tankController.normal.wait2.oldActive,$PRE.tankController.normal.wait2.oldActive,tankController.normal.wait2.newActive,$PRE.tankController.normal.wait2.newActive,tankController.normal.wait2.localActive,$PRE.tankController.normal.wait2.localActive,tankController.normal.wait2.active,tankController.normal.T2.t_start,$PRE.tankController.normal.T2.t_start,tankController.normal.T2.fire,tankController.normal.T2.enableFire,tankController.normal.wait1.oldActive,$PRE.tankController.normal.wait1.oldActive,tankController.normal.wait1.newActive,$PRE.tankController.normal.wait1.newActive,tankController.normal.wait1.localActive,$PRE.tankController.normal.wait1.localActive,tankController.normal.wait1.active,tankController.normal.emptyTank2.oldActive,$PRE.tankController.normal.emptyTank2.oldActive,tankController.normal.emptyTank2.newActive,$PRE.tankController.normal.emptyTank2.newActive,tankController.normal.emptyTank2.localActive,$PRE.tankController.normal.emptyTank2.localActive,tankController.normal.emptyTank2.active,tankController.normal.T3.enableFire,tankController.normal.T3.condition,tankController.normal.fillTank2.oldActive,$PRE.tankController.normal.fillTank2.oldActive,tankController.normal.fillTank2.newActive,$PRE.tankController.normal.fillTank2.newActive,tankController.normal.fillTank2.localActive,$PRE.tankController.normal.fillTank2.localActive,tankController.normal.fillTank2.active,tankController.normal.T1.enableFire,tankController.normal.T1.condition,tankController.normal.fillTank1.oldActive,$PRE.tankController.normal.fillTank1.oldActive,tankController.normal.fillTank1.newActive,$PRE.tankController.normal.fillTank1.newActive,tankController.normal.fillTank1.localActive,$PRE.tankController.normal.fillTank1.localActive,tankController.normal.fillTank1.active,tankController.normal.activeSteps,tankController.normal.newActive,$PRE.tankController.normal.newActive,tankController.normal.active,tankController.normal.stateGraphRoot.resume,tankController.normal.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,$whenCondition13,$whenCondition14,$whenCondition15) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (311): * Single equations (assignments): 305 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(2,3), (4,4), (2,3)} Notification: Performance of prepare postOptimizeDAE: time 0.001243/0.3621, allocations: 0.7637 MB / 485 MB, free: 15.89 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004886/0.3626, allocations: 201.6 kB / 485.2 MB, free: 15.7 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005712/0.3683, allocations: 3.039 MB / 488.2 MB, free: 12.61 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.197e-05/0.3683, allocations: 20 kB / 488.2 MB, free: 12.59 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.488e-06/0.3683, allocations: 0 / 488.2 MB, free: 12.59 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.125e-05/0.3684, allocations: 11.95 kB / 488.2 MB, free: 12.58 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008916/0.3773, allocations: 5.389 MB / 493.6 MB, free: 7.102 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.148e-06/0.3773, allocations: 4 kB / 493.6 MB, free: 7.098 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009664/0.3783, allocations: 243.5 kB / 493.9 MB, free: 6.859 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00105/0.3794, allocations: 0.5607 MB / 494.4 MB, free: 6.289 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000177/0.3796, allocations: 63.95 kB / 494.5 MB, free: 6.227 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001884/0.3814, allocations: 2.223 MB / 496.7 MB, free: 3.926 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.865e-06/0.3815, allocations: 4.031 kB / 496.7 MB, free: 3.922 MB / 378.7 MB Error: Jacobian A contains non-linear components. This indicates a singular system or internal generation errors. Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2416/0.6231, allocations: 30.12 MB / 0.5145 GB, free: 121.9 MB / 394.7 MB Error: post-optimization module symbolicJacobian (simulation) failed.