Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_3element.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.Windkessel_3element,fileNamePrefix="Physiolibrary_Physiolibrary_Fluid_Examples_Windkessel_3element",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Physiolibrary.Fluid.Examples.Windkessel_3element,fileNamePrefix="Physiolibrary_Physiolibrary_Fluid_Examples_Windkessel_3element",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.09692/0.09692, 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.001069/0.00107, allocations: 111.3 kB / 35.91 MB, free: 3.184 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.001157/0.001157, allocations: 193 kB / 41.02 MB, free: 7.109 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.372/1.372, allocations: 222.9 MB / 268.9 MB, free: 6.832 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1387/0.1387, allocations: 23.35 MB / 346.6 MB, free: 0.6289 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001923/0.001923, allocations: 107.8 kB / 478.3 MB, free: 2.285 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3763/0.3782, allocations: 59.36 MB / 0.5251 GB, free: 7.766 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/Fluid.mo:707:7-707: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:707:7-707: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.Windkessel_3element): time 0.08477/0.4631, allocations: 74.27 MB / 0.5976 GB, free: 10.21 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.02333/0.4864, allocations: 18.83 MB / 0.616 GB, free: 7.309 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000945/0.4874, allocations: 19.88 kB / 0.616 GB, free: 7.289 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009646/0.4884, allocations: 238.3 kB / 0.6163 GB, free: 7.055 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007302/0.4957, allocations: 2.329 MB / 0.6185 GB, free: 4.711 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004548/0.5003, allocations: 1.6 MB / 0.6201 GB, free: 3.102 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.001555/0.5018, allocations: 1.216 MB / 0.6213 GB, free: 1.883 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006054/0.5025, allocations: 363.6 kB / 0.6216 GB, free: 1.52 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002485/0.505, allocations: 1.069 MB / 0.6227 GB, free: 456 kB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007836/0.5058, allocations: 446.3 kB / 0.6231 GB, free: 8 kB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001299/0.5059, allocations: 47.98 kB / 0.6232 GB, free: 15.96 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004445/0.5104, allocations: 1.708 MB / 0.6248 GB, free: 14.25 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002033/0.5106, allocations: 135.6 kB / 0.625 GB, free: 14.12 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004927/0.5111, allocations: 282.7 kB / 0.6252 GB, free: 13.84 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005857/0.517, allocations: 2.184 MB / 0.6274 GB, free: 11.65 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.528e-06/0.517, allocations: 0 / 0.6274 GB, free: 11.65 MB / 478.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.517, allocations: 0 / 0.6274 GB, free: 11.65 MB / 478.1 MB Notification: Performance of Transformations before backend: time 2.135e-05/0.517, allocations: 4 kB / 0.6274 GB, free: 11.64 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: 91 * Number of variables: 91 Notification: Performance of Generate backend data structure: time 0.002415/0.5194, allocations: 1.033 MB / 0.6284 GB, free: 10.56 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.22e-05/0.5195, allocations: 8.031 kB / 0.6284 GB, free: 10.55 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000114/0.5196, allocations: 74.53 kB / 0.6284 GB, free: 10.47 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001451/0.5198, allocations: 55.44 kB / 0.6285 GB, free: 10.41 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006859/0.5205, allocations: 406.3 kB / 0.6289 GB, free: 9.98 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.409e-05/0.5205, allocations: 33 kB / 0.6289 GB, free: 9.949 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.429e-05/0.5206, allocations: 36 kB / 0.629 GB, free: 9.914 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008039/0.5214, allocations: 444.7 kB / 0.6294 GB, free: 9.457 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.008e-05/0.5214, allocations: 3.938 kB / 0.6294 GB, free: 9.453 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.803e-05/0.5215, allocations: 16 kB / 0.6294 GB, free: 9.438 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.524e-05/0.5215, allocations: 12 kB / 0.6294 GB, free: 9.426 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007372/0.5222, allocations: 379.7 kB / 0.6298 GB, free: 9.055 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.002954/0.5252, allocations: 2.204 MB / 0.6319 GB, free: 6.621 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006172/0.5258, allocations: 359.5 kB / 0.6323 GB, free: 6.262 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000315/0.5262, allocations: 177.6 kB / 0.6324 GB, free: 6.086 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001297/0.5275, allocations: 1.006 MB / 0.6334 GB, free: 4.98 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000388/0.5279, allocations: 209.4 kB / 0.6336 GB, free: 4.766 MB / 478.1 MB Notification: Performance of pre-optimization done (n=35): time 2.485e-06/0.5279, allocations: 0 / 0.6336 GB, free: 4.766 MB / 478.1 MB Notification: Performance of matching and sorting (n=35): time 0.00154/0.5294, allocations: 0.7127 MB / 0.6343 GB, free: 4.004 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.904e-05/0.5295, allocations: 59.41 kB / 0.6344 GB, free: 3.934 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004537/0.53, allocations: 393.7 kB / 0.6347 GB, free: 3.543 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 4.021e-05/0.53, allocations: 33.7 kB / 0.6348 GB, free: 3.504 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001671/0.5302, allocations: 235.8 kB / 0.635 GB, free: 3.27 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001158/0.5303, allocations: 118.4 kB / 0.6351 GB, free: 3.152 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001537/0.5305, allocations: 90.02 kB / 0.6352 GB, free: 3.059 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001622/0.5306, allocations: 350.8 kB / 0.6355 GB, free: 2.707 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003258/0.531, allocations: 148.8 kB / 0.6357 GB, free: 2.559 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003559/0.5313, allocations: 233.7 kB / 0.6359 GB, free: 2.301 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) Notification: Performance of analyzeInitialSystem (initialization): time 0.002172/0.5335, allocations: 0.9536 MB / 0.6368 GB, free: 1.297 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.16e-06/0.5335, allocations: 7.938 kB / 0.6368 GB, free: 1.289 MB / 478.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001042/0.5346, allocations: 0.5175 MB / 0.6373 GB, free: 0.7578 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.856e-05/0.5346, allocations: 4 kB / 0.6373 GB, free: 0.7539 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.042e-05/0.5346, allocations: 4 kB / 0.6374 GB, free: 0.75 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002448/0.5349, allocations: 77.98 kB / 0.6374 GB, free: 0.668 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003579/0.5352, allocations: 83.83 kB / 0.6375 GB, free: 0.5859 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008009/0.5361, allocations: 1.12 MB / 0.6386 GB, free: 15.41 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003418/0.5364, allocations: 47.67 kB / 0.6386 GB, free: 15.36 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.103e-05/0.5365, allocations: 27.92 kB / 0.6387 GB, free: 15.34 MB / 494.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: arteries.mass = arteries.tm_start. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 8 ($PRE.pulses.TD2,$PRE.pulses.HP,$PRE.pulses.T0,pulses.TD2,pulses.HP,pulses.b,pulses.T0,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (48): * Single equations (assignments): 44 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,1), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0001965/0.5367, allocations: 169.7 kB / 0.6388 GB, free: 15.16 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.155e-05/0.5368, allocations: 43.44 kB / 0.6389 GB, free: 15.12 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009919/0.5378, allocations: 477.1 kB / 0.6393 GB, free: 14.63 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.616e-06/0.5378, allocations: 4 kB / 0.6393 GB, free: 14.63 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.361e-06/0.5378, allocations: 0 / 0.6393 GB, free: 14.63 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.203e-06/0.5378, allocations: 3.984 kB / 0.6393 GB, free: 14.62 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001565/0.5394, allocations: 0.9771 MB / 0.6403 GB, free: 13.59 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.039e-06/0.5394, allocations: 3.984 kB / 0.6403 GB, free: 13.58 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002336/0.5396, allocations: 39.97 kB / 0.6403 GB, free: 13.54 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001811/0.5398, allocations: 81.64 kB / 0.6404 GB, free: 13.46 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.156e-05/0.5399, allocations: 11.98 kB / 0.6404 GB, free: 13.45 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007172/0.5406, allocations: 1.109 MB / 0.6415 GB, free: 12.29 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.425e-06/0.5406, allocations: 0 / 0.6415 GB, free: 12.29 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001178/0.5418, allocations: 0.6786 MB / 0.6422 GB, free: 11.58 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001854/0.542, allocations: 152.5 kB / 0.6423 GB, free: 11.41 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.902e-05/0.5421, allocations: 12 kB / 0.6423 GB, free: 11.4 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000273/0.5424, allocations: 23.98 kB / 0.6423 GB, free: 11.38 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.177e-05/0.5425, allocations: 31.89 kB / 0.6424 GB, free: 11.35 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.918e-05/0.5425, allocations: 12 kB / 0.6424 GB, free: 11.34 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0003173/0.5428, allocations: 279.1 kB / 0.6427 GB, free: 11.06 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.5428, allocations: 4 kB / 0.6427 GB, free: 11.06 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.001413/0.5442, allocations: 0.5189 MB / 0.6432 GB, free: 10.54 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (arteries.enthalpy,arteries.substanceMasses[1]) * Number of discrete variables: 5 (pulses.b,$whenCondition1,pulses.T0,pulses.HP,pulses.TD2) * Number of discrete states: 2 (pulses.T0,pulses.HP) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (29): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 3 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,3), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003348/0.5476, allocations: 1.955 MB / 0.6451 GB, free: 8.547 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0009023/0.5485, allocations: 388.2 kB / 0.6454 GB, free: 8.168 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.888e-06/0.5485, allocations: 0 / 0.6454 GB, free: 8.168 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004131/0.549, allocations: 179.8 kB / 0.6456 GB, free: 7.992 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00102/0.55, allocations: 209.3 kB / 0.6458 GB, free: 7.789 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006672/0.5567, allocations: 4.278 MB / 0.65 GB, free: 3.344 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004484/0.5571, allocations: 0.8311 MB / 0.6508 GB, free: 2.484 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0003273/0.5575, allocations: 88.09 kB / 0.6509 GB, free: 2.395 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002309/0.5577, allocations: 151.3 kB / 0.651 GB, free: 2.246 MB / 494.1 MB Notification: Performance of SimCode: time 5.41e-07/0.5577, allocations: 0 / 0.651 GB, free: 2.246 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05387/0.6116, allocations: 23.24 MB / 0.6737 GB, free: 11.11 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.96/12.57, allocations: 10.45 kB / 0.6737 GB, free: 11.11 MB / 0.5137 GB (rm -f Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_3element.pipe ; mkfifo Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_3element.pipe ; head -c 1048576 < Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_3element.pipe >> ../files/Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_3element.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Physiolibrary_Physiolibrary_Fluid_Examples_Windkessel_3element_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Physiolibrary_Physiolibrary_Fluid_Examples_Windkessel_3element.fmu > Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_3element.pipe 2>&1)