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.09645/0.09645, allocations: 15.52 MB / 31.87 MB, free: 3.887 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.001176/0.001176, allocations: 107.1 kB / 39.11 MB, free: 1.148 MB / 26.18 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.002035/0.002035, allocations: 204.9 kB / 46.47 MB, free: 2.508 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.397/1.397, allocations: 225.6 MB / 279.3 MB, free: 15.36 MB / 222.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.1445/0.1445, allocations: 23.72 MB / 362.3 MB, free: 0.7969 MB / 270.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.003086/0.003086, allocations: 119.8 kB / 0.4908 GB, free: 25.29 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1122/0.1153, allocations: 62.64 MB / 0.552 GB, free: 10.52 MB / 398.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.3282/0.4435, allocations: 69.19 MB / 0.6196 GB, free: 15.28 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.01511/0.4586, allocations: 15.55 MB / 0.6347 GB, free: 11.74 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006461/0.4592, allocations: 15.88 kB / 0.6348 GB, free: 11.72 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006746/0.4599, allocations: 213.2 kB / 0.635 GB, free: 11.61 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006533/0.4664, allocations: 2.254 MB / 0.6372 GB, free: 10.27 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003446/0.4699, allocations: 1.137 MB / 0.6383 GB, free: 9.648 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001542/0.4714, allocations: 1.07 MB / 0.6393 GB, free: 8.953 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000397/0.4718, allocations: 269.7 kB / 0.6396 GB, free: 8.836 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002297/0.4741, allocations: 1.044 MB / 0.6406 GB, free: 8.184 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006282/0.4747, allocations: 425.7 kB / 0.641 GB, free: 7.938 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 6.191e-05/0.4748, allocations: 36 kB / 0.641 GB, free: 7.902 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004352/0.4792, allocations: 1.632 MB / 0.6426 GB, free: 6.863 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001697/0.4793, allocations: 125.6 kB / 0.6427 GB, free: 6.812 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003044/0.4796, allocations: 257.2 kB / 0.643 GB, free: 6.645 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004622/0.4843, allocations: 2.028 MB / 0.645 GB, free: 5.168 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.42e-06/0.4843, allocations: 1.688 kB / 0.645 GB, free: 5.168 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.644e-06/0.4843, allocations: 4 kB / 0.645 GB, free: 5.164 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.53e-05/0.4843, allocations: 0 / 0.645 GB, free: 5.164 MB / 446.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.001995/0.4863, allocations: 0.9863 MB / 0.6459 GB, free: 4.199 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.034e-05/0.4863, allocations: 12.03 kB / 0.646 GB, free: 4.188 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.127e-05/0.4864, allocations: 74.39 kB / 0.646 GB, free: 4.113 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000111/0.4865, allocations: 51.67 kB / 0.6461 GB, free: 4.062 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005845/0.4871, allocations: 390.1 kB / 0.6464 GB, free: 3.695 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.478e-05/0.4871, allocations: 24.59 kB / 0.6465 GB, free: 3.672 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.386e-05/0.4872, allocations: 36 kB / 0.6465 GB, free: 3.637 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007063/0.4879, allocations: 395.1 kB / 0.6469 GB, free: 3.301 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.356e-05/0.4879, allocations: 8 kB / 0.6469 GB, free: 3.293 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.46e-05/0.488, allocations: 15.98 kB / 0.6469 GB, free: 3.277 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.114e-05/0.488, allocations: 10.48 kB / 0.6469 GB, free: 3.27 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006865/0.4887, allocations: 332 kB / 0.6472 GB, free: 2.992 MB / 446.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.002728/0.4914, allocations: 2.041 MB / 0.6492 GB, free: 0.9883 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005905/0.492, allocations: 296 kB / 0.6495 GB, free: 0.7305 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003015/0.4923, allocations: 151.7 kB / 0.6496 GB, free: 0.6016 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001286/0.4936, allocations: 0.96 MB / 0.6506 GB, free: 15.66 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003596/0.4939, allocations: 190.1 kB / 0.6508 GB, free: 15.5 MB / 462.1 MB Notification: Performance of pre-optimization done (n=31): time 1.933e-06/0.4939, allocations: 0 / 0.6508 GB, free: 15.5 MB / 462.1 MB Notification: Performance of matching and sorting (n=31): time 0.00124/0.4952, allocations: 0.5307 MB / 0.6513 GB, free: 14.95 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.796e-05/0.4952, allocations: 55.66 kB / 0.6513 GB, free: 14.88 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004567/0.4957, allocations: 381.6 kB / 0.6517 GB, free: 14.5 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 3.674e-05/0.4957, allocations: 33.7 kB / 0.6517 GB, free: 14.46 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001774/0.4959, allocations: 224.4 kB / 0.6519 GB, free: 14.24 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001087/0.496, allocations: 114.3 kB / 0.6521 GB, free: 14.13 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001371/0.4961, allocations: 86.05 kB / 0.6521 GB, free: 14.04 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001767/0.4963, allocations: 354.7 kB / 0.6525 GB, free: 13.68 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002975/0.4966, allocations: 128.8 kB / 0.6526 GB, free: 13.56 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003741/0.497, allocations: 225.7 kB / 0.6528 GB, free: 13.3 MB / 462.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.002119/0.4991, allocations: 0.8808 MB / 0.6537 GB, free: 12.37 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.906e-06/0.4991, allocations: 0 / 0.6537 GB, free: 12.37 MB / 462.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0009558/0.5001, allocations: 467.1 kB / 0.6541 GB, free: 11.91 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.238e-05/0.5001, allocations: 8 kB / 0.6541 GB, free: 11.9 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.025e-05/0.5001, allocations: 4 kB / 0.6541 GB, free: 11.89 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001341/0.5002, allocations: 37.16 kB / 0.6542 GB, free: 11.86 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003564/0.5006, allocations: 79.83 kB / 0.6542 GB, free: 11.78 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004597/0.5011, allocations: 0.5523 MB / 0.6548 GB, free: 11.2 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003124/0.5014, allocations: 43.72 kB / 0.6548 GB, free: 11.16 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.711e-05/0.5014, allocations: 12 kB / 0.6548 GB, free: 11.14 MB / 462.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.0002194/0.5016, allocations: 172.6 kB / 0.655 GB, free: 10.97 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.725e-05/0.5017, allocations: 51.66 kB / 0.655 GB, free: 10.92 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008819/0.5026, allocations: 412.8 kB / 0.6554 GB, free: 10.5 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.045e-06/0.5026, allocations: 4 kB / 0.6554 GB, free: 10.49 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.5026, allocations: 0 / 0.6554 GB, free: 10.49 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.602e-06/0.5026, allocations: 3.984 kB / 0.6555 GB, free: 10.49 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00145/0.504, allocations: 0.8657 MB / 0.6563 GB, free: 9.566 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.218e-06/0.5041, allocations: 11.97 kB / 0.6563 GB, free: 9.555 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002311/0.5043, allocations: 43.97 kB / 0.6563 GB, free: 9.512 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.208e-05/0.5044, allocations: 28.83 kB / 0.6564 GB, free: 9.48 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.149e-05/0.5044, allocations: 15.92 kB / 0.6564 GB, free: 9.465 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003803/0.5048, allocations: 0.5406 MB / 0.6569 GB, free: 8.898 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.779e-06/0.5048, allocations: 4.125 kB / 0.6569 GB, free: 8.895 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001036/0.5058, allocations: 0.6032 MB / 0.6575 GB, free: 8.27 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001779/0.506, allocations: 140.8 kB / 0.6576 GB, free: 8.113 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.435e-05/0.5061, allocations: 11.98 kB / 0.6577 GB, free: 8.102 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002482/0.5063, allocations: 16.05 kB / 0.6577 GB, free: 8.086 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.352e-05/0.5064, allocations: 23.97 kB / 0.6577 GB, free: 8.062 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.688e-05/0.5064, allocations: 12 kB / 0.6577 GB, free: 8.051 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0003229/0.5067, allocations: 271.2 kB / 0.658 GB, free: 7.789 MB / 462.1 MB Notification: Performance of sort global known variables: time 9e-08/0.5067, allocations: 0 / 0.658 GB, free: 7.789 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001329/0.5081, allocations: 0.4904 MB / 0.6584 GB, free: 7.297 MB / 462.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.002749/0.5108, allocations: 1.819 MB / 0.6602 GB, free: 5.523 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0008005/0.5116, allocations: 323.3 kB / 0.6605 GB, free: 5.207 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.5116, allocations: 0 / 0.6605 GB, free: 5.207 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003285/0.512, allocations: 155 kB / 0.6607 GB, free: 5.059 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009233/0.5129, allocations: 192.1 kB / 0.6609 GB, free: 4.875 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005749/0.5186, allocations: 4.007 MB / 0.6648 GB, free: 0.7148 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004502/0.5191, allocations: 0.8114 MB / 0.6656 GB, free: 15.88 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0003073/0.5194, allocations: 83.23 kB / 0.6656 GB, free: 15.79 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002244/0.5196, allocations: 147.4 kB / 0.6658 GB, free: 15.64 MB / 478.1 MB Notification: Performance of SimCode: time 6.91e-07/0.5196, allocations: 0 / 0.6658 GB, free: 15.64 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06423/0.5838, allocations: 21.2 MB / 0.6865 GB, free: 10.57 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.53/17.11, allocations: 4 kB / 0.6865 GB, free: 10.56 MB / 494.1 MB " [Timeout remaining time 643] (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: 24.526493787765503] Failed to read output from testmodel.py, exit status != 0: 17.225684973876923 17.239760252 16.752648559 Calling exit ...