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.09678/0.09678, allocations: 15.28 MB / 30.91 MB, free: 4.137 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.001108/0.001108, allocations: 103.4 kB / 35.91 MB, free: 3.203 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.001177/0.001177, allocations: 195.3 kB / 41.02 MB, free: 7.137 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.461/1.461, allocations: 222.9 MB / 268.9 MB, free: 6.871 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1441/0.1441, allocations: 23.36 MB / 346.6 MB, free: 0.6094 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001943/0.001943, allocations: 115.8 kB / 478.8 MB, free: 1.777 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.362/0.364, allocations: 59.36 MB / 0.5256 GB, free: 8.344 MB / 382.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.08063/0.4447, allocations: 75.61 MB / 0.5994 GB, free: 8.957 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.01722/0.4619, allocations: 15.34 MB / 0.6144 GB, free: 9.562 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001112/0.463, allocations: 19.88 kB / 0.6144 GB, free: 9.543 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007498/0.4638, allocations: 258.2 kB / 0.6147 GB, free: 9.289 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004942/0.4688, allocations: 1.549 MB / 0.6162 GB, free: 7.73 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006198/0.475, allocations: 2.14 MB / 0.6183 GB, free: 5.578 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.001883/0.4769, allocations: 1.513 MB / 0.6197 GB, free: 4.059 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005623/0.4775, allocations: 427.5 kB / 0.6201 GB, free: 3.637 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002267/0.4797, allocations: 1.159 MB / 0.6213 GB, free: 2.473 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008085/0.4806, allocations: 0.5487 MB / 0.6218 GB, free: 1.922 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 9.099e-05/0.4807, allocations: 60 kB / 0.6219 GB, free: 1.863 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004013/0.4847, allocations: 1.482 MB / 0.6233 GB, free: 388 kB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001929/0.4849, allocations: 167.4 kB / 0.6235 GB, free: 220 kB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004093/0.4853, allocations: 346.5 kB / 0.6238 GB, free: 15.87 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004738/0.4901, allocations: 2.082 MB / 0.6258 GB, free: 13.79 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.4901, allocations: 3.938 kB / 0.6258 GB, free: 13.78 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.724e-06/0.4901, allocations: 0 / 0.6258 GB, free: 13.78 MB / 478.1 MB Notification: Performance of Transformations before backend: time 1.24e-05/0.4901, allocations: 0 / 0.6258 GB, free: 13.78 MB / 478.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.002094/0.4922, allocations: 1.165 MB / 0.627 GB, free: 12.55 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.644e-05/0.4923, allocations: 8.031 kB / 0.627 GB, free: 12.55 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001281/0.4924, allocations: 67.58 kB / 0.6271 GB, free: 12.48 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006261/0.493, allocations: 484.7 kB / 0.6275 GB, free: 11.96 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.42e-05/0.4931, allocations: 37 kB / 0.6276 GB, free: 11.93 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.417e-05/0.4932, allocations: 43.94 kB / 0.6276 GB, free: 11.89 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009823/0.4941, allocations: 0.5538 MB / 0.6281 GB, free: 11.3 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.067e-05/0.4942, allocations: 4 kB / 0.6281 GB, free: 11.3 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.015e-05/0.4942, allocations: 23.94 kB / 0.6282 GB, free: 11.27 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.307e-05/0.4943, allocations: 12 kB / 0.6282 GB, free: 11.26 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009908/0.4953, allocations: 491.6 kB / 0.6286 GB, free: 10.78 MB / 478.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.002751/0.498, allocations: 2.255 MB / 0.6308 GB, free: 8.371 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008971/0.4989, allocations: 0.5271 MB / 0.6314 GB, free: 7.816 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005164/0.4995, allocations: 252.7 kB / 0.6316 GB, free: 7.566 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001613/0.5011, allocations: 1.402 MB / 0.633 GB, free: 6.008 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000553/0.5016, allocations: 271.9 kB / 0.6332 GB, free: 5.73 MB / 478.1 MB Notification: Performance of pre-optimization done (n=38): time 2.044e-06/0.5017, allocations: 0 / 0.6332 GB, free: 5.73 MB / 478.1 MB Notification: Performance of matching and sorting (n=38): time 0.00159/0.5033, allocations: 0.7181 MB / 0.6339 GB, free: 4.984 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.395e-05/0.5033, allocations: 55.41 kB / 0.634 GB, free: 4.918 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004956/0.5038, allocations: 465.9 kB / 0.6344 GB, free: 4.457 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 4.126e-05/0.5039, allocations: 33.7 kB / 0.6345 GB, free: 4.418 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002028/0.5041, allocations: 296.3 kB / 0.6347 GB, free: 4.121 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001232/0.5042, allocations: 150.7 kB / 0.6349 GB, free: 3.973 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001755/0.5044, allocations: 106.2 kB / 0.635 GB, free: 3.863 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001353/0.5045, allocations: 362.8 kB / 0.6353 GB, free: 3.5 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004593/0.505, allocations: 209 kB / 0.6355 GB, free: 3.293 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005412/0.5055, allocations: 340.5 kB / 0.6359 GB, free: 2.91 MB / 478.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.003867/0.5094, allocations: 1.705 MB / 0.6375 GB, free: 1.105 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.667e-06/0.5094, allocations: 0 / 0.6375 GB, free: 1.105 MB / 478.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001375/0.5108, allocations: 0.7022 MB / 0.6382 GB, free: 392 kB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.443e-05/0.5109, allocations: 33.7 kB / 0.6382 GB, free: 352 kB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.318e-06/0.5109, allocations: 4 kB / 0.6382 GB, free: 348 kB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001411/0.511, allocations: 45.33 kB / 0.6383 GB, free: 300 kB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004982/0.5115, allocations: 115.8 kB / 0.6384 GB, free: 184 kB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003746/0.5119, allocations: 0.5601 MB / 0.6389 GB, free: 15.59 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004801/0.5124, allocations: 59.61 kB / 0.639 GB, free: 15.54 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.306e-05/0.5125, allocations: 27.98 kB / 0.639 GB, free: 15.51 MB / 494.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.0002275/0.5127, allocations: 193.7 kB / 0.6392 GB, free: 15.31 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.233e-05/0.5128, allocations: 51.66 kB / 0.6393 GB, free: 15.26 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001167/0.514, allocations: 0.5492 MB / 0.6398 GB, free: 14.7 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.027e-06/0.514, allocations: 4 kB / 0.6398 GB, free: 14.7 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.514, allocations: 0 / 0.6398 GB, free: 14.7 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.634e-06/0.514, allocations: 3.984 kB / 0.6398 GB, free: 14.69 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005476/0.5146, allocations: 0.5244 MB / 0.6403 GB, free: 14.12 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.659e-06/0.5146, allocations: 4 kB / 0.6403 GB, free: 14.11 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003525/0.5149, allocations: 75.88 kB / 0.6404 GB, free: 14.04 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.883e-05/0.515, allocations: 36.84 kB / 0.6404 GB, free: 14 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.749e-05/0.5151, allocations: 15.92 kB / 0.6404 GB, free: 13.98 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000308/0.5154, allocations: 0.5446 MB / 0.641 GB, free: 13.41 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.5154, allocations: 0 / 0.641 GB, free: 13.41 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001435/0.5169, allocations: 0.7712 MB / 0.6417 GB, free: 12.62 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001943/0.5171, allocations: 172.7 kB / 0.6419 GB, free: 12.43 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.828e-05/0.5171, allocations: 15.94 kB / 0.6419 GB, free: 12.42 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003214/0.5175, allocations: 19.92 kB / 0.6419 GB, free: 12.4 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001245/0.5176, allocations: 43.94 kB / 0.642 GB, free: 12.36 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.329e-05/0.5176, allocations: 12 kB / 0.642 GB, free: 12.34 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0003414/0.518, allocations: 323.1 kB / 0.6423 GB, free: 12.03 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.518, allocations: 0 / 0.6423 GB, free: 12.03 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.001079/0.5191, allocations: 0.5101 MB / 0.6428 GB, free: 11.52 MB / 494.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.001165/0.5203, allocations: 0.7275 MB / 0.6435 GB, free: 10.78 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001143/0.5214, allocations: 0.5613 MB / 0.644 GB, free: 10.2 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.5214, allocations: 0 / 0.644 GB, free: 10.2 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005039/0.5219, allocations: 236.7 kB / 0.6443 GB, free: 9.973 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001016/0.523, allocations: 248.4 kB / 0.6445 GB, free: 9.734 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002099/0.5251, allocations: 1.156 MB / 0.6456 GB, free: 8.547 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004703/0.5256, allocations: 0.8708 MB / 0.6465 GB, free: 7.645 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0004217/0.526, allocations: 124.4 kB / 0.6466 GB, free: 7.523 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001555/0.5262, allocations: 59.41 kB / 0.6467 GB, free: 7.465 MB / 494.1 MB Notification: Performance of SimCode: time 8.82e-07/0.5262, allocations: 0 / 0.6467 GB, free: 7.465 MB / 494.1 MB Notification: Performance of Templates: time 0.02599/0.5522, allocations: 17.64 MB / 0.6639 GB, free: 5.91 MB / 0.4981 GB 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)