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.1391/0.1391, allocations: 15.28 MB / 30.51 MB, free: 4.352 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.00104/0.00104, allocations: 109.8 kB / 35.49 MB, free: 3.387 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.001474/0.001474, allocations: 196.5 kB / 40.59 MB, free: 7.465 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.68/1.68, allocations: 222.9 MB / 268.4 MB, free: 7.25 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1935/0.1935, allocations: 23.35 MB / 346.1 MB, free: 444 kB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002158/0.002159, allocations: 99.84 kB / 417.8 MB, free: 30.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1464/0.1486, allocations: 59.37 MB / 477.1 MB, free: 3.227 MB / 334.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.6895/0.8381, allocations: 67.23 MB / 0.5316 GB, free: 12.27 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01665/0.8548, allocations: 15.42 MB / 0.5467 GB, free: 11.2 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001341/0.8562, allocations: 29.94 kB / 0.5467 GB, free: 11.19 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007585/0.8569, allocations: 173.9 kB / 0.5469 GB, free: 11.14 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007041/0.864, allocations: 2.048 MB / 0.5489 GB, free: 10.5 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003859/0.8679, allocations: 1.032 MB / 0.5499 GB, free: 10.23 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001737/0.8697, allocations: 1.103 MB / 0.5509 GB, free: 10.02 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004997/0.8702, allocations: 331.1 kB / 0.5513 GB, free: 9.98 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002683/0.8729, allocations: 0.9958 MB / 0.5522 GB, free: 9.781 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007193/0.8736, allocations: 429.1 kB / 0.5526 GB, free: 9.602 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.243e-05/0.8737, allocations: 40 kB / 0.5527 GB, free: 9.562 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005435/0.8791, allocations: 1.607 MB / 0.5542 GB, free: 8.488 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001856/0.8793, allocations: 125.5 kB / 0.5544 GB, free: 8.441 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003753/0.8797, allocations: 257.9 kB / 0.5546 GB, free: 8.273 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005208/0.8849, allocations: 1.936 MB / 0.5565 GB, free: 7.082 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.65e-06/0.8849, allocations: 0 / 0.5565 GB, free: 7.082 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.465e-06/0.885, allocations: 0 / 0.5565 GB, free: 7.082 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.478e-06/0.885, allocations: 0 / 0.5565 GB, free: 7.082 MB / 382.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.001843/0.8868, allocations: 0.9697 MB / 0.5574 GB, free: 6.211 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.226e-05/0.8869, allocations: 8.031 kB / 0.5575 GB, free: 6.203 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.247e-05/0.887, allocations: 77.88 kB / 0.5575 GB, free: 6.148 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001137/0.8871, allocations: 48.75 kB / 0.5576 GB, free: 6.102 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004971/0.8876, allocations: 372.3 kB / 0.5579 GB, free: 5.781 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.989e-05/0.8876, allocations: 22.41 kB / 0.558 GB, free: 5.77 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.665e-05/0.8877, allocations: 42.31 kB / 0.558 GB, free: 5.738 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006838/0.8884, allocations: 395.5 kB / 0.5584 GB, free: 5.504 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.054e-05/0.8884, allocations: 4 kB / 0.5584 GB, free: 5.5 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.814e-05/0.8885, allocations: 11.81 kB / 0.5584 GB, free: 5.5 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.173e-05/0.8885, allocations: 8 kB / 0.5584 GB, free: 5.492 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000619/0.8891, allocations: 343.7 kB / 0.5587 GB, free: 5.309 MB / 382.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.002255/0.8914, allocations: 2.026 MB / 0.5607 GB, free: 3.555 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005487/0.8919, allocations: 324.4 kB / 0.561 GB, free: 3.375 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002465/0.8922, allocations: 159.9 kB / 0.5612 GB, free: 3.285 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001084/0.8933, allocations: 0.9642 MB / 0.5621 GB, free: 2.461 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003329/0.8936, allocations: 183.2 kB / 0.5623 GB, free: 2.34 MB / 382.1 MB Notification: Performance of pre-optimization done (n=31): time 1.804e-06/0.8936, allocations: 4 kB / 0.5623 GB, free: 2.336 MB / 382.1 MB Notification: Performance of matching and sorting (n=31): time 0.001036/0.8947, allocations: 0.5293 MB / 0.5628 GB, free: 1.836 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.136e-05/0.8947, allocations: 62.36 kB / 0.5629 GB, free: 1.766 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003282/0.8951, allocations: 377.1 kB / 0.5632 GB, free: 1.434 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.547e-05/0.8951, allocations: 29.7 kB / 0.5632 GB, free: 1.398 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001128/0.8952, allocations: 228 kB / 0.5635 GB, free: 1.184 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.807e-05/0.8953, allocations: 101.2 kB / 0.5636 GB, free: 1.094 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001156/0.8954, allocations: 84.98 kB / 0.5636 GB, free: 1.016 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001125/0.8955, allocations: 352.3 kB / 0.564 GB, free: 0.6758 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002436/0.8958, allocations: 132.5 kB / 0.5641 GB, free: 0.5664 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002791/0.8961, allocations: 231.9 kB / 0.5643 GB, free: 340 kB / 382.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.002141/0.8982, allocations: 0.8785 MB / 0.5652 GB, free: 15.53 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.151e-06/0.8982, allocations: 4 kB / 0.5652 GB, free: 15.52 MB / 398.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0009965/0.8993, allocations: 469.4 kB / 0.5656 GB, free: 15.1 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.303e-05/0.8993, allocations: 4 kB / 0.5656 GB, free: 15.1 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.082e-05/0.8993, allocations: 4 kB / 0.5656 GB, free: 15.09 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001756/0.8995, allocations: 31.38 kB / 0.5657 GB, free: 15.07 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003754/0.8999, allocations: 79.7 kB / 0.5657 GB, free: 15 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004526/0.9003, allocations: 0.5493 MB / 0.5663 GB, free: 14.43 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004064/0.9008, allocations: 60.58 kB / 0.5663 GB, free: 14.38 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.714e-05/0.9008, allocations: 16 kB / 0.5664 GB, free: 14.36 MB / 398.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.0002675/0.9011, allocations: 174.3 kB / 0.5665 GB, free: 14.18 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.627e-05/0.9012, allocations: 43.47 kB / 0.5666 GB, free: 14.14 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009084/0.9021, allocations: 432.5 kB / 0.567 GB, free: 13.7 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.268e-06/0.9021, allocations: 4 kB / 0.567 GB, free: 13.7 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.866e-06/0.9021, allocations: 0 / 0.567 GB, free: 13.7 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.207e-06/0.9021, allocations: 3.984 kB / 0.567 GB, free: 13.69 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00178/0.9039, allocations: 0.8602 MB / 0.5678 GB, free: 12.78 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.593e-06/0.9039, allocations: 8.031 kB / 0.5678 GB, free: 12.77 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002603/0.9042, allocations: 47.91 kB / 0.5679 GB, free: 12.72 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001014/0.9043, allocations: 28.84 kB / 0.5679 GB, free: 12.69 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.296e-05/0.9044, allocations: 8 kB / 0.5679 GB, free: 12.68 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005096/0.9049, allocations: 0.5445 MB / 0.5684 GB, free: 12.11 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.9049, allocations: 4.094 kB / 0.5684 GB, free: 12.11 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001137/0.9061, allocations: 0.599 MB / 0.569 GB, free: 11.49 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002055/0.9063, allocations: 140.7 kB / 0.5692 GB, free: 11.33 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.231e-05/0.9064, allocations: 15.97 kB / 0.5692 GB, free: 11.32 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003026/0.9067, allocations: 23.97 kB / 0.5692 GB, free: 11.29 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001225/0.9068, allocations: 23.95 kB / 0.5692 GB, free: 11.27 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.576e-05/0.9068, allocations: 11.98 kB / 0.5692 GB, free: 11.26 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003722/0.9072, allocations: 271.2 kB / 0.5695 GB, free: 10.99 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.864e-06/0.9072, allocations: 4 kB / 0.5695 GB, free: 10.99 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.00185/0.9091, allocations: 487.3 kB / 0.57 GB, free: 10.51 MB / 398.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.003035/0.9121, allocations: 1.821 MB / 0.5717 GB, free: 8.738 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000906/0.9131, allocations: 344.2 kB / 0.5721 GB, free: 8.402 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.995e-06/0.9131, allocations: 4.062 kB / 0.5721 GB, free: 8.398 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003228/0.9134, allocations: 147.8 kB / 0.5722 GB, free: 8.254 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001054/0.9145, allocations: 200.9 kB / 0.5724 GB, free: 8.062 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006441/0.9209, allocations: 4.152 MB / 0.5765 GB, free: 3.762 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005686/0.9215, allocations: 0.8152 MB / 0.5773 GB, free: 2.918 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004421/0.922, allocations: 83.3 kB / 0.5773 GB, free: 2.832 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002425/0.9222, allocations: 143.4 kB / 0.5775 GB, free: 2.691 MB / 398.1 MB Notification: Performance of SimCode: time 1.322e-06/0.9222, allocations: 0 / 0.5775 GB, free: 2.691 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04496/0.9672, allocations: 20.77 MB / 0.5978 GB, free: 14.06 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002553/0.9675, allocations: 232.4 kB / 0.598 GB, free: 13.8 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.645/3.613, allocations: 0 / 0.598 GB, free: 13.8 MB / 430.1 MB (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)