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/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/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/package.mo): time 0.08504/0.08504, allocations: 15.28 MB / 31.53 MB, free: 3.988 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.001079/0.001079, allocations: 112.3 kB / 36.54 MB, free: 3.266 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.001273/0.001273, allocations: 189.1 kB / 41.64 MB, free: 7.141 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.388/1.388, allocations: 222.9 MB / 269.5 MB, free: 6.879 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1351/0.1351, allocations: 23.35 MB / 347.2 MB, free: 0.6602 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001986/0.001986, allocations: 107.8 kB / 419.7 MB, free: 29.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1084/0.1104, allocations: 59.36 MB / 479 MB, free: 2.262 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.2932/0.4037, allocations: 75.28 MB / 0.5413 GB, free: 9.078 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01434/0.418, allocations: 15.34 MB / 0.5563 GB, free: 5.805 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009715/0.419, allocations: 15.94 kB / 0.5563 GB, free: 5.789 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006971/0.4197, allocations: 249.4 kB / 0.5565 GB, free: 5.664 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004321/0.424, allocations: 1.553 MB / 0.5581 GB, free: 4.793 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005788/0.4299, allocations: 2.147 MB / 0.5602 GB, free: 3.57 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001635/0.4315, allocations: 1.52 MB / 0.5616 GB, free: 2.621 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000537/0.4321, allocations: 435.6 kB / 0.5621 GB, free: 2.406 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001998/0.4341, allocations: 1.157 MB / 0.5632 GB, free: 1.684 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005843/0.4347, allocations: 0.5414 MB / 0.5637 GB, free: 1.363 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.442e-05/0.4348, allocations: 56 kB / 0.5638 GB, free: 1.309 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00347/0.4382, allocations: 1.482 MB / 0.5652 GB, free: 376 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001718/0.4384, allocations: 161.8 kB / 0.5654 GB, free: 320 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002972/0.4387, allocations: 351.6 kB / 0.5657 GB, free: 88 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003745/0.4425, allocations: 2.063 MB / 0.5677 GB, free: 14.86 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.4425, allocations: 4 kB / 0.5677 GB, free: 14.86 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.4425, allocations: 3.938 kB / 0.5677 GB, free: 14.85 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.071e-05/0.4425, allocations: 0 / 0.5677 GB, free: 14.85 MB / 398.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.002188/0.4447, allocations: 1.14 MB / 0.5688 GB, free: 13.76 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.721e-05/0.4448, allocations: 12.03 kB / 0.5689 GB, free: 13.75 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001361/0.4449, allocations: 63.25 kB / 0.5689 GB, free: 13.68 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007087/0.4456, allocations: 474.2 kB / 0.5694 GB, free: 13.26 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.126e-05/0.4457, allocations: 36.94 kB / 0.5694 GB, free: 13.22 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.13e-05/0.4458, allocations: 47.94 kB / 0.5694 GB, free: 13.18 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009422/0.4467, allocations: 0.5514 MB / 0.57 GB, free: 12.7 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.021e-05/0.4467, allocations: 3.938 kB / 0.57 GB, free: 12.69 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.416e-05/0.4468, allocations: 16 kB / 0.57 GB, free: 12.68 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.818e-05/0.4468, allocations: 13.83 kB / 0.57 GB, free: 12.66 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009602/0.4478, allocations: 497.1 kB / 0.5705 GB, free: 12.2 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.00283/0.4506, allocations: 2.247 MB / 0.5727 GB, free: 9.816 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008841/0.4515, allocations: 0.5194 MB / 0.5732 GB, free: 9.27 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004836/0.452, allocations: 256.7 kB / 0.5734 GB, free: 9.016 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001637/0.4537, allocations: 1.407 MB / 0.5748 GB, free: 7.465 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005051/0.4542, allocations: 256.7 kB / 0.5751 GB, free: 7.203 MB / 398.1 MB Notification: Performance of pre-optimization done (n=38): time 2.525e-06/0.4542, allocations: 4 kB / 0.5751 GB, free: 7.199 MB / 398.1 MB Notification: Performance of matching and sorting (n=38): time 0.001508/0.4557, allocations: 0.7141 MB / 0.5758 GB, free: 6.457 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.477e-05/0.4558, allocations: 55.41 kB / 0.5758 GB, free: 6.391 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004888/0.4563, allocations: 469.8 kB / 0.5763 GB, free: 5.922 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.786e-05/0.4563, allocations: 37.7 kB / 0.5763 GB, free: 5.879 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001828/0.4565, allocations: 290.5 kB / 0.5766 GB, free: 5.594 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001014/0.4566, allocations: 132.5 kB / 0.5767 GB, free: 5.465 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001656/0.4568, allocations: 110.1 kB / 0.5768 GB, free: 5.352 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001275/0.4569, allocations: 362.7 kB / 0.5772 GB, free: 4.988 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004306/0.4573, allocations: 209 kB / 0.5774 GB, free: 4.785 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000537/0.4579, allocations: 340.5 kB / 0.5777 GB, free: 4.398 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.003672/0.4616, allocations: 1.699 MB / 0.5793 GB, free: 2.594 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.2e-06/0.4616, allocations: 0 / 0.5793 GB, free: 2.594 MB / 398.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001308/0.4629, allocations: 0.6964 MB / 0.58 GB, free: 1.883 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.737e-05/0.463, allocations: 40.5 kB / 0.5801 GB, free: 1.84 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.088e-05/0.463, allocations: 4 kB / 0.5801 GB, free: 1.836 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001429/0.4631, allocations: 48.77 kB / 0.5801 GB, free: 1.785 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005054/0.4636, allocations: 111.9 kB / 0.5802 GB, free: 1.676 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003903/0.464, allocations: 0.5679 MB / 0.5808 GB, free: 1.082 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004959/0.4646, allocations: 67.34 kB / 0.5808 GB, free: 1.016 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.433e-05/0.4646, allocations: 20 kB / 0.5808 GB, free: 0.9961 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.000246/0.4649, allocations: 189.7 kB / 0.581 GB, free: 0.8008 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001231/0.465, allocations: 51.38 kB / 0.5811 GB, free: 0.75 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00113/0.4661, allocations: 0.5533 MB / 0.5816 GB, free: 192 kB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.927e-06/0.4662, allocations: 4 kB / 0.5816 GB, free: 188 kB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.501e-06/0.4662, allocations: 4 kB / 0.5816 GB, free: 184 kB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.16e-06/0.4662, allocations: 0 / 0.5816 GB, free: 184 kB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000667/0.4669, allocations: 0.5271 MB / 0.5821 GB, free: 15.61 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.547e-06/0.4669, allocations: 0 / 0.5821 GB, free: 15.61 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003461/0.4672, allocations: 71.89 kB / 0.5822 GB, free: 15.54 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.697e-05/0.4673, allocations: 36.77 kB / 0.5822 GB, free: 15.5 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.898e-05/0.4674, allocations: 15.98 kB / 0.5823 GB, free: 15.49 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000362/0.4677, allocations: 0.5562 MB / 0.5828 GB, free: 14.91 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.4677, allocations: 0 / 0.5828 GB, free: 14.91 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001429/0.4692, allocations: 0.7705 MB / 0.5836 GB, free: 14.11 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002481/0.4694, allocations: 172.4 kB / 0.5837 GB, free: 13.93 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.518e-05/0.4695, allocations: 12 kB / 0.5837 GB, free: 13.91 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003315/0.4699, allocations: 27.91 kB / 0.5838 GB, free: 13.89 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001016/0.47, allocations: 31.95 kB / 0.5838 GB, free: 13.86 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.421e-05/0.47, allocations: 19.98 kB / 0.5838 GB, free: 13.84 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003658/0.4704, allocations: 315.1 kB / 0.5841 GB, free: 13.53 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4704, allocations: 0 / 0.5841 GB, free: 13.53 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001263/0.4717, allocations: 0.5149 MB / 0.5846 GB, free: 13.01 MB / 414.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.001558/0.4732, allocations: 0.7167 MB / 0.5853 GB, free: 12.35 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001155/0.4744, allocations: 0.5705 MB / 0.5859 GB, free: 11.77 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.4744, allocations: 0 / 0.5859 GB, free: 11.77 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004777/0.4749, allocations: 227.8 kB / 0.5861 GB, free: 11.54 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009576/0.4759, allocations: 233.5 kB / 0.5863 GB, free: 11.32 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002049/0.4779, allocations: 1.159 MB / 0.5874 GB, free: 10.14 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004147/0.4784, allocations: 0.8667 MB / 0.5883 GB, free: 9.238 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0004105/0.4788, allocations: 124.4 kB / 0.5884 GB, free: 9.113 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000155/0.479, allocations: 55.41 kB / 0.5885 GB, free: 9.059 MB / 414.1 MB Notification: Performance of SimCode: time 4.51e-07/0.479, allocations: 0 / 0.5885 GB, free: 9.059 MB / 414.1 MB Notification: Performance of Templates: time 0.02573/0.5047, allocations: 17.55 MB / 0.6056 GB, free: 7.613 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 -s gbode -lv LOG_STATS > Physiolibrary_Physiolibrary.Fluid.Examples.MinimalCirculation.pipe 2>&1)