Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_4element.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_4element,fileNamePrefix="Physiolibrary_Physiolibrary_Fluid_Examples_Windkessel_4element",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Physiolibrary.Fluid.Examples.Windkessel_4element,fileNamePrefix="Physiolibrary_Physiolibrary_Fluid_Examples_Windkessel_4element",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.09689/0.09689, allocations: 15.27 MB / 30.9 MB, free: 4.156 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.001237/0.001237, allocations: 104.8 kB / 35.91 MB, free: 3.199 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.00153/0.00153, allocations: 194.5 kB / 41.01 MB, free: 7.141 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.492/1.492, allocations: 222.9 MB / 268.9 MB, free: 6.91 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1508/0.1508, allocations: 23.36 MB / 346.6 MB, free: 0.6562 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003102/0.003102, allocations: 112 kB / 478.3 MB, free: 2.32 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3127/0.3158, allocations: 59.36 MB / 0.5251 GB, free: 7.801 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_4element): time 0.1061/0.422, allocations: 80.94 MB / 0.6041 GB, free: 3.582 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.02609/0.4481, allocations: 22.18 MB / 0.6258 GB, free: 13.32 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000873/0.449, allocations: 15.94 kB / 0.6258 GB, free: 13.3 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008521/0.4498, allocations: 258.1 kB / 0.6261 GB, free: 13.05 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007447/0.4573, allocations: 2.457 MB / 0.6285 GB, free: 10.58 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005513/0.4628, allocations: 2.058 MB / 0.6305 GB, free: 8.508 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.002037/0.4649, allocations: 1.364 MB / 0.6318 GB, free: 7.137 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000712/0.4656, allocations: 464.7 kB / 0.6322 GB, free: 6.68 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00248/0.4681, allocations: 1.135 MB / 0.6334 GB, free: 5.539 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008595/0.469, allocations: 0.5293 MB / 0.6339 GB, free: 5.008 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 9.175e-05/0.4691, allocations: 56 kB / 0.6339 GB, free: 4.953 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004958/0.4741, allocations: 1.852 MB / 0.6357 GB, free: 3.098 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002075/0.4743, allocations: 155.5 kB / 0.6359 GB, free: 2.945 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003969/0.4747, allocations: 330.6 kB / 0.6362 GB, free: 2.621 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005724/0.4804, allocations: 2.398 MB / 0.6385 GB, free: 220 kB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.255e-06/0.4805, allocations: 4 kB / 0.6385 GB, free: 216 kB / 478.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.4805, allocations: 4 kB / 0.6385 GB, free: 212 kB / 478.1 MB Notification: Performance of Transformations before backend: time 9.999e-06/0.4805, allocations: 0 / 0.6385 GB, free: 212 kB / 478.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 104 * Number of variables: 104 Notification: Performance of Generate backend data structure: time 0.002689/0.4832, allocations: 1.144 MB / 0.6397 GB, free: 15 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.73e-05/0.4832, allocations: 12.03 kB / 0.6397 GB, free: 14.99 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001098/0.4834, allocations: 86.45 kB / 0.6398 GB, free: 14.9 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001546/0.4835, allocations: 55.67 kB / 0.6398 GB, free: 14.84 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000744/0.4843, allocations: 438.5 kB / 0.6402 GB, free: 14.38 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.857e-05/0.4843, allocations: 29 kB / 0.6403 GB, free: 14.35 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.017e-05/0.4844, allocations: 44 kB / 0.6403 GB, free: 14.31 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009898/0.4854, allocations: 0.5279 MB / 0.6408 GB, free: 13.76 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.426e-05/0.4854, allocations: 7.875 kB / 0.6408 GB, free: 13.75 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.682e-05/0.4855, allocations: 16 kB / 0.6408 GB, free: 13.73 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.98e-05/0.4855, allocations: 12 kB / 0.6408 GB, free: 13.72 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001004/0.4865, allocations: 0.4918 MB / 0.6413 GB, free: 13.23 MB / 494.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.003463/0.49, allocations: 2.459 MB / 0.6437 GB, free: 10.53 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008092/0.4908, allocations: 435 kB / 0.6441 GB, free: 10.09 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005173/0.4914, allocations: 256.7 kB / 0.6444 GB, free: 9.836 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00155/0.4929, allocations: 1.118 MB / 0.6455 GB, free: 8.617 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004938/0.4934, allocations: 245.2 kB / 0.6457 GB, free: 8.363 MB / 494.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000169/0.4936, allocations: 47.72 kB / 0.6458 GB, free: 8.316 MB / 494.1 MB Notification: Performance of pre-optimization done (n=41): time 2.164e-06/0.4936, allocations: 0 / 0.6458 GB, free: 8.316 MB / 494.1 MB Notification: Performance of matching and sorting (n=41): time 0.001818/0.4954, allocations: 0.8159 MB / 0.6466 GB, free: 7.453 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.903e-05/0.4955, allocations: 67.7 kB / 0.6466 GB, free: 7.375 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004859/0.496, allocations: 397.6 kB / 0.647 GB, free: 6.98 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 4.119e-05/0.4961, allocations: 33.7 kB / 0.647 GB, free: 6.941 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002176/0.4963, allocations: 252.5 kB / 0.6473 GB, free: 6.688 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001359/0.4964, allocations: 142.8 kB / 0.6474 GB, free: 6.547 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001726/0.4966, allocations: 106.2 kB / 0.6475 GB, free: 6.438 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001865/0.4968, allocations: 354.8 kB / 0.6478 GB, free: 6.082 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003841/0.4972, allocations: 177 kB / 0.648 GB, free: 5.91 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004645/0.4977, allocations: 275.3 kB / 0.6483 GB, free: 5.605 MB / 494.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.00421/0.5019, allocations: 1.321 MB / 0.6496 GB, free: 4.238 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.16e-06/0.5019, allocations: 0 / 0.6496 GB, free: 4.238 MB / 494.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001243/0.5032, allocations: 0.6027 MB / 0.6502 GB, free: 3.621 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.764e-05/0.5032, allocations: 4 kB / 0.6502 GB, free: 3.617 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.227e-05/0.5032, allocations: 4 kB / 0.6502 GB, free: 3.613 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002553/0.5035, allocations: 73.66 kB / 0.6502 GB, free: 3.535 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004321/0.5039, allocations: 103.9 kB / 0.6503 GB, free: 3.434 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008841/0.5048, allocations: 1.124 MB / 0.6514 GB, free: 2.258 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000327/0.5051, allocations: 23.98 kB / 0.6515 GB, free: 2.234 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.157e-05/0.5052, allocations: 24.14 kB / 0.6515 GB, free: 2.211 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 (55): * Single equations (assignments): 51 * 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.0002544/0.5055, allocations: 185.6 kB / 0.6517 GB, free: 2.02 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.293e-05/0.5055, allocations: 47.66 kB / 0.6517 GB, free: 1.973 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001237/0.5068, allocations: 0.5838 MB / 0.6523 GB, free: 1.371 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.478e-06/0.5068, allocations: 4 kB / 0.6523 GB, free: 1.367 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.282e-06/0.5068, allocations: 0 / 0.6523 GB, free: 1.367 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.791e-06/0.5068, allocations: 3.938 kB / 0.6523 GB, free: 1.363 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001933/0.5088, allocations: 1.118 MB / 0.6534 GB, free: 184 kB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.5088, allocations: 0 / 0.6534 GB, free: 184 kB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000349/0.5091, allocations: 71.89 kB / 0.6534 GB, free: 112 kB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002082/0.5094, allocations: 73.69 kB / 0.6535 GB, free: 32 kB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.451e-05/0.5094, allocations: 12 kB / 0.6535 GB, free: 20 kB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009485/0.5104, allocations: 1.116 MB / 0.6546 GB, free: 14.85 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.887e-06/0.5104, allocations: 4.031 kB / 0.6546 GB, free: 14.85 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001545/0.5119, allocations: 0.8072 MB / 0.6554 GB, free: 14.01 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002051/0.5121, allocations: 156.8 kB / 0.6556 GB, free: 13.84 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.198e-05/0.5122, allocations: 12 kB / 0.6556 GB, free: 13.83 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002949/0.5125, allocations: 24.11 kB / 0.6556 GB, free: 13.8 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001017/0.5126, allocations: 35.94 kB / 0.6556 GB, free: 13.77 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.956e-05/0.5127, allocations: 15.98 kB / 0.6556 GB, free: 13.75 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0003498/0.513, allocations: 283.1 kB / 0.6559 GB, free: 13.48 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.5e-07/0.5131, allocations: 7.938 kB / 0.6559 GB, free: 13.47 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.001426/0.5145, allocations: 0.5762 MB / 0.6565 GB, free: 12.89 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (arteries.enthalpy,arteries.substanceMasses[1],inertia.q_in.m_flow) * 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 (38): * Single equations (assignments): 32 * 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.003474/0.518, allocations: 2.153 MB / 0.6586 GB, free: 10.7 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.00107/0.5191, allocations: 463.5 kB / 0.659 GB, free: 10.25 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 5.2e-06/0.5191, allocations: 4.062 kB / 0.659 GB, free: 10.25 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0005026/0.5196, allocations: 247.5 kB / 0.6593 GB, free: 10 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001118/0.5207, allocations: 221.1 kB / 0.6595 GB, free: 9.793 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007354/0.5281, allocations: 4.699 MB / 0.6641 GB, free: 4.918 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005787/0.5287, allocations: 0.8431 MB / 0.6649 GB, free: 4.047 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0004044/0.5291, allocations: 112.2 kB / 0.665 GB, free: 3.934 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000291/0.5294, allocations: 175.4 kB / 0.6652 GB, free: 3.762 MB / 0.4981 GB Notification: Performance of SimCode: time 5.51e-07/0.5294, allocations: 4 kB / 0.6652 GB, free: 3.758 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06019/0.5896, allocations: 24.92 MB / 0.6895 GB, free: 10.95 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.21/13.8, allocations: 3.859 kB / 0.6895 GB, free: 10.95 MB / 0.5294 GB (rm -f Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_4element.pipe ; mkfifo Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_4element.pipe ; head -c 1048576 < Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_4element.pipe >> ../files/Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_4element.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Physiolibrary_Physiolibrary_Fluid_Examples_Windkessel_4element_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Physiolibrary_Physiolibrary_Fluid_Examples_Windkessel_4element.fmu > Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_4element.pipe 2>&1)