Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Annex60_1.0.0_Annex60.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.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.Interfaces.Examples.StaticTwoPortConservationEquation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Annex60_1.0.0_Annex60.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation") translateModel(Annex60.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Annex60_1.0.0_Annex60.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007606/0.007606, allocations: 102.3 kB / 15.73 MB, free: 5.578 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.0015/0.0015, allocations: 196.1 kB / 16.67 MB, free: 5.52 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.481/1.481, allocations: 205.1 MB / 222.5 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Annex60 1.0.0/package.mo): time 0.2654/0.2654, allocations: 54.96 MB / 324.9 MB, free: 4.855 MB / 270.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.001488/0.001488, allocations: 71.84 kB / 456.2 MB, free: 2.652 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1387/0.1402, allocations: 59.6 MB / 0.5037 GB, free: 7.102 MB / 398.1 MB Notification: Performance of NFInst.instantiate(Annex60.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.563/0.7033, allocations: 193.9 MB / 0.693 GB, free: 14.9 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.01041/0.7137, allocations: 5.472 MB / 0.6984 GB, free: 9.418 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001809/0.7156, allocations: 39.69 kB / 0.6984 GB, free: 9.379 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.002983/0.7186, allocations: 0.975 MB / 0.6994 GB, free: 8.398 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.006496/0.7251, allocations: 2.063 MB / 0.7014 GB, free: 6.328 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.003917/0.7291, allocations: 1.427 MB / 0.7028 GB, free: 4.922 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.005867/0.735, allocations: 3.825 MB / 0.7065 GB, free: 1.09 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002286/0.7373, allocations: 1.148 MB / 0.7076 GB, free: 15.94 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004775/0.7421, allocations: 1.669 MB / 0.7092 GB, free: 14.27 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002671/0.7447, allocations: 1.164 MB / 0.7104 GB, free: 13.11 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.000647/0.7454, allocations: 160 kB / 0.7105 GB, free: 12.95 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003712/0.7491, allocations: 1.396 MB / 0.7119 GB, free: 11.55 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.001116/0.7503, allocations: 0.5376 MB / 0.7124 GB, free: 11.02 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.002712/0.753, allocations: 0.8556 MB / 0.7133 GB, free: 10.16 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.005705/0.7587, allocations: 2.944 MB / 0.7161 GB, free: 7.207 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 6.332e-06/0.7587, allocations: 0 / 0.7161 GB, free: 7.207 MB / 0.5606 GB Notification: Performance of FrontEnd: time 2.014e-06/0.7587, allocations: 0 / 0.7161 GB, free: 7.207 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 7.671e-05/0.7588, allocations: 0 / 0.7161 GB, free: 7.207 MB / 0.5606 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 278 * Number of variables: 278 Notification: Performance of Generate backend data structure: time 0.006075/0.7649, allocations: 1.98 MB / 0.7181 GB, free: 5.164 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.631e-05/0.765, allocations: 8.031 kB / 0.7181 GB, free: 5.156 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003407/0.7684, allocations: 0.5523 MB / 0.7186 GB, free: 4.602 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003171/0.7716, allocations: 1.136 MB / 0.7197 GB, free: 3.418 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001174/0.7717, allocations: 78.12 kB / 0.7198 GB, free: 3.34 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002825/0.772, allocations: 108 kB / 0.7199 GB, free: 3.234 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004093/0.7761, allocations: 1.716 MB / 0.7216 GB, free: 1.41 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.575e-05/0.7761, allocations: 0 / 0.7216 GB, free: 1.41 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001648/0.7763, allocations: 52 kB / 0.7216 GB, free: 1.359 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.532e-05/0.7764, allocations: 53.98 kB / 0.7217 GB, free: 1.309 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004004/0.7804, allocations: 1.596 MB / 0.7232 GB, free: 15.71 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00946/0.7899, allocations: 6.095 MB / 0.7292 GB, free: 9.395 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001791/0.7917, allocations: 0.6516 MB / 0.7298 GB, free: 8.738 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007768/0.7925, allocations: 377.6 kB / 0.7302 GB, free: 8.367 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 4.293e-05/0.7926, allocations: 8.375 kB / 0.7302 GB, free: 8.359 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001383/0.794, allocations: 0.7344 MB / 0.7309 GB, free: 7.516 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=51): time 3.757e-06/0.794, allocations: 0 / 0.7309 GB, free: 7.516 MB / 0.5762 GB Notification: Performance of matching and sorting (n=51): time 0.002949/0.7969, allocations: 1.195 MB / 0.7321 GB, free: 6.309 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004335/0.7974, allocations: 0.9231 MB / 0.733 GB, free: 5.164 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002884/0.8003, allocations: 1.583 MB / 0.7345 GB, free: 3.57 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 0.0001219/0.8004, allocations: 41.7 kB / 0.7346 GB, free: 3.523 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005246/0.8009, allocations: 0.6412 MB / 0.7352 GB, free: 2.875 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.000174/0.8011, allocations: 181.5 kB / 0.7354 GB, free: 2.695 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000385/0.8015, allocations: 242.3 kB / 0.7356 GB, free: 2.449 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001215/0.8016, allocations: 341.9 kB / 0.7359 GB, free: 2.109 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001329/0.803, allocations: 0.4938 MB / 0.7364 GB, free: 1.617 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001845/0.8048, allocations: 1.019 MB / 0.7374 GB, free: 400 kB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002507/0.8074, allocations: 1.219 MB / 0.7386 GB, free: 15.02 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.042e-05/0.8074, allocations: 3.938 kB / 0.7386 GB, free: 15.02 MB / 0.5919 GB Notification: Performance of matching and sorting (n=110) (initialization): time 0.003784/0.8112, allocations: 1.506 MB / 0.7401 GB, free: 13.5 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 5.225e-05/0.8112, allocations: 44.97 kB / 0.7401 GB, free: 13.45 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.628e-05/0.8113, allocations: 8 kB / 0.7401 GB, free: 13.45 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.876e-05/0.8113, allocations: 16 kB / 0.7401 GB, free: 13.43 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001172/0.8125, allocations: 259.8 kB / 0.7404 GB, free: 13.18 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.695e-05/0.8125, allocations: 17.66 kB / 0.7404 GB, free: 13.16 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002233/0.8147, allocations: 322.1 kB / 0.7407 GB, free: 12.84 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001077/0.8149, allocations: 51.97 kB / 0.7407 GB, free: 12.79 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 42 * Number of states: 0 () * Number of discrete variables: 7 (QSen_flow.nextEventScaled,QSen_flow.nextEvent,$PRE.QSen_flow.nextEvent,QSen_flow.last,QSen_flow.b,QSen_flow.a,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (105): * Single equations (assignments): 104 * Array equations: 0 * Algorithm blocks: 1 * 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.0008112/0.8157, allocations: 411.1 kB / 0.7411 GB, free: 12.38 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000385/0.8161, allocations: 154.2 kB / 0.7413 GB, free: 12.22 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003879/0.8165, allocations: 149.5 kB / 0.7414 GB, free: 12.07 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.11e-05/0.8165, allocations: 8 kB / 0.7414 GB, free: 12.06 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.635e-06/0.8165, allocations: 7.938 kB / 0.7414 GB, free: 12.05 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.177e-06/0.8165, allocations: 7.984 kB / 0.7415 GB, free: 12.04 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00526/0.8218, allocations: 3.314 MB / 0.7447 GB, free: 8.57 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.867e-05/0.8218, allocations: 8 kB / 0.7447 GB, free: 8.562 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006358/0.8225, allocations: 108.1 kB / 0.7448 GB, free: 8.457 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.732e-05/0.8225, allocations: 12 kB / 0.7448 GB, free: 8.445 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.315e-05/0.8226, allocations: 23.98 kB / 0.7448 GB, free: 8.422 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.445e-05/0.8226, allocations: 11.94 kB / 0.7448 GB, free: 8.41 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.538e-06/0.8226, allocations: 11.94 kB / 0.7449 GB, free: 8.398 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002373/0.825, allocations: 1.207 MB / 0.746 GB, free: 7.074 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008922/0.8259, allocations: 395 kB / 0.7464 GB, free: 6.668 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004283/0.8263, allocations: 27.98 kB / 0.7464 GB, free: 6.641 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00157/0.8279, allocations: 115.9 kB / 0.7465 GB, free: 6.527 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001122/0.828, allocations: 55.77 kB / 0.7466 GB, free: 6.473 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.287e-05/0.8281, allocations: 27.98 kB / 0.7466 GB, free: 6.445 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.001886/0.83, allocations: 1.114 MB / 0.7477 GB, free: 5.332 MB / 0.5919 GB Notification: Performance of sort global known variables: time 3.91e-07/0.83, allocations: 0 / 0.7477 GB, free: 5.332 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.001381/0.8314, allocations: 372.1 kB / 0.7481 GB, free: 4.969 MB / 0.5919 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,QSen_flow.a,QSen_flow.b,QSen_flow.last,QSen_flow.nextEvent,QSen_flow.nextEventScaled) * Number of discrete states: 6 (QSen_flow.nextEvent,QSen_flow.last,QSen_flow.nextEventScaled,QSen_flow.b,QSen_flow.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (46): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 1 * 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 Backend phase and start with SimCode phase: time 0.0005941/0.832, allocations: 226.1 kB / 0.7483 GB, free: 4.746 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.00275/0.8348, allocations: 1.141 MB / 0.7494 GB, free: 3.594 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 9.959e-06/0.8348, allocations: 3.938 kB / 0.7494 GB, free: 3.59 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0008924/0.8357, allocations: 485.4 kB / 0.7499 GB, free: 3.105 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003736/0.8394, allocations: 0.787 MB / 0.7506 GB, free: 2.359 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2984/1.138, allocations: 2.303 MB / 0.7529 GB, free: 209.8 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001132/1.139, allocations: 1.155 MB / 0.754 GB, free: 209.1 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.001891/1.141, allocations: 334.5 kB / 0.7543 GB, free: 209.1 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003465/1.141, allocations: 107.4 kB / 0.7544 GB, free: 209.1 MB / 0.5919 GB Notification: Performance of SimCode: time 9.22e-07/1.141, allocations: 1.312 kB / 0.7544 GB, free: 209.1 MB / 0.5919 GB Notification: Performance of Templates: time 0.06367/1.205, allocations: 30.51 MB / 0.7842 GB, free: 199 MB / 0.5919 GB make -j1 -f Annex60_1.0.0_Annex60.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.makefile (rm -f Annex60_1.0.0_Annex60.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; mkfifo Annex60_1.0.0_Annex60.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; head -c 1048576 < Annex60_1.0.0_Annex60.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe >> ../files/Annex60_1.0.0_Annex60.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.sim & ./Annex60_1.0.0_Annex60.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation -abortSlowSimulation -alarm=480 -lv LOG_STATS > Annex60_1.0.0_Annex60.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe 2>&1)