Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Physiolibrary_Physiolibrary.Fluid.Examples.MinimalCirculation.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo", uses=false) 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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo", uses=false) Using package Physiolibrary with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) Using package Chemical with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo) Running command: translateModel(Physiolibrary.Fluid.Examples.MinimalCirculation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Fluid.Examples.MinimalCirculation") translateModel(Physiolibrary.Fluid.Examples.MinimalCirculation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Fluid.Examples.MinimalCirculation") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo): time 0.1069/0.1069, allocations: 15.27 MB / 30.51 MB, free: 4.344 MB / 26.18 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001122/0.001122, allocations: 108 kB / 35.48 MB, free: 3.395 MB / 26.18 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001365/0.001365, allocations: 196.5 kB / 40.58 MB, free: 7.457 MB / 34.91 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.472/1.472, allocations: 222.9 MB / 268.4 MB, free: 7.203 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1519/0.1519, allocations: 23.34 MB / 346.1 MB, free: 456 kB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001743/0.001744, allocations: 107.8 kB / 417.7 MB, free: 30.78 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1212/0.123, allocations: 59.37 MB / 477 MB, free: 3.352 MB / 334.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/Fluid.mo:596:7-596:66:writable] Warning: An inner declaration for outer component system could not be found and was automatically generated. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/Fluid.mo:596:7-596:66:writable] Notification: The diagnostics message for the missing inner is: Your model is using an outer "system" component but an inner "system" component is not defined. For simulation drag Modelica.Fluid.System into your model to specify system properties. Notification: Performance of NFInst.instantiate(Physiolibrary.Fluid.Examples.MinimalCirculation): time 0.3925/0.5155, allocations: 74.71 MB / 0.5388 GB, free: 10.69 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01941/0.535, allocations: 15.32 MB / 0.5538 GB, free: 8.234 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00236/0.5374, allocations: 39.69 kB / 0.5538 GB, free: 8.195 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001104/0.5385, allocations: 207 kB / 0.554 GB, free: 8.105 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005839/0.5444, allocations: 1.445 MB / 0.5554 GB, free: 7.324 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007311/0.5517, allocations: 1.953 MB / 0.5573 GB, free: 6.242 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002522/0.5543, allocations: 1.52 MB / 0.5588 GB, free: 5.289 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007554/0.5551, allocations: 427.2 kB / 0.5592 GB, free: 5.09 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003233/0.5583, allocations: 1.134 MB / 0.5603 GB, free: 4.414 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001216/0.5596, allocations: 0.5701 MB / 0.5609 GB, free: 4.074 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.615e-05/0.5597, allocations: 56 kB / 0.5609 GB, free: 4.02 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004966/0.5646, allocations: 1.514 MB / 0.5624 GB, free: 3.031 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002428/0.5649, allocations: 174.8 kB / 0.5626 GB, free: 2.969 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005015/0.5654, allocations: 346.2 kB / 0.5629 GB, free: 2.742 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00618/0.5716, allocations: 2.002 MB / 0.5649 GB, free: 1.551 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.582e-06/0.5717, allocations: 0 / 0.5649 GB, free: 1.551 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.265e-06/0.5717, allocations: 0 / 0.5649 GB, free: 1.551 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.199e-05/0.5717, allocations: 0 / 0.5649 GB, free: 1.551 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: 107 * Number of variables: 107 Notification: Performance of Generate backend data structure: time 0.002371/0.5741, allocations: 1.143 MB / 0.566 GB, free: 0.543 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.326e-05/0.5741, allocations: 8.031 kB / 0.566 GB, free: 0.5352 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001443/0.5743, allocations: 63.25 kB / 0.566 GB, free: 484 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005763/0.5749, allocations: 460.2 kB / 0.5665 GB, free: 84 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.518e-05/0.5749, allocations: 32.94 kB / 0.5665 GB, free: 52 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.365e-05/0.575, allocations: 48 kB / 0.5666 GB, free: 4 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001167/0.5762, allocations: 0.5553 MB / 0.5671 GB, free: 15.55 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.891e-05/0.5762, allocations: 7.906 kB / 0.5671 GB, free: 15.54 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.505e-05/0.5763, allocations: 16 kB / 0.5671 GB, free: 15.52 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.62e-05/0.5763, allocations: 11.94 kB / 0.5671 GB, free: 15.51 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009974/0.5773, allocations: 492.1 kB / 0.5676 GB, free: 15.11 MB / 398.1 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.002986/0.5803, allocations: 2.247 MB / 0.5698 GB, free: 12.88 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009113/0.5812, allocations: 0.5195 MB / 0.5703 GB, free: 12.33 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005077/0.5817, allocations: 256.7 kB / 0.5705 GB, free: 12.08 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001803/0.5836, allocations: 1.396 MB / 0.5719 GB, free: 10.54 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005662/0.5841, allocations: 265 kB / 0.5722 GB, free: 10.27 MB / 398.1 MB Notification: Performance of pre-optimization done (n=38): time 2.405e-06/0.5841, allocations: 0 / 0.5722 GB, free: 10.27 MB / 398.1 MB Notification: Performance of matching and sorting (n=38): time 0.001675/0.5858, allocations: 0.7179 MB / 0.5729 GB, free: 9.523 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.914e-05/0.5859, allocations: 59.41 kB / 0.5729 GB, free: 9.453 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005657/0.5865, allocations: 469.8 kB / 0.5734 GB, free: 8.984 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.806e-05/0.5865, allocations: 29.7 kB / 0.5734 GB, free: 8.949 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000261/0.5868, allocations: 295.1 kB / 0.5737 GB, free: 8.66 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000112/0.5869, allocations: 137.1 kB / 0.5738 GB, free: 8.527 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001689/0.5871, allocations: 106.1 kB / 0.5739 GB, free: 8.418 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001443/0.5872, allocations: 366.7 kB / 0.5743 GB, free: 8.051 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004356/0.5877, allocations: 209 kB / 0.5745 GB, free: 7.848 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005078/0.5882, allocations: 340.4 kB / 0.5748 GB, free: 7.461 MB / 398.1 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: arteries.mass = arteries.tm_start (arteries.m_start[1] + arteries.massOffset = arteries.tm_start) Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: veins.mass = veins.tm_start (veins.m_start[1] + veins.massOffset = veins.tm_start) Notification: Performance of analyzeInitialSystem (initialization): time 0.003727/0.5919, allocations: 1.708 MB / 0.5765 GB, free: 5.645 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.201e-06/0.592, allocations: 4 kB / 0.5765 GB, free: 5.641 MB / 398.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001439/0.5934, allocations: 0.696 MB / 0.5771 GB, free: 4.93 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.682e-05/0.5935, allocations: 29.7 kB / 0.5772 GB, free: 4.895 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.092e-05/0.5935, allocations: 4 kB / 0.5772 GB, free: 4.891 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001622/0.5936, allocations: 45.33 kB / 0.5772 GB, free: 4.844 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005097/0.5942, allocations: 115.8 kB / 0.5773 GB, free: 4.73 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004236/0.5946, allocations: 0.5678 MB / 0.5779 GB, free: 4.137 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006801/0.5953, allocations: 75.59 kB / 0.5779 GB, free: 4.062 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.33e-05/0.5954, allocations: 27.92 kB / 0.578 GB, free: 4.035 MB / 398.1 MB Warning: The initial conditions are over specified. The following 2 initial equations are redundant, so they are removed from the initialization system: arteries.mass = arteries.tm_start veins.mass = veins.tm_start. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 5 ($PRE.pulse.count,$PRE.pulse.T_start,pulse.count,pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (63): * Single equations (assignments): 59 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0003219/0.5957, allocations: 189.6 kB / 0.5782 GB, free: 3.84 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.624e-05/0.5958, allocations: 51.28 kB / 0.5782 GB, free: 3.789 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00118/0.597, allocations: 0.5373 MB / 0.5787 GB, free: 3.246 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.375e-05/0.597, allocations: 7.984 kB / 0.5787 GB, free: 3.238 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.703e-06/0.597, allocations: 0 / 0.5787 GB, free: 3.238 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.563e-06/0.597, allocations: 4 kB / 0.5787 GB, free: 3.234 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007028/0.5977, allocations: 0.5329 MB / 0.5793 GB, free: 2.66 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.055e-06/0.5978, allocations: 0 / 0.5793 GB, free: 2.66 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003562/0.5981, allocations: 67.89 kB / 0.5793 GB, free: 2.594 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001006/0.5982, allocations: 40.81 kB / 0.5794 GB, free: 2.551 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.443e-05/0.5983, allocations: 8 kB / 0.5794 GB, free: 2.543 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003933/0.5987, allocations: 0.5601 MB / 0.5799 GB, free: 1.957 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.5987, allocations: 0 / 0.5799 GB, free: 1.957 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001423/0.6001, allocations: 0.7709 MB / 0.5807 GB, free: 1.164 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002402/0.6004, allocations: 176.3 kB / 0.5808 GB, free: 0.9727 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.719e-05/0.6005, allocations: 8 kB / 0.5808 GB, free: 0.9648 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000377/0.6008, allocations: 47.83 kB / 0.5809 GB, free: 0.918 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001117/0.601, allocations: 35.95 kB / 0.5809 GB, free: 0.8828 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.46e-05/0.601, allocations: 15.98 kB / 0.5809 GB, free: 0.8672 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003838/0.6014, allocations: 319.1 kB / 0.5812 GB, free: 0.5586 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.6014, allocations: 3.938 kB / 0.5813 GB, free: 0.5547 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001518/0.6029, allocations: 0.4954 MB / 0.5817 GB, free: 60 kB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (arteries.enthalpy,arteries.substanceMasses[1],veins.enthalpy,veins.substanceMasses[1]) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (37): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001437/0.6044, allocations: 0.7227 MB / 0.5824 GB, free: 15.39 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001362/0.6057, allocations: 0.5907 MB / 0.583 GB, free: 14.79 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.6057, allocations: 0 / 0.583 GB, free: 14.79 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004554/0.6062, allocations: 236.5 kB / 0.5832 GB, free: 14.56 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001097/0.6073, allocations: 240.9 kB / 0.5835 GB, free: 14.33 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002203/0.6095, allocations: 1.351 MB / 0.5848 GB, free: 12.96 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003985/0.6099, allocations: 0.8744 MB / 0.5856 GB, free: 12.05 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0004925/0.6104, allocations: 128.4 kB / 0.5858 GB, free: 11.92 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001609/0.6106, allocations: 63.34 kB / 0.5858 GB, free: 11.86 MB / 414.1 MB Notification: Performance of SimCode: time 6.51e-07/0.6106, allocations: 3.938 kB / 0.5858 GB, free: 11.86 MB / 414.1 MB Notification: Performance of Templates: time 0.02627/0.6369, allocations: 17.39 MB / 0.6028 GB, free: 10.57 MB / 430.1 MB make -j1 -f Physiolibrary_Physiolibrary.Fluid.Examples.MinimalCirculation.makefile (rm -f Physiolibrary_Physiolibrary.Fluid.Examples.MinimalCirculation.pipe ; mkfifo Physiolibrary_Physiolibrary.Fluid.Examples.MinimalCirculation.pipe ; head -c 1048576 < Physiolibrary_Physiolibrary.Fluid.Examples.MinimalCirculation.pipe >> ../files/Physiolibrary_Physiolibrary.Fluid.Examples.MinimalCirculation.sim & ./Physiolibrary_Physiolibrary.Fluid.Examples.MinimalCirculation -abortSlowSimulation -alarm=480 -lv LOG_STATS > Physiolibrary_Physiolibrary.Fluid.Examples.MinimalCirculation.pipe 2>&1)