Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_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_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_Modelica.Fluid.Examples.ControlledTankSystem.ControlledTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001673/0.001673, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.489/1.489, allocations: 226.7 MB / 245.5 MB, free: 6.977 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001004/0.001004, allocations: 93.77 kB / 296.7 MB, free: 6.508 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009004/0.0009004, allocations: 55.91 kB / 356.6 MB, free: 10.63 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2119/0.2128, allocations: 50.45 MB / 407 MB, free: 27.83 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.ControlledTankSystem.ControlledTanks): time 0.02081/0.2337, allocations: 28.87 MB / 435.9 MB, free: 14.88 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01214/0.2458, allocations: 7.904 MB / 443.8 MB, free: 6.957 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002572/0.2484, allocations: 63.56 kB / 443.9 MB, free: 6.895 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002823/0.2513, allocations: 0.8846 MB / 444.8 MB, free: 6.008 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00434/0.2557, allocations: 1.478 MB / 446.2 MB, free: 4.523 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005399/0.2611, allocations: 2.063 MB / 448.3 MB, free: 2.484 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.007005/0.2681, allocations: 6.061 MB / 454.4 MB, free: 12.41 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003126/0.2713, allocations: 1.845 MB / 456.2 MB, free: 10.52 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002824/0.2741, allocations: 1.537 MB / 457.7 MB, free: 8.977 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002603/0.2767, allocations: 1.626 MB / 459.4 MB, free: 7.344 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005228/0.2773, allocations: 152 kB / 459.5 MB, free: 7.195 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002754/0.28, allocations: 0.7958 MB / 460.3 MB, free: 6.398 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000768/0.2808, allocations: 0.7047 MB / 461 MB, free: 5.691 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001579/0.2824, allocations: 1.259 MB / 462.3 MB, free: 4.426 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004233/0.2866, allocations: 3.92 MB / 466.2 MB, free: 0.4961 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.2867, allocations: 3.938 kB / 466.2 MB, free: 0.4922 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.042e-06/0.2867, allocations: 0 / 466.2 MB, free: 0.4922 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.926e-05/0.2867, allocations: 0 / 466.2 MB, free: 0.4922 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.00574/0.2925, allocations: 3.121 MB / 469.3 MB, free: 13.23 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.007e-05/0.2925, allocations: 12.03 kB / 469.3 MB, free: 13.22 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007611/0.2933, allocations: 297.8 kB / 469.6 MB, free: 12.93 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002278/0.2956, allocations: 1.437 MB / 471.1 MB, free: 11.43 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002357/0.2958, allocations: 311.4 kB / 471.4 MB, free: 11.11 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002961/0.2961, allocations: 224 kB / 471.6 MB, free: 10.89 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004276/0.3004, allocations: 2.766 MB / 474.4 MB, free: 7.957 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.127e-05/0.3005, allocations: 3.938 kB / 474.4 MB, free: 7.953 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002099/0.3007, allocations: 95.97 kB / 474.5 MB, free: 7.859 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.573e-05/0.3008, allocations: 99.69 kB / 474.5 MB, free: 7.762 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003783/0.3046, allocations: 2.204 MB / 476.8 MB, free: 5.555 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.01266/0.3173, allocations: 10.32 MB / 487.1 MB, free: 10.84 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002785/0.3201, allocations: 2.068 MB / 489.1 MB, free: 8.633 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001562/0.3216, allocations: 1.102 MB / 490.2 MB, free: 7.504 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007176/0.3288, allocations: 5.491 MB / 495.7 MB, free: 1.664 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002071/0.3309, allocations: 1.531 MB / 497.3 MB, free: 44 kB / 362.7 MB Notification: Performance of pre-optimization done (n=207): time 3.566e-06/0.3309, allocations: 4 kB / 497.3 MB, free: 40 kB / 362.7 MB Notification: Performance of matching and sorting (n=217): time 0.01431/0.3453, allocations: 8.536 MB / 0.494 GB, free: 7.312 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000294/0.3456, allocations: 0.7594 MB / 0.4947 GB, free: 6.383 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001992/0.3476, allocations: 1.674 MB / 0.4963 GB, free: 4.695 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002388/0.3478, allocations: 121.7 kB / 0.4964 GB, free: 4.57 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006927/0.3485, allocations: 0.8891 MB / 0.4973 GB, free: 3.668 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005005/0.349, allocations: 0.6091 MB / 0.4979 GB, free: 3.051 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007903/0.3498, allocations: 0.5719 MB / 0.4985 GB, free: 2.473 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.07e-05/0.3499, allocations: 309.1 kB / 0.4988 GB, free: 2.168 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001639/0.3516, allocations: 0.9618 MB / 0.4997 GB, free: 1.203 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.166/0.5176, allocations: 1.677 MB / 0.5013 GB, free: 94.36 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003962/0.5216, allocations: 2.579 MB / 0.5039 GB, free: 93.07 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.801e-05/0.5217, allocations: 3.969 kB / 0.5039 GB, free: 93.07 MB / 378.7 MB Notification: Performance of matching and sorting (n=352) (initialization): time 0.005697/0.5274, allocations: 3.19 MB / 0.507 GB, free: 91.9 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.634e-05/0.5275, allocations: 106.6 kB / 0.5071 GB, free: 91.8 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.068e-05/0.5275, allocations: 25.39 kB / 0.5071 GB, free: 91.8 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001284/0.5288, allocations: 0.5814 MB / 0.5077 GB, free: 91.66 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001459/0.5303, allocations: 392.9 kB / 0.508 GB, free: 91.61 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001884/0.5322, allocations: 2.264 MB / 0.5103 GB, free: 89.81 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001746/0.5339, allocations: 149.8 kB / 0.5104 GB, free: 89.77 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002351/0.5342, allocations: 131.6 kB / 0.5105 GB, free: 89.74 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],tankController.T6.t_start,$PRE.tankController.T6.t_start,tankController.T5.t_start,$PRE.tankController.T5.t_start,tankController.T4.t_start,$PRE.tankController.T4.t_start,tankController.T3.t_start,$PRE.tankController.T3.t_start,tankController.T2.t_start,$PRE.tankController.T2.t_start,tankController.T1.t_start,$PRE.tankController.T1.t_start,tankController.normal.T3.t_start,$PRE.tankController.normal.T3.t_start,tankController.normal.T1.t_start,$PRE.tankController.normal.T1.t_start,$PRE.start.table.combiTimeTable.nextTimeEvent,$whenCondition12,$PRE.stop.table.combiTimeTable.nextTimeEvent,$whenCondition11,$PRE.shut.table.combiTimeTable.nextTimeEvent,$whenCondition10,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],$whenCondition6,$whenCondition4,$whenCondition5,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],$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 (325): * Single equations (assignments): 319 * 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.001117/0.5353, allocations: 0.8119 MB / 0.5113 GB, free: 89.23 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003629/0.5357, allocations: 209.3 kB / 0.5115 GB, free: 89.23 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004558/0.5402, allocations: 3.09 MB / 0.5145 GB, free: 88.02 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.171e-05/0.5403, allocations: 22.56 kB / 0.5146 GB, free: 88.02 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.728e-06/0.5403, allocations: 3.656 kB / 0.5146 GB, free: 88.02 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.927e-05/0.5403, allocations: 17.23 kB / 0.5146 GB, free: 88.02 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007501/0.5478, allocations: 5.52 MB / 0.52 GB, free: 84.25 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.051e-05/0.5479, allocations: 0 / 0.52 GB, free: 84.25 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009423/0.5488, allocations: 259.3 kB / 0.5202 GB, free: 84 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000918/0.5498, allocations: 0.559 MB / 0.5208 GB, free: 83.46 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000145/0.5499, allocations: 67.95 kB / 0.5208 GB, free: 83.39 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001543/0.5515, allocations: 2.231 MB / 0.523 GB, free: 81.09 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.276e-06/0.5515, allocations: 8.016 kB / 0.523 GB, free: 81.09 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.08268/0.6342, allocations: 30.35 MB / 0.5527 GB, free: 50.53 MB / 378.7 MB Error: post-optimization module symbolicJacobian (simulation) failed.