Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_2element.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo): time 0.09678/0.09678, allocations: 15.53 MB / 34.26 MB, free: 4.609 MB / 26.18 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001251/0.001251, allocations: 116.4 kB / 41.83 MB, free: 6.293 MB / 34.91 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001433/0.001433, allocations: 192.5 kB / 49.48 MB, free: 10.14 MB / 34.91 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.45/1.45, allocations: 225.6 MB / 282.6 MB, free: 8.742 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1519/0.1519, allocations: 23.7 MB / 365.9 MB, free: 9.129 MB / 286.1 MB " [Timeout remaining time 180] 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_2element,fileNamePrefix="Physiolibrary_Physiolibrary_Fluid_Examples_Windkessel_2element",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Physiolibrary.Fluid.Examples.Windkessel_2element,fileNamePrefix="Physiolibrary_Physiolibrary_Fluid_Examples_Windkessel_2element",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.003341/0.003341, allocations: 120.3 kB / 0.496 GB, free: 6.227 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3097/0.313, allocations: 62.68 MB / 0.5572 GB, free: 6.25 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_2element): time 0.0941/0.4071, allocations: 69.22 MB / 0.6248 GB, free: 0.9844 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.02073/0.4278, allocations: 15.49 MB / 0.6399 GB, free: 1.43 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008346/0.4287, allocations: 15.88 kB / 0.6399 GB, free: 1.414 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007487/0.4294, allocations: 206.5 kB / 0.6401 GB, free: 1.211 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007014/0.4364, allocations: 2.294 MB / 0.6424 GB, free: 14.9 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003553/0.44, allocations: 1.166 MB / 0.6435 GB, free: 13.73 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.001592/0.4416, allocations: 1.086 MB / 0.6446 GB, free: 12.64 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004341/0.442, allocations: 250.9 kB / 0.6448 GB, free: 12.39 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002489/0.4445, allocations: 1.054 MB / 0.6458 GB, free: 11.33 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007175/0.4452, allocations: 434.3 kB / 0.6462 GB, free: 10.91 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 6.652e-05/0.4453, allocations: 36 kB / 0.6463 GB, free: 10.87 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00489/0.4502, allocations: 1.415 MB / 0.6477 GB, free: 9.453 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002843/0.4505, allocations: 119.6 kB / 0.6478 GB, free: 9.336 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004504/0.4509, allocations: 262.8 kB / 0.648 GB, free: 9.078 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005431/0.4563, allocations: 1.942 MB / 0.6499 GB, free: 7.129 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.811e-06/0.4563, allocations: 0 / 0.6499 GB, free: 7.129 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.4563, allocations: 0 / 0.6499 GB, free: 7.129 MB / 478.1 MB Notification: Performance of Transformations before backend: time 8.256e-06/0.4563, allocations: 0 / 0.6499 GB, free: 7.129 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.001959/0.4583, allocations: 0.924 MB / 0.6508 GB, free: 6.172 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.772e-05/0.4584, allocations: 12.03 kB / 0.6508 GB, free: 6.16 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.441e-05/0.4584, allocations: 66.53 kB / 0.6509 GB, free: 6.086 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001221/0.4586, allocations: 55.66 kB / 0.6509 GB, free: 6.031 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005802/0.4591, allocations: 320.9 kB / 0.6512 GB, free: 5.691 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.776e-05/0.4592, allocations: 36.64 kB / 0.6513 GB, free: 5.656 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.204e-05/0.4592, allocations: 32 kB / 0.6513 GB, free: 5.625 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007127/0.46, allocations: 403.4 kB / 0.6517 GB, free: 5.207 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.635e-05/0.46, allocations: 0 / 0.6517 GB, free: 5.207 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.372e-05/0.46, allocations: 12 kB / 0.6517 GB, free: 5.195 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.748e-05/0.46, allocations: 15.94 kB / 0.6517 GB, free: 5.18 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006876/0.4607, allocations: 338.4 kB / 0.652 GB, free: 4.848 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.002595/0.4633, allocations: 1.556 MB / 0.6536 GB, free: 3.195 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006178/0.4639, allocations: 306.3 kB / 0.6539 GB, free: 2.887 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002969/0.4642, allocations: 144.8 kB / 0.654 GB, free: 2.742 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001125/0.4653, allocations: 0.6286 MB / 0.6546 GB, free: 2.094 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003774/0.4657, allocations: 191.8 kB / 0.6548 GB, free: 1.895 MB / 478.1 MB Notification: Performance of pre-optimization done (n=31): time 1.974e-06/0.4657, allocations: 0 / 0.6548 GB, free: 1.895 MB / 478.1 MB Notification: Performance of matching and sorting (n=31): time 0.001182/0.4669, allocations: 486.7 kB / 0.6553 GB, free: 1.41 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.84e-05/0.467, allocations: 59.41 kB / 0.6553 GB, free: 1.34 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004464/0.4674, allocations: 373.7 kB / 0.6557 GB, free: 0.9688 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 3.277e-05/0.4674, allocations: 33.7 kB / 0.6557 GB, free: 0.9297 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000183/0.4676, allocations: 232.3 kB / 0.6559 GB, free: 0.6992 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001021/0.4677, allocations: 103.1 kB / 0.656 GB, free: 0.5977 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001273/0.4679, allocations: 86.06 kB / 0.6561 GB, free: 0.5078 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001868/0.468, allocations: 350.8 kB / 0.6564 GB, free: 160 kB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002765/0.4683, allocations: 132.8 kB / 0.6566 GB, free: 28 kB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003791/0.4687, allocations: 229.7 kB / 0.6568 GB, free: 15.77 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.002081/0.4708, allocations: 0.8135 MB / 0.6576 GB, free: 14.92 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.296e-06/0.4708, allocations: 4 kB / 0.6576 GB, free: 14.92 MB / 494.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0009027/0.4717, allocations: 465.8 kB / 0.658 GB, free: 14.45 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.579e-05/0.4717, allocations: 8 kB / 0.658 GB, free: 14.45 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.164e-05/0.4717, allocations: 7.984 kB / 0.658 GB, free: 14.44 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001323/0.4719, allocations: 37.16 kB / 0.6581 GB, free: 14.4 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000348/0.4722, allocations: 83.83 kB / 0.6582 GB, free: 14.32 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004329/0.4726, allocations: 0.5368 MB / 0.6587 GB, free: 13.75 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003039/0.4729, allocations: 55.55 kB / 0.6587 GB, free: 13.7 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.127e-05/0.473, allocations: 19.98 kB / 0.6588 GB, free: 13.68 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 (47): * 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: 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.000226/0.4732, allocations: 173.7 kB / 0.6589 GB, free: 13.5 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.796e-05/0.4733, allocations: 39.77 kB / 0.659 GB, free: 13.46 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008909/0.4742, allocations: 416.4 kB / 0.6594 GB, free: 13.04 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.213e-05/0.4742, allocations: 11.94 kB / 0.6594 GB, free: 13.02 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.4742, allocations: 0 / 0.6594 GB, free: 13.02 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.229e-06/0.4742, allocations: 0 / 0.6594 GB, free: 13.02 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001398/0.4756, allocations: 0.8389 MB / 0.6602 GB, free: 12.13 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.825e-06/0.4756, allocations: 0 / 0.6602 GB, free: 12.13 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002266/0.4758, allocations: 47.94 kB / 0.6602 GB, free: 12.08 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.662e-05/0.4759, allocations: 32.84 kB / 0.6603 GB, free: 12.05 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.674e-05/0.4759, allocations: 11.98 kB / 0.6603 GB, free: 12.04 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004113/0.4763, allocations: 0.5368 MB / 0.6608 GB, free: 11.47 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.497e-06/0.4763, allocations: 3.969 kB / 0.6608 GB, free: 11.47 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001052/0.4774, allocations: 0.5998 MB / 0.6614 GB, free: 10.85 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000149/0.4775, allocations: 63.69 kB / 0.6615 GB, free: 10.79 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.28e-05/0.4776, allocations: 15.92 kB / 0.6615 GB, free: 10.77 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002392/0.4779, allocations: 20.05 kB / 0.6615 GB, free: 10.75 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.575e-05/0.4779, allocations: 23.95 kB / 0.6615 GB, free: 10.73 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.675e-05/0.478, allocations: 8 kB / 0.6615 GB, free: 10.72 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0003337/0.4783, allocations: 275.2 kB / 0.6618 GB, free: 10.45 MB / 494.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4783, allocations: 0 / 0.6618 GB, free: 10.45 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.001233/0.4795, allocations: 498.2 kB / 0.6623 GB, free: 9.961 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 (28): * 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: 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.002837/0.4824, allocations: 1.845 MB / 0.6641 GB, free: 8.082 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0007941/0.4832, allocations: 327.3 kB / 0.6644 GB, free: 7.762 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.564e-06/0.4832, allocations: 0 / 0.6644 GB, free: 7.762 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003258/0.4835, allocations: 144.5 kB / 0.6645 GB, free: 7.621 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008856/0.4844, allocations: 199.5 kB / 0.6647 GB, free: 7.43 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005891/0.4903, allocations: 4.01 MB / 0.6686 GB, free: 3.254 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004864/0.4907, allocations: 0.8114 MB / 0.6694 GB, free: 2.414 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0002877/0.491, allocations: 79.3 kB / 0.6695 GB, free: 2.336 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002275/0.4913, allocations: 143.3 kB / 0.6696 GB, free: 2.195 MB / 494.1 MB Notification: Performance of SimCode: time 9.41e-07/0.4913, allocations: 4 kB / 0.6696 GB, free: 2.191 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05755/0.5488, allocations: 21.45 MB / 0.6906 GB, free: 12.83 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.22/12.77, allocations: 10.72 kB / 0.6906 GB, free: 12.82 MB / 0.5137 GB " [Timeout remaining time 647] (rm -f Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_2element.pipe ; mkfifo Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_2element.pipe ; head -c 1048576 < Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_2element.pipe >> ../files/Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_2element.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Physiolibrary_Physiolibrary_Fluid_Examples_Windkessel_2element_fmu --startTime=0 --stopTime=5 --stepSize=0.002 --timeout=50 --tolerance=1e-06 Physiolibrary_Physiolibrary_Fluid_Examples_Windkessel_2element.fmu > Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_2element.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 15.50958855600038] Failed to read output from testmodel.py, exit status != 0: 12.87078671900963 12.885637381 12.42613279 Calling exit ...