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.1174/0.1174, allocations: 15.28 MB / 30.91 MB, free: 4.16 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.001535/0.001535, allocations: 107.2 kB / 35.92 MB, free: 3.18 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.001996/0.001996, allocations: 198 kB / 41.02 MB, free: 7.117 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.502/1.502, allocations: 222.9 MB / 268.9 MB, free: 6.906 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1603/0.1603, allocations: 23.35 MB / 346.6 MB, free: 0.6328 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003176/0.003176, allocations: 108.2 kB / 478.3 MB, free: 2.293 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3657/0.3689, allocations: 59.36 MB / 0.5251 GB, free: 7.785 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.1085/0.4774, allocations: 81.12 MB / 0.6043 GB, free: 3.367 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.02972/0.5071, allocations: 22.22 MB / 0.626 GB, free: 13.06 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00121/0.5083, allocations: 19.88 kB / 0.626 GB, free: 13.04 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009645/0.5093, allocations: 270.1 kB / 0.6263 GB, free: 12.78 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008678/0.518, allocations: 2.481 MB / 0.6287 GB, free: 10.28 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006293/0.5243, allocations: 2.066 MB / 0.6307 GB, free: 8.203 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.002517/0.5268, allocations: 1.34 MB / 0.6321 GB, free: 6.855 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007965/0.5276, allocations: 376.8 kB / 0.6324 GB, free: 6.484 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003109/0.5307, allocations: 1.143 MB / 0.6335 GB, free: 5.336 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001147/0.5318, allocations: 0.5332 MB / 0.6341 GB, free: 4.801 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000108/0.5319, allocations: 56 kB / 0.6341 GB, free: 4.746 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006701/0.5386, allocations: 1.844 MB / 0.6359 GB, free: 2.898 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003117/0.539, allocations: 171.3 kB / 0.6361 GB, free: 2.73 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005357/0.5395, allocations: 326.6 kB / 0.6364 GB, free: 2.41 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008166/0.5477, allocations: 2.413 MB / 0.6387 GB, free: 15.98 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.382e-06/0.5477, allocations: 0 / 0.6387 GB, free: 15.98 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.5477, allocations: 0 / 0.6387 GB, free: 15.98 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.022e-05/0.5477, allocations: 0 / 0.6387 GB, free: 15.98 MB / 494.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.002628/0.5503, allocations: 1.132 MB / 0.6398 GB, free: 14.8 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.557e-05/0.5504, allocations: 20.02 kB / 0.6399 GB, free: 14.78 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001124/0.5505, allocations: 74.53 kB / 0.6399 GB, free: 14.7 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000146/0.5506, allocations: 59.67 kB / 0.64 GB, free: 14.64 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006872/0.5513, allocations: 434.5 kB / 0.6404 GB, free: 14.18 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.275e-05/0.5513, allocations: 36.98 kB / 0.6404 GB, free: 14.14 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.786e-05/0.5514, allocations: 44 kB / 0.6405 GB, free: 14.1 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001011/0.5524, allocations: 0.5279 MB / 0.641 GB, free: 13.55 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.455e-05/0.5525, allocations: 7.938 kB / 0.641 GB, free: 13.54 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.85e-05/0.5525, allocations: 16 kB / 0.641 GB, free: 13.53 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.724e-05/0.5525, allocations: 12 kB / 0.641 GB, free: 13.52 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009674/0.5535, allocations: 495.7 kB / 0.6415 GB, free: 13.03 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.003436/0.5569, allocations: 2.478 MB / 0.6439 GB, free: 10.3 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007869/0.5577, allocations: 395 kB / 0.6443 GB, free: 9.906 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004936/0.5582, allocations: 240.7 kB / 0.6445 GB, free: 9.668 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001553/0.5598, allocations: 1.114 MB / 0.6456 GB, free: 8.453 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005192/0.5603, allocations: 253.1 kB / 0.6459 GB, free: 8.191 MB / 494.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0001691/0.5604, allocations: 43.73 kB / 0.6459 GB, free: 8.148 MB / 494.1 MB Notification: Performance of pre-optimization done (n=41): time 2.014e-06/0.5604, allocations: 0 / 0.6459 GB, free: 8.148 MB / 494.1 MB Notification: Performance of matching and sorting (n=41): time 0.001828/0.5623, allocations: 0.8159 MB / 0.6467 GB, free: 7.285 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.038e-05/0.5623, allocations: 55.73 kB / 0.6468 GB, free: 7.219 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004919/0.5628, allocations: 413.5 kB / 0.6471 GB, free: 6.809 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 3.841e-05/0.5629, allocations: 33.7 kB / 0.6472 GB, free: 6.77 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002012/0.5631, allocations: 248.6 kB / 0.6474 GB, free: 6.52 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001287/0.5632, allocations: 142.8 kB / 0.6476 GB, free: 6.379 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001595/0.5633, allocations: 98.19 kB / 0.6476 GB, free: 6.277 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001722/0.5635, allocations: 354.8 kB / 0.648 GB, free: 5.922 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003734/0.5639, allocations: 181 kB / 0.6482 GB, free: 5.746 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004562/0.5643, allocations: 275.4 kB / 0.6484 GB, free: 5.441 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.004319/0.5687, allocations: 1.321 MB / 0.6497 GB, free: 4.074 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.039e-06/0.5687, allocations: 0 / 0.6497 GB, free: 4.074 MB / 494.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001337/0.57, allocations: 0.5912 MB / 0.6503 GB, free: 3.469 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.869e-05/0.57, allocations: 12.03 kB / 0.6503 GB, free: 3.457 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.065e-05/0.57, allocations: 3.984 kB / 0.6503 GB, free: 3.453 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002446/0.5703, allocations: 73.67 kB / 0.6504 GB, free: 3.375 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004286/0.5707, allocations: 95.88 kB / 0.6505 GB, free: 3.281 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008319/0.5715, allocations: 1.12 MB / 0.6516 GB, free: 2.109 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003894/0.5719, allocations: 20.03 kB / 0.6516 GB, free: 2.09 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.497e-05/0.572, allocations: 23.98 kB / 0.6516 GB, free: 2.066 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.0002858/0.5723, allocations: 189.8 kB / 0.6518 GB, free: 1.871 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.432e-05/0.5724, allocations: 47.7 kB / 0.6518 GB, free: 1.824 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001235/0.5736, allocations: 0.5877 MB / 0.6524 GB, free: 1.219 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.227e-06/0.5736, allocations: 4 kB / 0.6524 GB, free: 1.215 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.681e-06/0.5736, allocations: 0 / 0.6524 GB, free: 1.215 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.18e-05/0.5736, allocations: 7.984 kB / 0.6524 GB, free: 1.207 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001896/0.5755, allocations: 1.122 MB / 0.6535 GB, free: 20 kB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.797e-06/0.5755, allocations: 0 / 0.6535 GB, free: 20 kB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003629/0.5759, allocations: 67.89 kB / 0.6536 GB, free: 15.95 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002064/0.5761, allocations: 69.67 kB / 0.6536 GB, free: 15.88 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.759e-05/0.5761, allocations: 11.98 kB / 0.6536 GB, free: 15.87 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008365/0.577, allocations: 1.12 MB / 0.6547 GB, free: 14.7 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.667e-06/0.577, allocations: 7.922 kB / 0.6548 GB, free: 14.69 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001484/0.5785, allocations: 0.8072 MB / 0.6555 GB, free: 13.85 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002159/0.5787, allocations: 160.8 kB / 0.6557 GB, free: 13.68 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.079e-05/0.5787, allocations: 8 kB / 0.6557 GB, free: 13.67 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002998/0.579, allocations: 23.92 kB / 0.6557 GB, free: 13.64 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001016/0.5791, allocations: 31.95 kB / 0.6558 GB, free: 13.61 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.145e-05/0.5792, allocations: 19.98 kB / 0.6558 GB, free: 13.59 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0003534/0.5795, allocations: 283.2 kB / 0.656 GB, free: 13.32 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.5e-07/0.5795, allocations: 0 / 0.656 GB, free: 13.32 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.00175/0.5813, allocations: 0.5839 MB / 0.6566 GB, free: 12.73 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.003862/0.5852, allocations: 2.149 MB / 0.6587 GB, free: 10.54 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.001206/0.5864, allocations: 439 kB / 0.6591 GB, free: 10.12 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/0.5864, allocations: 0 / 0.6591 GB, free: 10.12 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0005188/0.5869, allocations: 224.2 kB / 0.6593 GB, free: 9.898 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001242/0.5881, allocations: 221 kB / 0.6596 GB, free: 9.688 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008567/0.5967, allocations: 4.699 MB / 0.6641 GB, free: 4.812 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007129/0.5974, allocations: 0.847 MB / 0.665 GB, free: 3.938 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0005816/0.598, allocations: 116.2 kB / 0.6651 GB, free: 3.82 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000384/0.5984, allocations: 175.4 kB / 0.6652 GB, free: 3.648 MB / 0.4981 GB Notification: Performance of SimCode: time 1.704e-06/0.5984, allocations: 0 / 0.6652 GB, free: 3.648 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06523/0.6636, allocations: 24.98 MB / 0.6896 GB, free: 10.78 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.8/13.47, allocations: 15.78 kB / 0.6897 GB, free: 10.77 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)