Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Annex60_1.0.0_Annex60.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Annex60 1.0.0/package.mo", uses=false) Using package Annex60 with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Annex60 1.0.0/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 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(Annex60.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Annex60_1.0.0_Annex60.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor") translateModel(Annex60.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Annex60_1.0.0_Annex60.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009128/0.000913, allocations: 99 kB / 15.05 MB, free: 1.105 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.000958/0.0009581, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.569/1.569, allocations: 205.4 MB / 222.1 MB, free: 5.648 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Annex60 1.0.0/package.mo): time 0.3788/0.3788, allocations: 54.98 MB / 325.4 MB, free: 0.6992 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Annex60 requested package Modelica of version 3.2.2. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005806/0.0005807, allocations: 12 kB / 396.6 MB, free: 11.77 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3208/0.3213, allocations: 60.71 MB / 457.3 MB, free: 38.56 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Annex60.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor): time 0.01946/0.3408, allocations: 19.53 MB / 476.8 MB, free: 28.44 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01111/0.352, allocations: 7.869 MB / 484.7 MB, free: 23.26 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00126/0.3533, allocations: 28.03 kB / 484.7 MB, free: 23.25 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001775/0.3551, allocations: 0.4988 MB / 485.2 MB, free: 22.99 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003058/0.3582, allocations: 0.9921 MB / 486.2 MB, free: 22.39 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006202/0.3644, allocations: 2.223 MB / 488.5 MB, free: 21.43 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002228/0.3667, allocations: 1.179 MB / 489.6 MB, free: 20.81 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001122/0.3678, allocations: 0.571 MB / 490.2 MB, free: 20.62 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001285/0.3691, allocations: 0.672 MB / 490.9 MB, free: 20.31 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009/0.37, allocations: 0.4978 MB / 491.4 MB, free: 20.11 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002084/0.3702, allocations: 31.22 kB / 491.4 MB, free: 20.11 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00168/0.3719, allocations: 0.748 MB / 492.2 MB, free: 19.95 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002925/0.3722, allocations: 172.8 kB / 492.3 MB, free: 19.86 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003854/0.3726, allocations: 198.1 kB / 492.5 MB, free: 19.75 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001546/0.3742, allocations: 0.9937 MB / 493.5 MB, free: 19.5 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.605e-06/0.3742, allocations: 0.9688 kB / 493.5 MB, free: 19.5 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.3742, allocations: 0 / 493.5 MB, free: 19.5 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.273e-05/0.3743, allocations: 0 / 493.5 MB, free: 19.5 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.002406/0.3767, allocations: 1.184 MB / 494.7 MB, free: 18.65 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.84e-05/0.3767, allocations: 13.42 kB / 494.7 MB, free: 18.64 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001266/0.378, allocations: 228.7 kB / 494.9 MB, free: 18.58 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00137/0.3794, allocations: 0.6331 MB / 495.6 MB, free: 18.18 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.885e-05/0.3795, allocations: 47.53 kB / 495.6 MB, free: 18.15 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001543/0.3796, allocations: 67.66 kB / 495.7 MB, free: 18.13 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004423/0.3841, allocations: 1.3 MB / 497 MB, free: 17.7 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.228e-05/0.3841, allocations: 5.5 kB / 497 MB, free: 17.7 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.415e-05/0.3842, allocations: 28.27 kB / 497 MB, free: 17.68 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.111e-05/0.3842, allocations: 15.75 kB / 497 MB, free: 17.68 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004139/0.3884, allocations: 1.075 MB / 498.1 MB, free: 17.47 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00474/0.3931, allocations: 3.106 MB / 0.4895 GB, free: 15.18 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004001/0.3972, allocations: 0.9666 MB / 0.4904 GB, free: 14.96 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000283/0.3975, allocations: 122.4 kB / 0.4905 GB, free: 14.86 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003664/0.4011, allocations: 0.8753 MB / 0.4914 GB, free: 14.64 MB / 382.1 MB Notification: Performance of pre-optimization done (n=30): time 6.372e-06/0.4012, allocations: 3.188 kB / 0.4914 GB, free: 14.64 MB / 382.1 MB Notification: Performance of matching and sorting (n=30): time 0.008097/0.4093, allocations: 1.868 MB / 0.4932 GB, free: 14.21 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.623e-05/0.4094, allocations: 291.7 kB / 0.4935 GB, free: 13.86 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001642/0.411, allocations: 0.8568 MB / 0.4943 GB, free: 13.5 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001517/0.4112, allocations: 44.48 kB / 0.4944 GB, free: 13.45 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004093/0.4116, allocations: 447.7 kB / 0.4948 GB, free: 13.1 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001256/0.4118, allocations: 99.97 kB / 0.4949 GB, free: 13.02 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.279e-05/0.4118, allocations: 11.72 kB / 0.4949 GB, free: 13.02 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.845e-05/0.4119, allocations: 326 kB / 0.4952 GB, free: 12.7 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001261/0.4132, allocations: 426.3 kB / 0.4956 GB, free: 12.61 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001471/0.4147, allocations: 0.611 MB / 0.4962 GB, free: 12.28 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001412/0.4161, allocations: 469.2 kB / 0.4967 GB, free: 12.13 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.747e-06/0.4161, allocations: 1.938 kB / 0.4967 GB, free: 12.13 MB / 382.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.003234/0.4194, allocations: 1.173 MB / 0.4978 GB, free: 11.77 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002997/0.4197, allocations: 1.433 MB / 0.4992 GB, free: 10.24 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.504e-05/0.4197, allocations: 5.547 kB / 0.4992 GB, free: 10.24 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.26e-05/0.4197, allocations: 5.938 kB / 0.4992 GB, free: 10.24 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004874/0.4246, allocations: 0.8615 MB / 0.5001 GB, free: 10.19 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006637/0.4313, allocations: 4.925 MB / 0.5049 GB, free: 5.98 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001645/0.4329, allocations: 218.2 kB / 0.5051 GB, free: 5.918 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001395/0.4331, allocations: 27.7 kB / 0.5051 GB, free: 5.914 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.075e-05/0.4331, allocations: 7.312 kB / 0.5051 GB, free: 5.91 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001228/0.4344, allocations: 0.615 MB / 0.5057 GB, free: 5.688 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.829e-06/0.4344, allocations: 4.594 kB / 0.5057 GB, free: 5.688 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.042e-05/0.4344, allocations: 6.969 kB / 0.5057 GB, free: 5.688 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005352/0.4349, allocations: 132.9 kB / 0.5058 GB, free: 5.672 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.671e-05/0.435, allocations: 17 kB / 0.5059 GB, free: 5.664 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009318/0.4359, allocations: 103.5 kB / 0.506 GB, free: 5.625 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.358e-05/0.436, allocations: 24.03 kB / 0.506 GB, free: 5.621 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 12 ($whenCondition1,ySet.a,ySet.b,ySet.last,$PRE.ySet.nextEvent,ySet.nextEvent,ySet.nextEventScaled,$PRE.mot.uppHys.y,mot.uppHys.y,$PRE.mot.lowHys.y,mot.lowHys.y,mot.int.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (66): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 3 {1,1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005889/0.4366, allocations: 351.3 kB / 0.5063 GB, free: 5.336 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002339/0.4368, allocations: 95.81 kB / 0.5064 GB, free: 5.285 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002856/0.4397, allocations: 0.9501 MB / 0.5073 GB, free: 5.031 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.202e-06/0.4397, allocations: 3.391 kB / 0.5073 GB, free: 5.031 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.479e-06/0.4397, allocations: 5.297 kB / 0.5073 GB, free: 5.027 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.296e-06/0.4397, allocations: 4.094 kB / 0.5073 GB, free: 5.027 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001344/0.4411, allocations: 0.8963 MB / 0.5082 GB, free: 4.449 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.468e-06/0.4411, allocations: 3.953 kB / 0.5082 GB, free: 4.445 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004218/0.4453, allocations: 0.7554 MB / 0.509 GB, free: 4.383 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.327e-06/0.4453, allocations: 2.219 kB / 0.509 GB, free: 4.383 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.75e-05/0.4454, allocations: 13.2 kB / 0.509 GB, free: 4.375 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005674/0.4511, allocations: 4.808 MB / 0.5137 GB, free: 15.9 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.416e-06/0.4511, allocations: 10 kB / 0.5137 GB, free: 15.89 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004135/0.4552, allocations: 1.435 MB / 0.5151 GB, free: 15.22 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004376/0.4557, allocations: 165.7 kB / 0.5152 GB, free: 15.06 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002864/0.456, allocations: 13.75 kB / 0.5153 GB, free: 15.05 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001234/0.4572, allocations: 157.7 kB / 0.5154 GB, free: 14.99 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001444/0.4574, allocations: 43.31 kB / 0.5154 GB, free: 14.96 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.958e-05/0.4575, allocations: 26.98 kB / 0.5155 GB, free: 14.95 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0009145/0.4584, allocations: 0.5721 MB / 0.516 GB, free: 14.61 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.4584, allocations: 0 / 0.516 GB, free: 14.61 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001824/0.4602, allocations: 434 kB / 0.5164 GB, free: 14.43 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (mot.int.y) * Number of discrete variables: 8 ($whenCondition1,ySet.a,ySet.b,ySet.last,ySet.nextEvent,ySet.nextEventScaled,mot.uppHys.y,mot.lowHys.y) * Number of discrete states: 8 (mot.lowHys.y,mot.uppHys.y,ySet.nextEvent,ySet.last,ySet.nextEventScaled,ySet.b,ySet.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 3 {1,1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006039/0.4608, allocations: 240.3 kB / 0.5167 GB, free: 14.21 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.007659/0.4685, allocations: 2.043 MB / 0.5187 GB, free: 12.14 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.782e-06/0.4686, allocations: 0 / 0.5187 GB, free: 12.14 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.008145/0.4767, allocations: 1.6 MB / 0.5202 GB, free: 10.53 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002584/0.4793, allocations: 392.7 kB / 0.5206 GB, free: 10.14 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005874/0.4852, allocations: 2.224 MB / 0.5228 GB, free: 7.887 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005954/0.4859, allocations: 1.012 MB / 0.5238 GB, free: 6.848 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0009416/0.4868, allocations: 157.1 kB / 0.5239 GB, free: 6.699 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002847/0.4871, allocations: 75.39 kB / 0.524 GB, free: 6.625 MB / 398.1 MB Notification: Performance of SimCode: time 7.51e-07/0.4871, allocations: 0 / 0.524 GB, free: 6.625 MB / 398.1 MB Notification: Performance of Templates: time 0.03088/0.518, allocations: 16.83 MB / 0.5404 GB, free: 5.93 MB / 414.1 MB make -j1 -f Annex60_1.0.0_Annex60.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.makefile Environment - environmentSimulation: (rm -f Annex60_1.0.0_Annex60.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; mkfifo Annex60_1.0.0_Annex60.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; head -c 1048576 < Annex60_1.0.0_Annex60.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe >> ../files/Annex60_1.0.0_Annex60.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.sim & ./Annex60_1.0.0_Annex60.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor -abortSlowSimulation -alarm=480 -lv LOG_STATS > Annex60_1.0.0_Annex60.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe 2>&1) Environment - environmentSimulation: