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.1048/0.1048, 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.00107/0.00107, allocations: 108.3 kB / 35.92 MB, free: 3.191 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.001256/0.001256, allocations: 193.1 kB / 41.02 MB, free: 7.125 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.441/1.441, allocations: 222.9 MB / 268.9 MB, free: 6.809 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1435/0.1435, allocations: 23.34 MB / 346.6 MB, free: 0.6172 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001961/0.001961, allocations: 112 kB / 478.8 MB, free: 1.766 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3031/0.3051, allocations: 59.36 MB / 0.5256 GB, free: 8.332 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.08195/0.3871, allocations: 75.52 MB / 0.5993 GB, free: 9.035 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0181/0.4052, allocations: 15.33 MB / 0.6143 GB, free: 9.645 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00177/0.407, allocations: 23.88 kB / 0.6143 GB, free: 9.621 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008802/0.4079, allocations: 250.2 kB / 0.6146 GB, free: 9.375 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004796/0.4127, allocations: 1.557 MB / 0.6161 GB, free: 7.809 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006115/0.4188, allocations: 2.14 MB / 0.6182 GB, free: 5.656 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.001864/0.4207, allocations: 1.509 MB / 0.6196 GB, free: 4.141 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005657/0.4213, allocations: 431.5 kB / 0.6201 GB, free: 3.715 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002295/0.4236, allocations: 1.159 MB / 0.6212 GB, free: 2.551 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007752/0.4244, allocations: 0.5488 MB / 0.6217 GB, free: 2 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 9.659e-05/0.4245, allocations: 52 kB / 0.6218 GB, free: 1.949 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003645/0.4282, allocations: 1.49 MB / 0.6232 GB, free: 468 kB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001812/0.4284, allocations: 163.5 kB / 0.6234 GB, free: 304 kB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003591/0.4287, allocations: 346.6 kB / 0.6237 GB, free: 15.95 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003396/0.4321, allocations: 2.067 MB / 0.6257 GB, free: 13.88 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.4321, allocations: 0 / 0.6257 GB, free: 13.88 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.4322, allocations: 0 / 0.6257 GB, free: 13.88 MB / 478.1 MB Notification: Performance of Transformations before backend: time 9.888e-06/0.4322, allocations: 0 / 0.6257 GB, free: 13.88 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.002047/0.4342, allocations: 1.14 MB / 0.6269 GB, free: 12.68 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.499e-05/0.4343, allocations: 12.03 kB / 0.6269 GB, free: 12.67 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001356/0.4344, allocations: 67.25 kB / 0.6269 GB, free: 12.61 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006696/0.4351, allocations: 472.4 kB / 0.6274 GB, free: 12.1 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.701e-05/0.4351, allocations: 37 kB / 0.6274 GB, free: 12.07 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.829e-05/0.4352, allocations: 40 kB / 0.6275 GB, free: 12.03 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00102/0.4362, allocations: 0.5577 MB / 0.628 GB, free: 11.44 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.676e-05/0.4363, allocations: 0 / 0.628 GB, free: 11.44 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.224e-05/0.4363, allocations: 27.92 kB / 0.628 GB, free: 11.41 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.829e-05/0.4364, allocations: 15.98 kB / 0.628 GB, free: 11.39 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001023/0.4374, allocations: 491.6 kB / 0.6285 GB, free: 10.91 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.00292/0.4403, allocations: 2.243 MB / 0.6307 GB, free: 8.516 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009179/0.4413, allocations: 0.5348 MB / 0.6312 GB, free: 7.953 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005242/0.4418, allocations: 256.7 kB / 0.6315 GB, free: 7.699 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001755/0.4436, allocations: 1.402 MB / 0.6328 GB, free: 6.141 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005534/0.4441, allocations: 260 kB / 0.6331 GB, free: 5.875 MB / 478.1 MB Notification: Performance of pre-optimization done (n=38): time 2.114e-06/0.4441, allocations: 0 / 0.6331 GB, free: 5.875 MB / 478.1 MB Notification: Performance of matching and sorting (n=38): time 0.001636/0.4458, allocations: 0.7256 MB / 0.6338 GB, free: 5.121 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.276e-05/0.4458, allocations: 55.41 kB / 0.6338 GB, free: 5.055 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005074/0.4464, allocations: 465.8 kB / 0.6343 GB, free: 4.594 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 3.809e-05/0.4464, allocations: 37.64 kB / 0.6343 GB, free: 4.551 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000193/0.4466, allocations: 287.7 kB / 0.6346 GB, free: 4.262 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001302/0.4467, allocations: 142 kB / 0.6347 GB, free: 4.121 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001636/0.4469, allocations: 106.1 kB / 0.6348 GB, free: 4.012 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001427/0.4471, allocations: 362.8 kB / 0.6352 GB, free: 3.648 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004682/0.4475, allocations: 209 kB / 0.6354 GB, free: 3.441 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005373/0.4481, allocations: 336.5 kB / 0.6357 GB, free: 3.062 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.003961/0.4521, allocations: 1.702 MB / 0.6374 GB, free: 1.262 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.048e-06/0.4521, allocations: 0 / 0.6374 GB, free: 1.262 MB / 478.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001397/0.4535, allocations: 0.698 MB / 0.638 GB, free: 0.543 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.756e-05/0.4535, allocations: 37.69 kB / 0.6381 GB, free: 0.5 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.254e-05/0.4535, allocations: 8.484 kB / 0.6381 GB, free: 0.4922 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001469/0.4537, allocations: 40.84 kB / 0.6381 GB, free: 460 kB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005228/0.4542, allocations: 119.8 kB / 0.6382 GB, free: 340 kB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004023/0.4546, allocations: 0.5562 MB / 0.6388 GB, free: 15.75 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005262/0.4552, allocations: 71.41 kB / 0.6389 GB, free: 15.68 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.123e-05/0.4552, allocations: 28.08 kB / 0.6389 GB, free: 15.65 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.0002476/0.4555, allocations: 185.6 kB / 0.6391 GB, free: 15.46 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.708e-05/0.4556, allocations: 47.44 kB / 0.6391 GB, free: 15.41 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001203/0.4568, allocations: 0.553 MB / 0.6396 GB, free: 14.85 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.565e-05/0.4568, allocations: 4 kB / 0.6396 GB, free: 14.85 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.439e-06/0.4568, allocations: 0 / 0.6396 GB, free: 14.85 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.616e-06/0.4569, allocations: 3.984 kB / 0.6396 GB, free: 14.84 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005612/0.4574, allocations: 0.5244 MB / 0.6402 GB, free: 14.27 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.454e-06/0.4574, allocations: 0 / 0.6402 GB, free: 14.27 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003681/0.4578, allocations: 71.89 kB / 0.6402 GB, free: 14.2 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.867e-05/0.4579, allocations: 40.83 kB / 0.6403 GB, free: 14.16 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.433e-05/0.458, allocations: 15.92 kB / 0.6403 GB, free: 14.14 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003506/0.4583, allocations: 0.5561 MB / 0.6408 GB, free: 13.56 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.276e-06/0.4583, allocations: 4.031 kB / 0.6408 GB, free: 13.55 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001537/0.4599, allocations: 0.7592 MB / 0.6416 GB, free: 12.77 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000206/0.4601, allocations: 172.4 kB / 0.6417 GB, free: 12.59 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.405e-05/0.4602, allocations: 15.98 kB / 0.6418 GB, free: 12.57 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003443/0.4605, allocations: 19.98 kB / 0.6418 GB, free: 12.55 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001137/0.4607, allocations: 39.89 kB / 0.6418 GB, free: 12.51 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.371e-05/0.4607, allocations: 15.98 kB / 0.6418 GB, free: 12.5 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0003486/0.4611, allocations: 319.1 kB / 0.6421 GB, free: 12.18 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.4611, allocations: 0 / 0.6421 GB, free: 12.18 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.001174/0.4622, allocations: 0.5071 MB / 0.6426 GB, free: 11.68 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.001385/0.4636, allocations: 0.7169 MB / 0.6433 GB, free: 10.95 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001252/0.4649, allocations: 0.5536 MB / 0.6439 GB, free: 10.38 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 4.679e-06/0.4649, allocations: 4 kB / 0.6439 GB, free: 10.38 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005597/0.4655, allocations: 232.8 kB / 0.6441 GB, free: 10.15 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001121/0.4666, allocations: 241.4 kB / 0.6443 GB, free: 9.918 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002076/0.4687, allocations: 1.161 MB / 0.6455 GB, free: 8.727 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000432/0.4692, allocations: 0.8708 MB / 0.6463 GB, free: 7.824 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0003773/0.4695, allocations: 116.5 kB / 0.6464 GB, free: 7.711 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001963/0.4698, allocations: 63.34 kB / 0.6465 GB, free: 7.648 MB / 494.1 MB Notification: Performance of SimCode: time 4.91e-07/0.4698, allocations: 0 / 0.6465 GB, free: 7.648 MB / 494.1 MB Notification: Performance of Templates: time 0.02653/0.4963, allocations: 17.63 MB / 0.6637 GB, free: 6.102 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)