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: "" <> buildModelFMU(Physiolibrary.Fluid.Examples.MinimalCirculation,fileNamePrefix="Physiolibrary_Physiolibrary_Fluid_Examples_MinimalCirculation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Physiolibrary.Fluid.Examples.MinimalCirculation,fileNamePrefix="Physiolibrary_Physiolibrary_Fluid_Examples_MinimalCirculation",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo): time 0.1083/0.1083, allocations: 15.28 MB / 30.92 MB, free: 4.117 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.001255/0.001255, allocations: 108.9 kB / 35.92 MB, free: 3.188 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.001417/0.001417, allocations: 189.1 kB / 41.02 MB, free: 7.129 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.529/1.529, allocations: 222.9 MB / 268.9 MB, free: 6.938 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1609/0.1609, allocations: 23.35 MB / 346.6 MB, free: 0.6406 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003228/0.003228, allocations: 115.8 kB / 478.4 MB, free: 2.281 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3951/0.3984, allocations: 59.35 MB / 0.5251 GB, free: 7.781 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.09737/0.4957, allocations: 76.13 MB / 0.5995 GB, free: 8.344 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.01995/0.5157, allocations: 15.37 MB / 0.6145 GB, free: 8.922 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001092/0.5168, allocations: 15.94 kB / 0.6145 GB, free: 8.906 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008003/0.5176, allocations: 258.1 kB / 0.6147 GB, free: 8.652 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004634/0.5222, allocations: 1.584 MB / 0.6163 GB, free: 7.059 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006716/0.5289, allocations: 2.155 MB / 0.6184 GB, free: 4.891 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.002291/0.5312, allocations: 1.493 MB / 0.6198 GB, free: 3.391 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005355/0.5318, allocations: 363.6 kB / 0.6202 GB, free: 3.031 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002418/0.5342, allocations: 1.159 MB / 0.6213 GB, free: 1.867 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009262/0.5351, allocations: 0.5486 MB / 0.6218 GB, free: 1.316 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 9.651e-05/0.5352, allocations: 56 kB / 0.6219 GB, free: 1.262 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004164/0.5394, allocations: 1.482 MB / 0.6233 GB, free: 15.78 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002336/0.5396, allocations: 179.3 kB / 0.6235 GB, free: 15.6 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004375/0.54, allocations: 338.5 kB / 0.6238 GB, free: 15.27 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004427/0.5445, allocations: 2.078 MB / 0.6259 GB, free: 13.18 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.122e-06/0.5445, allocations: 4 kB / 0.6259 GB, free: 13.18 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.5445, allocations: 0 / 0.6259 GB, free: 13.18 MB / 478.1 MB Notification: Performance of Transformations before backend: time 1.521e-05/0.5445, allocations: 0 / 0.6259 GB, free: 13.18 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.00231/0.5468, allocations: 1.165 MB / 0.627 GB, free: 11.95 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.911e-05/0.5468, allocations: 8.031 kB / 0.627 GB, free: 11.95 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001032/0.5469, allocations: 86.52 kB / 0.6271 GB, free: 11.85 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001495/0.5471, allocations: 67.58 kB / 0.6272 GB, free: 11.79 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007424/0.5478, allocations: 484.7 kB / 0.6276 GB, free: 11.27 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.549e-05/0.5479, allocations: 33 kB / 0.6277 GB, free: 11.24 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.739e-05/0.548, allocations: 48 kB / 0.6277 GB, free: 11.19 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001061/0.549, allocations: 0.5538 MB / 0.6282 GB, free: 10.61 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.638e-05/0.549, allocations: 7.922 kB / 0.6283 GB, free: 10.6 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.82e-05/0.5491, allocations: 20 kB / 0.6283 GB, free: 10.58 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.572e-05/0.5491, allocations: 12 kB / 0.6283 GB, free: 10.57 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001084/0.5502, allocations: 495.6 kB / 0.6288 GB, free: 10.08 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.00311/0.5533, allocations: 2.247 MB / 0.631 GB, free: 7.68 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000963/0.5543, allocations: 0.4959 MB / 0.6314 GB, free: 7.156 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005294/0.5548, allocations: 236.7 kB / 0.6317 GB, free: 6.922 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001909/0.5567, allocations: 1.402 MB / 0.633 GB, free: 5.363 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005756/0.5573, allocations: 271.9 kB / 0.6333 GB, free: 5.086 MB / 478.1 MB Notification: Performance of pre-optimization done (n=38): time 2.034e-06/0.5573, allocations: 0 / 0.6333 GB, free: 5.086 MB / 478.1 MB Notification: Performance of matching and sorting (n=38): time 0.001719/0.559, allocations: 0.7181 MB / 0.634 GB, free: 4.34 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.61e-05/0.559, allocations: 55.41 kB / 0.634 GB, free: 4.273 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005705/0.5596, allocations: 465.9 kB / 0.6345 GB, free: 3.812 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 6.845e-05/0.5597, allocations: 37.7 kB / 0.6345 GB, free: 3.77 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002438/0.5599, allocations: 288.3 kB / 0.6348 GB, free: 3.48 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001353/0.5601, allocations: 146.7 kB / 0.6349 GB, free: 3.336 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001858/0.5602, allocations: 106.2 kB / 0.635 GB, free: 3.227 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001833/0.5604, allocations: 362.8 kB / 0.6354 GB, free: 2.863 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004914/0.5609, allocations: 213 kB / 0.6356 GB, free: 2.652 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005861/0.5615, allocations: 348.4 kB / 0.6359 GB, free: 2.262 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.003978/0.5655, allocations: 1.702 MB / 0.6376 GB, free: 472 kB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.119e-06/0.5655, allocations: 0 / 0.6376 GB, free: 472 kB / 478.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001583/0.5671, allocations: 0.6984 MB / 0.6383 GB, free: 15.74 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.102e-05/0.5671, allocations: 37.7 kB / 0.6383 GB, free: 15.7 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.204e-05/0.5671, allocations: 4 kB / 0.6383 GB, free: 15.7 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000182/0.5673, allocations: 37.23 kB / 0.6383 GB, free: 15.66 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005222/0.5678, allocations: 123.8 kB / 0.6385 GB, free: 15.54 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004994/0.5683, allocations: 0.5601 MB / 0.639 GB, free: 14.95 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006068/0.5689, allocations: 59.61 kB / 0.6391 GB, free: 14.89 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.454e-05/0.569, allocations: 27.98 kB / 0.6391 GB, free: 14.86 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.0003778/0.5694, allocations: 189.8 kB / 0.6393 GB, free: 14.67 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001098/0.5695, allocations: 51.61 kB / 0.6393 GB, free: 14.62 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001277/0.5708, allocations: 0.5492 MB / 0.6399 GB, free: 14.06 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.38e-05/0.5708, allocations: 7.984 kB / 0.6399 GB, free: 14.05 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.613e-06/0.5708, allocations: 0 / 0.6399 GB, free: 14.05 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.077e-06/0.5708, allocations: 3.984 kB / 0.6399 GB, free: 14.05 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007415/0.5716, allocations: 0.536 MB / 0.6404 GB, free: 13.46 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/0.5716, allocations: 0 / 0.6404 GB, free: 13.46 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003618/0.5719, allocations: 67.89 kB / 0.6405 GB, free: 13.39 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001205/0.572, allocations: 44.77 kB / 0.6405 GB, free: 13.35 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.347e-05/0.5721, allocations: 8 kB / 0.6405 GB, free: 13.34 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004057/0.5725, allocations: 0.5485 MB / 0.641 GB, free: 12.77 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.579e-06/0.5725, allocations: 3.984 kB / 0.641 GB, free: 12.76 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001564/0.5741, allocations: 0.7595 MB / 0.6418 GB, free: 11.98 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002778/0.5743, allocations: 180.7 kB / 0.642 GB, free: 11.79 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.992e-05/0.5744, allocations: 8 kB / 0.642 GB, free: 11.78 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003385/0.5747, allocations: 23.97 kB / 0.642 GB, free: 11.75 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001262/0.5749, allocations: 35.95 kB / 0.642 GB, free: 11.72 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.572e-05/0.5749, allocations: 19.98 kB / 0.642 GB, free: 11.7 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0004394/0.5754, allocations: 327.1 kB / 0.6424 GB, free: 11.38 MB / 494.1 MB Notification: Performance of sort global known variables: time 7e-08/0.5754, allocations: 0 / 0.6424 GB, free: 11.38 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.001326/0.5767, allocations: 0.5023 MB / 0.6428 GB, free: 10.88 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.00338/0.5801, allocations: 1.95 MB / 0.6447 GB, free: 8.891 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001306/0.5814, allocations: 0.5307 MB / 0.6453 GB, free: 8.348 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.5814, allocations: 0 / 0.6453 GB, free: 8.348 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004956/0.5819, allocations: 215.6 kB / 0.6455 GB, free: 8.137 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001062/0.5829, allocations: 237.4 kB / 0.6457 GB, free: 7.91 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008048/0.591, allocations: 5.05 MB / 0.6506 GB, free: 2.66 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004969/0.5915, allocations: 0.863 MB / 0.6515 GB, free: 1.766 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0004613/0.5919, allocations: 132.3 kB / 0.6516 GB, free: 1.633 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003198/0.5923, allocations: 199.4 kB / 0.6518 GB, free: 1.438 MB / 494.1 MB Notification: Performance of SimCode: time 6.31e-07/0.5923, allocations: 4 kB / 0.6518 GB, free: 1.434 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05697/0.6492, allocations: 23.07 MB / 0.6743 GB, free: 10.48 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.12/13.77, allocations: 5.625 kB / 0.6743 GB, free: 10.48 MB / 0.5137 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Physiolibrary_Physiolibrary_Fluid_Examples_MinimalCirculation_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Physiolibrary_Physiolibrary_Fluid_Examples_MinimalCirculation.fmu > Physiolibrary_Physiolibrary.Fluid.Examples.MinimalCirculation.pipe 2>&1)