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) 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_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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo): time 0.1156/0.1156, allocations: 15.28 MB / 30.91 MB, free: 4.145 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.001213/0.001213, allocations: 110.1 kB / 35.92 MB, free: 3.172 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.001545/0.001545, allocations: 193.1 kB / 41.02 MB, free: 7.102 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.521/1.521, allocations: 222.9 MB / 268.9 MB, free: 6.895 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1638/0.1638, allocations: 23.35 MB / 346.6 MB, free: 0.6445 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003155/0.003155, allocations: 123.8 kB / 478.4 MB, free: 2.305 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3393/0.3425, allocations: 59.35 MB / 0.5251 GB, free: 7.781 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.08449/0.427, allocations: 68.63 MB / 0.5921 GB, free: 15.9 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.02189/0.4489, allocations: 15.52 MB / 0.6073 GB, free: 328 kB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009032/0.4498, allocations: 11.94 kB / 0.6073 GB, free: 316 kB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007357/0.4505, allocations: 210.5 kB / 0.6075 GB, free: 104 kB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006924/0.4574, allocations: 2.255 MB / 0.6097 GB, free: 13.83 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003603/0.461, allocations: 1.134 MB / 0.6108 GB, free: 12.69 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.001678/0.4627, allocations: 1.078 MB / 0.6119 GB, free: 11.61 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004552/0.4632, allocations: 266.5 kB / 0.6121 GB, free: 11.34 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00261/0.4658, allocations: 1.03 MB / 0.6131 GB, free: 10.3 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006934/0.4665, allocations: 402.4 kB / 0.6135 GB, free: 9.906 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 6.59e-05/0.4665, allocations: 40 kB / 0.6135 GB, free: 9.867 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004832/0.4714, allocations: 1.568 MB / 0.6151 GB, free: 8.297 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001697/0.4715, allocations: 131.5 kB / 0.6152 GB, free: 8.168 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003139/0.4718, allocations: 258.8 kB / 0.6155 GB, free: 7.914 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004511/0.4763, allocations: 2.024 MB / 0.6174 GB, free: 5.883 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.596e-06/0.4763, allocations: 4 kB / 0.6174 GB, free: 5.879 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.814e-06/0.4764, allocations: 0 / 0.6174 GB, free: 5.879 MB / 462.1 MB Notification: Performance of Transformations before backend: time 9.308e-06/0.4764, allocations: 0 / 0.6174 GB, free: 5.879 MB / 462.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.001865/0.4782, allocations: 0.9962 MB / 0.6184 GB, free: 4.832 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.263e-05/0.4783, allocations: 8.031 kB / 0.6184 GB, free: 4.824 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.447e-05/0.4784, allocations: 70.53 kB / 0.6185 GB, free: 4.746 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001197/0.4785, allocations: 51.66 kB / 0.6185 GB, free: 4.695 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005832/0.4791, allocations: 394 kB / 0.6189 GB, free: 4.27 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.535e-05/0.4791, allocations: 24.66 kB / 0.6189 GB, free: 4.246 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.116e-05/0.4792, allocations: 32 kB / 0.619 GB, free: 4.215 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007492/0.4799, allocations: 399.6 kB / 0.6193 GB, free: 3.805 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.835e-05/0.4799, allocations: 0 / 0.6193 GB, free: 3.805 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.499e-05/0.48, allocations: 12 kB / 0.6194 GB, free: 3.793 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.952e-05/0.48, allocations: 19.91 kB / 0.6194 GB, free: 3.773 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006998/0.4807, allocations: 334.3 kB / 0.6197 GB, free: 3.445 MB / 462.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.002863/0.4835, allocations: 2.054 MB / 0.6217 GB, free: 1.176 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005816/0.4841, allocations: 290.5 kB / 0.622 GB, free: 0.8828 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002861/0.4844, allocations: 144.8 kB / 0.6221 GB, free: 0.7383 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001271/0.4857, allocations: 0.9502 MB / 0.623 GB, free: 15.69 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003769/0.4861, allocations: 191.3 kB / 0.6232 GB, free: 15.49 MB / 478.1 MB Notification: Performance of pre-optimization done (n=31): time 1.834e-06/0.4861, allocations: 0 / 0.6232 GB, free: 15.49 MB / 478.1 MB Notification: Performance of matching and sorting (n=31): time 0.001279/0.4873, allocations: 0.5389 MB / 0.6237 GB, free: 14.92 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.405e-05/0.4874, allocations: 59.41 kB / 0.6238 GB, free: 14.85 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004369/0.4878, allocations: 381.6 kB / 0.6242 GB, free: 14.47 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 4.209e-05/0.4879, allocations: 33.7 kB / 0.6242 GB, free: 14.43 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002051/0.4881, allocations: 228.4 kB / 0.6244 GB, free: 14.2 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.806e-05/0.4882, allocations: 103.1 kB / 0.6245 GB, free: 14.1 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001396/0.4883, allocations: 86.06 kB / 0.6246 GB, free: 14.01 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.000206/0.4885, allocations: 346.8 kB / 0.6249 GB, free: 13.66 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002946/0.4888, allocations: 132.8 kB / 0.6251 GB, free: 13.54 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004193/0.4892, allocations: 229.7 kB / 0.6253 GB, free: 13.28 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.002129/0.4914, allocations: 0.8902 MB / 0.6261 GB, free: 12.34 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.4914, allocations: 0 / 0.6261 GB, free: 12.34 MB / 478.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0009324/0.4923, allocations: 462.3 kB / 0.6266 GB, free: 11.88 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.899e-05/0.4923, allocations: 8 kB / 0.6266 GB, free: 11.87 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.414e-06/0.4923, allocations: 0 / 0.6266 GB, free: 11.87 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001462/0.4925, allocations: 36.84 kB / 0.6266 GB, free: 11.83 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003459/0.4928, allocations: 75.89 kB / 0.6267 GB, free: 11.75 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004664/0.4933, allocations: 0.5523 MB / 0.6272 GB, free: 11.18 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003143/0.4936, allocations: 55.62 kB / 0.6273 GB, free: 11.12 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.817e-05/0.4936, allocations: 16 kB / 0.6273 GB, free: 11.11 MB / 478.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.0002138/0.4938, allocations: 166.7 kB / 0.6275 GB, free: 10.93 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.737e-05/0.4939, allocations: 35.77 kB / 0.6275 GB, free: 10.9 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008777/0.4948, allocations: 424.7 kB / 0.6279 GB, free: 10.46 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.255e-06/0.4948, allocations: 3.938 kB / 0.6279 GB, free: 10.46 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.4948, allocations: 0 / 0.6279 GB, free: 10.46 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.043e-06/0.4948, allocations: 7.984 kB / 0.6279 GB, free: 10.45 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001372/0.4962, allocations: 0.8671 MB / 0.6288 GB, free: 9.52 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.335e-06/0.4962, allocations: 0 / 0.6288 GB, free: 9.52 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002394/0.4964, allocations: 43.91 kB / 0.6288 GB, free: 9.477 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.915e-05/0.4965, allocations: 36.83 kB / 0.6288 GB, free: 9.438 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.952e-05/0.4965, allocations: 11.98 kB / 0.6289 GB, free: 9.426 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003858/0.4969, allocations: 0.5445 MB / 0.6294 GB, free: 8.855 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/0.4969, allocations: 3.938 kB / 0.6294 GB, free: 8.852 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001016/0.4979, allocations: 0.5957 MB / 0.63 GB, free: 8.234 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001613/0.4981, allocations: 144.8 kB / 0.6301 GB, free: 8.074 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.498e-05/0.4982, allocations: 19.81 kB / 0.6301 GB, free: 8.055 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002542/0.4984, allocations: 11.98 kB / 0.6301 GB, free: 8.043 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.94e-05/0.4985, allocations: 27.97 kB / 0.6302 GB, free: 8.016 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.325e-05/0.4985, allocations: 4 kB / 0.6302 GB, free: 8.012 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0003073/0.4988, allocations: 275.2 kB / 0.6304 GB, free: 7.75 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.4988, allocations: 4 kB / 0.6304 GB, free: 7.746 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.001195/0.5, allocations: 494.3 kB / 0.6309 GB, free: 7.262 MB / 478.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.00266/0.5027, allocations: 1.837 MB / 0.6327 GB, free: 5.391 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.0007727/0.5035, allocations: 327.5 kB / 0.633 GB, free: 5.07 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.5035, allocations: 3.938 kB / 0.633 GB, free: 5.066 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003293/0.5038, allocations: 147.8 kB / 0.6332 GB, free: 4.922 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009/0.5047, allocations: 177.7 kB / 0.6333 GB, free: 4.746 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00578/0.5105, allocations: 4 MB / 0.6372 GB, free: 0.5781 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000448/0.5109, allocations: 0.8114 MB / 0.638 GB, free: 15.74 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0002847/0.5112, allocations: 83.23 kB / 0.6381 GB, free: 15.66 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002152/0.5114, allocations: 143.3 kB / 0.6382 GB, free: 15.52 MB / 494.1 MB Notification: Performance of SimCode: time 6.81e-07/0.5114, allocations: 0 / 0.6382 GB, free: 15.52 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05842/0.5698, allocations: 21.19 MB / 0.6589 GB, free: 10.43 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.53/13.1, allocations: 3.516 kB / 0.6589 GB, free: 10.43 MB / 0.4981 GB (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 --timeout=50 --tolerance=1e-06 Physiolibrary_Physiolibrary_Fluid_Examples_Windkessel_2element.fmu > Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_2element.pipe 2>&1)