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.09086/0.09086, allocations: 15.28 MB / 30.4 MB, free: 4.395 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.0009894/0.0009895, allocations: 103.3 kB / 35.37 MB, free: 3.461 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.001156/0.001156, allocations: 193.1 kB / 40.46 MB, free: 7.543 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.391/1.391, allocations: 222.9 MB / 268.3 MB, free: 7.652 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1372/0.1372, allocations: 23.35 MB / 346 MB, free: 0.8359 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001719/0.001719, allocations: 103.8 kB / 417.5 MB, free: 30.89 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.116/0.1177, allocations: 59.39 MB / 476.8 MB, free: 3.445 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.3285/0.4463, allocations: 75.05 MB / 0.539 GB, free: 11.26 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01542/0.4617, allocations: 15.47 MB / 0.5541 GB, free: 8.625 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001364/0.4631, allocations: 39.69 kB / 0.5541 GB, free: 8.586 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006711/0.4638, allocations: 196.4 kB / 0.5543 GB, free: 8.496 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003748/0.4676, allocations: 1.432 MB / 0.5557 GB, free: 7.742 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005544/0.4731, allocations: 1.916 MB / 0.5576 GB, free: 6.695 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001721/0.4749, allocations: 2.206 MB / 0.5597 GB, free: 5.395 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004063/0.4753, allocations: 374.2 kB / 0.5601 GB, free: 5.207 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001931/0.4772, allocations: 1.06 MB / 0.5611 GB, free: 4.555 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005837/0.4778, allocations: 0.5594 MB / 0.5617 GB, free: 4.211 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.599e-05/0.4779, allocations: 32 kB / 0.5617 GB, free: 4.18 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0034/0.4813, allocations: 1.481 MB / 0.5631 GB, free: 3.215 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001663/0.4815, allocations: 159.9 kB / 0.5633 GB, free: 3.145 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003165/0.4818, allocations: 325.9 kB / 0.5636 GB, free: 2.922 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002769/0.4846, allocations: 1.968 MB / 0.5655 GB, free: 1.52 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.4846, allocations: 0 / 0.5655 GB, free: 1.52 MB / 382.1 MB Notification: Performance of FrontEnd: time 8.22e-07/0.4846, allocations: 4 kB / 0.5655 GB, free: 1.516 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.214e-06/0.4846, allocations: 3.938 kB / 0.5655 GB, free: 1.512 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.001725/0.4863, allocations: 1.136 MB / 0.5666 GB, free: 432 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.25e-05/0.4864, allocations: 8.594 kB / 0.5666 GB, free: 424 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001194/0.4865, allocations: 63.25 kB / 0.5667 GB, free: 360 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005871/0.4871, allocations: 455 kB / 0.5671 GB, free: 15.93 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.843e-05/0.4871, allocations: 40.94 kB / 0.5672 GB, free: 15.89 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.682e-05/0.4872, allocations: 44 kB / 0.5672 GB, free: 15.85 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009622/0.4882, allocations: 0.5572 MB / 0.5678 GB, free: 15.29 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.57e-05/0.4882, allocations: 7.75 kB / 0.5678 GB, free: 15.29 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.783e-05/0.4883, allocations: 20 kB / 0.5678 GB, free: 15.27 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.739e-05/0.4883, allocations: 12 kB / 0.5678 GB, free: 15.25 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001004/0.4893, allocations: 495.6 kB / 0.5683 GB, free: 14.77 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.002756/0.4921, allocations: 2.23 MB / 0.5704 GB, free: 12.4 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000874/0.493, allocations: 0.5219 MB / 0.571 GB, free: 11.86 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000504/0.4935, allocations: 256.7 kB / 0.5712 GB, free: 11.6 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001619/0.4951, allocations: 1.402 MB / 0.5726 GB, free: 10.05 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005343/0.4957, allocations: 262.5 kB / 0.5728 GB, free: 9.789 MB / 398.1 MB Notification: Performance of pre-optimization done (n=38): time 2.204e-06/0.4957, allocations: 0 / 0.5728 GB, free: 9.789 MB / 398.1 MB Notification: Performance of matching and sorting (n=38): time 0.001583/0.4973, allocations: 0.7218 MB / 0.5735 GB, free: 9.039 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.817e-05/0.4973, allocations: 55.41 kB / 0.5736 GB, free: 8.973 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004982/0.4978, allocations: 469.8 kB / 0.574 GB, free: 8.504 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.504e-05/0.4979, allocations: 33.7 kB / 0.5741 GB, free: 8.465 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001875/0.4981, allocations: 294 kB / 0.5743 GB, free: 8.176 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.757e-05/0.4982, allocations: 133.7 kB / 0.5745 GB, free: 8.047 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001623/0.4983, allocations: 110.1 kB / 0.5746 GB, free: 7.934 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001168/0.4985, allocations: 362.7 kB / 0.5749 GB, free: 7.57 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004547/0.4989, allocations: 205 kB / 0.5751 GB, free: 7.371 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000517/0.4994, allocations: 340.5 kB / 0.5754 GB, free: 6.984 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.003832/0.5033, allocations: 1.706 MB / 0.5771 GB, free: 5.172 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.428e-06/0.5033, allocations: 0 / 0.5771 GB, free: 5.172 MB / 398.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001513/0.5048, allocations: 0.6965 MB / 0.5778 GB, free: 4.461 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.196e-05/0.5049, allocations: 33.7 kB / 0.5778 GB, free: 4.422 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.084e-05/0.5049, allocations: 8.031 kB / 0.5778 GB, free: 4.414 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001445/0.505, allocations: 44.83 kB / 0.5779 GB, free: 4.367 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005232/0.5056, allocations: 115.8 kB / 0.578 GB, free: 4.254 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004699/0.5061, allocations: 0.5678 MB / 0.5785 GB, free: 3.66 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006096/0.5067, allocations: 79.47 kB / 0.5786 GB, free: 3.582 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.814e-05/0.5068, allocations: 27.98 kB / 0.5786 GB, free: 3.555 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.0002812/0.507, allocations: 188.8 kB / 0.5788 GB, free: 3.363 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.68e-05/0.5071, allocations: 59.27 kB / 0.5789 GB, free: 3.305 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001189/0.5083, allocations: 0.5412 MB / 0.5794 GB, free: 2.758 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.949e-06/0.5084, allocations: 4 kB / 0.5794 GB, free: 2.754 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.631e-06/0.5084, allocations: 0 / 0.5794 GB, free: 2.754 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.915e-06/0.5084, allocations: 3.984 kB / 0.5794 GB, free: 2.75 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006363/0.509, allocations: 0.522 MB / 0.5799 GB, free: 2.188 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.906e-06/0.509, allocations: 4 kB / 0.5799 GB, free: 2.184 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003699/0.5094, allocations: 71.88 kB / 0.58 GB, free: 2.113 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.618e-05/0.5095, allocations: 36.84 kB / 0.58 GB, free: 2.074 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.716e-05/0.5096, allocations: 19.92 kB / 0.58 GB, free: 2.055 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003689/0.5099, allocations: 0.5484 MB / 0.5806 GB, free: 1.48 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.51, allocations: 0 / 0.5806 GB, free: 1.48 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001476/0.5114, allocations: 0.767 MB / 0.5813 GB, free: 0.6914 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002348/0.5117, allocations: 180.3 kB / 0.5815 GB, free: 0.4961 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.49e-05/0.5118, allocations: 8 kB / 0.5815 GB, free: 500 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003888/0.5122, allocations: 39.91 kB / 0.5815 GB, free: 460 kB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001095/0.5123, allocations: 39.94 kB / 0.5816 GB, free: 420 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.159e-05/0.5123, allocations: 11.98 kB / 0.5816 GB, free: 408 kB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003419/0.5127, allocations: 327.1 kB / 0.5819 GB, free: 84 kB / 398.1 MB Notification: Performance of sort global known variables: time 4.2e-07/0.5127, allocations: 0 / 0.5819 GB, free: 84 kB / 398.1 MB Notification: Performance of remove unused functions: time 0.001295/0.514, allocations: 0.4954 MB / 0.5824 GB, free: 15.59 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.001254/0.5153, allocations: 0.73 MB / 0.5831 GB, free: 14.91 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001196/0.5165, allocations: 0.5596 MB / 0.5836 GB, free: 14.34 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.5165, allocations: 0 / 0.5836 GB, free: 14.34 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005026/0.517, allocations: 239.5 kB / 0.5839 GB, free: 14.11 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001175/0.5182, allocations: 225.4 kB / 0.5841 GB, free: 13.89 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002219/0.5204, allocations: 1.358 MB / 0.5854 GB, free: 12.51 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003684/0.5208, allocations: 0.8708 MB / 0.5863 GB, free: 11.61 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0004372/0.5212, allocations: 124.4 kB / 0.5864 GB, free: 11.48 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001559/0.5214, allocations: 59.34 kB / 0.5864 GB, free: 11.43 MB / 414.1 MB Notification: Performance of SimCode: time 6.91e-07/0.5214, allocations: 0 / 0.5864 GB, free: 11.43 MB / 414.1 MB Notification: Performance of Templates: time 0.02405/0.5455, allocations: 16.93 MB / 0.603 GB, free: 10.6 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)