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.08782/0.08782, allocations: 15.29 MB / 31.55 MB, free: 4.027 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.001054/0.001055, allocations: 114.2 kB / 36.55 MB, free: 3.246 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.001284/0.001284, allocations: 193.1 kB / 41.65 MB, free: 7.145 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.415/1.415, allocations: 222.9 MB / 269.5 MB, free: 6.934 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1342/0.1342, allocations: 23.36 MB / 347.2 MB, free: 0.668 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00203/0.00203, allocations: 107.8 kB / 419.7 MB, free: 29.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09865/0.1007, allocations: 59.38 MB / 479 MB, free: 2.273 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.2838/0.3845, allocations: 75.28 MB / 0.5413 GB, free: 9.098 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01422/0.3987, allocations: 15.34 MB / 0.5563 GB, free: 5.812 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000905/0.3997, allocations: 23.88 kB / 0.5563 GB, free: 5.789 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007014/0.4004, allocations: 246.3 kB / 0.5566 GB, free: 5.664 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003362/0.4038, allocations: 1.551 MB / 0.5581 GB, free: 4.797 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004692/0.4085, allocations: 2.144 MB / 0.5602 GB, free: 3.574 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001279/0.4098, allocations: 1.525 MB / 0.5617 GB, free: 2.625 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004338/0.4102, allocations: 427.1 kB / 0.5621 GB, free: 2.418 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001916/0.4121, allocations: 1.159 MB / 0.5632 GB, free: 1.695 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005931/0.4127, allocations: 0.5481 MB / 0.5637 GB, free: 1.371 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.651e-05/0.4128, allocations: 52 kB / 0.5638 GB, free: 1.32 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003246/0.4161, allocations: 1.476 MB / 0.5652 GB, free: 392 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001805/0.4163, allocations: 172.3 kB / 0.5654 GB, free: 324 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002982/0.4166, allocations: 344.3 kB / 0.5657 GB, free: 96 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003353/0.4199, allocations: 2.066 MB / 0.5677 GB, free: 14.86 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.42, allocations: 2.859 kB / 0.5677 GB, free: 14.86 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.42, allocations: 4 kB / 0.5677 GB, free: 14.85 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.556e-06/0.42, allocations: 4 kB / 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.001991/0.422, allocations: 1.134 MB / 0.5689 GB, free: 13.76 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.983e-05/0.422, allocations: 8.031 kB / 0.5689 GB, free: 13.75 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00013/0.4222, allocations: 64.38 kB / 0.5689 GB, free: 13.69 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00065/0.4228, allocations: 478.8 kB / 0.5694 GB, free: 13.25 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.016e-05/0.4229, allocations: 47.8 kB / 0.5694 GB, free: 13.21 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.685e-05/0.4229, allocations: 43.94 kB / 0.5695 GB, free: 13.17 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009471/0.4239, allocations: 0.5498 MB / 0.57 GB, free: 12.69 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.066e-05/0.4239, allocations: 4 kB / 0.57 GB, free: 12.68 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.37e-05/0.424, allocations: 16 kB / 0.57 GB, free: 12.67 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.647e-05/0.424, allocations: 15 kB / 0.57 GB, free: 12.66 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001013/0.425, allocations: 493.5 kB / 0.5705 GB, free: 12.19 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.002887/0.4279, allocations: 2.247 MB / 0.5727 GB, free: 9.812 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008984/0.4288, allocations: 0.5194 MB / 0.5732 GB, free: 9.266 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005032/0.4294, allocations: 256.7 kB / 0.5735 GB, free: 9.012 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001755/0.4311, allocations: 1.409 MB / 0.5748 GB, free: 7.461 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005119/0.4316, allocations: 260.6 kB / 0.5751 GB, free: 7.195 MB / 398.1 MB Notification: Performance of pre-optimization done (n=38): time 1.973e-06/0.4317, allocations: 0 / 0.5751 GB, free: 7.195 MB / 398.1 MB Notification: Performance of matching and sorting (n=38): time 0.001538/0.4332, allocations: 0.7142 MB / 0.5758 GB, free: 6.453 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.721e-05/0.4333, allocations: 55.41 kB / 0.5758 GB, free: 6.387 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004956/0.4338, allocations: 473.7 kB / 0.5763 GB, free: 5.914 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.662e-05/0.4338, allocations: 37.7 kB / 0.5763 GB, free: 5.871 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001751/0.434, allocations: 287.7 kB / 0.5766 GB, free: 5.586 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001035/0.4341, allocations: 129.5 kB / 0.5767 GB, free: 5.461 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00016/0.4343, allocations: 106.1 kB / 0.5768 GB, free: 5.352 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001361/0.4344, allocations: 366.7 kB / 0.5772 GB, free: 4.984 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004407/0.4349, allocations: 209 kB / 0.5774 GB, free: 4.781 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005336/0.4354, allocations: 340.5 kB / 0.5777 GB, free: 4.395 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.003835/0.4393, allocations: 1.699 MB / 0.5793 GB, free: 2.59 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.749e-06/0.4393, allocations: 4 kB / 0.5793 GB, free: 2.586 MB / 398.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001397/0.4407, allocations: 0.7003 MB / 0.58 GB, free: 1.871 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.265e-05/0.4407, allocations: 36.36 kB / 0.5801 GB, free: 1.832 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.048e-05/0.4407, allocations: 7.938 kB / 0.5801 GB, free: 1.824 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001637/0.4409, allocations: 44.81 kB / 0.5801 GB, free: 1.777 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004936/0.4414, allocations: 119.8 kB / 0.5802 GB, free: 1.66 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004247/0.4419, allocations: 0.5602 MB / 0.5808 GB, free: 1.074 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004948/0.4424, allocations: 63.36 kB / 0.5808 GB, free: 1.012 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.734e-05/0.4424, allocations: 27.98 kB / 0.5809 GB, free: 0.9844 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.000298/0.4427, allocations: 189.6 kB / 0.581 GB, free: 0.7891 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.165e-05/0.4428, allocations: 47.38 kB / 0.5811 GB, free: 0.7422 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001196/0.444, allocations: 0.5494 MB / 0.5816 GB, free: 188 kB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.239e-05/0.4441, allocations: 11.98 kB / 0.5816 GB, free: 176 kB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.4441, allocations: 0 / 0.5816 GB, free: 176 kB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.46e-06/0.4441, allocations: 4 kB / 0.5816 GB, free: 172 kB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005983/0.4447, allocations: 0.5221 MB / 0.5822 GB, free: 15.61 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-06/0.4447, allocations: 0 / 0.5822 GB, free: 15.61 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003454/0.4451, allocations: 71.89 kB / 0.5822 GB, free: 15.54 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.358e-05/0.4452, allocations: 36.83 kB / 0.5823 GB, free: 15.5 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.232e-05/0.4452, allocations: 12 kB / 0.5823 GB, free: 15.48 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003388/0.4455, allocations: 0.5485 MB / 0.5828 GB, free: 14.91 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.098e-06/0.4456, allocations: 3.984 kB / 0.5828 GB, free: 14.91 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001506/0.4471, allocations: 0.7744 MB / 0.5836 GB, free: 14.11 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002337/0.4473, allocations: 172.4 kB / 0.5837 GB, free: 13.92 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.673e-05/0.4474, allocations: 12 kB / 0.5837 GB, free: 13.91 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003241/0.4477, allocations: 27.84 kB / 0.5838 GB, free: 13.88 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001018/0.4478, allocations: 35.95 kB / 0.5838 GB, free: 13.85 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.249e-05/0.4479, allocations: 11.98 kB / 0.5838 GB, free: 13.84 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003493/0.4482, allocations: 323.1 kB / 0.5841 GB, free: 13.52 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4482, allocations: 0 / 0.5841 GB, free: 13.52 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001255/0.4495, allocations: 0.5071 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.001227/0.4507, allocations: 0.7155 MB / 0.5853 GB, free: 12.35 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001226/0.452, allocations: 0.5627 MB / 0.5859 GB, free: 11.77 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.452, allocations: 4.062 kB / 0.5859 GB, free: 11.77 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004877/0.4525, allocations: 235.7 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.0009505/0.4534, allocations: 237.4 kB / 0.5863 GB, free: 11.31 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001934/0.4554, allocations: 1.158 MB / 0.5875 GB, free: 10.13 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003923/0.4558, allocations: 0.8666 MB / 0.5883 GB, free: 9.234 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003621/0.4562, allocations: 124.4 kB / 0.5884 GB, free: 9.109 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001445/0.4563, allocations: 59.41 kB / 0.5885 GB, free: 9.051 MB / 414.1 MB Notification: Performance of SimCode: time 2.775e-06/0.4563, allocations: 0 / 0.5885 GB, free: 9.051 MB / 414.1 MB Notification: Performance of Templates: time 0.02686/0.4832, allocations: 17.54 MB / 0.6056 GB, free: 7.617 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 cvode -lv LOG_STATS > Physiolibrary_Physiolibrary.Fluid.Examples.MinimalCirculation.pipe 2>&1)