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.08635/0.08635, allocations: 15.28 MB / 30.91 MB, free: 4.148 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.001076/0.001076, allocations: 107.2 kB / 35.92 MB, free: 3.199 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.001353/0.001353, allocations: 194.1 kB / 41.02 MB, free: 7.137 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.421/1.421, allocations: 222.9 MB / 268.9 MB, free: 6.91 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1501/0.1501, allocations: 23.36 MB / 346.6 MB, free: 0.6367 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.004052/0.004052, allocations: 119.8 kB / 478.4 MB, free: 2.305 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3582/0.3622, allocations: 59.36 MB / 0.5251 GB, free: 7.793 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.08767/0.45, allocations: 68.1 MB / 0.5916 GB, free: 444 kB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.01779/0.4678, allocations: 15.48 MB / 0.6067 GB, free: 0.8984 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007359/0.4685, allocations: 15.94 kB / 0.6068 GB, free: 0.8828 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007373/0.4693, allocations: 206.5 kB / 0.6069 GB, free: 0.6797 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006378/0.4757, allocations: 2.251 MB / 0.6091 GB, free: 14.41 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00323/0.479, allocations: 1.142 MB / 0.6103 GB, free: 13.26 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.001326/0.4803, allocations: 1.106 MB / 0.6113 GB, free: 12.15 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004461/0.4808, allocations: 330.4 kB / 0.6117 GB, free: 11.82 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002214/0.483, allocations: 1.034 MB / 0.6127 GB, free: 10.78 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005079/0.4835, allocations: 402.4 kB / 0.6131 GB, free: 10.39 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 5.594e-05/0.4836, allocations: 36 kB / 0.6131 GB, free: 10.35 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004215/0.4878, allocations: 1.575 MB / 0.6146 GB, free: 8.773 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001434/0.4879, allocations: 111.6 kB / 0.6147 GB, free: 8.664 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002788/0.4882, allocations: 266.8 kB / 0.615 GB, free: 8.402 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00386/0.4921, allocations: 2.02 MB / 0.617 GB, free: 6.375 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.4921, allocations: 0 / 0.617 GB, free: 6.375 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.4921, allocations: 0 / 0.617 GB, free: 6.375 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.351e-05/0.4922, allocations: 4 kB / 0.617 GB, free: 6.371 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.001703/0.4939, allocations: 1 MB / 0.6179 GB, free: 5.32 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.271e-05/0.4939, allocations: 12.03 kB / 0.6179 GB, free: 5.309 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.829e-05/0.494, allocations: 74.47 kB / 0.618 GB, free: 5.227 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001036/0.4941, allocations: 51.66 kB / 0.6181 GB, free: 5.176 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005188/0.4946, allocations: 390.1 kB / 0.6184 GB, free: 4.754 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.463e-05/0.4947, allocations: 24.66 kB / 0.6185 GB, free: 4.73 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.733e-05/0.4948, allocations: 32 kB / 0.6185 GB, free: 4.699 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006747/0.4955, allocations: 399.5 kB / 0.6189 GB, free: 4.289 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.683e-05/0.4955, allocations: 0 / 0.6189 GB, free: 4.289 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.455e-05/0.4956, allocations: 16 kB / 0.6189 GB, free: 4.273 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.37e-05/0.4956, allocations: 19.92 kB / 0.6189 GB, free: 4.254 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006468/0.4963, allocations: 330.4 kB / 0.6192 GB, free: 3.93 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.002467/0.4988, allocations: 2.05 MB / 0.6212 GB, free: 1.664 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006145/0.4994, allocations: 318.5 kB / 0.6215 GB, free: 1.344 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002894/0.4997, allocations: 160.8 kB / 0.6217 GB, free: 1.184 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001152/0.5008, allocations: 0.9542 MB / 0.6226 GB, free: 132 kB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004328/0.5013, allocations: 183.3 kB / 0.6228 GB, free: 15.93 MB / 478.1 MB Notification: Performance of pre-optimization done (n=31): time 1.873e-06/0.5013, allocations: 0 / 0.6228 GB, free: 15.93 MB / 478.1 MB Notification: Performance of matching and sorting (n=31): time 0.001185/0.5025, allocations: 0.5467 MB / 0.6233 GB, free: 15.36 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.756e-05/0.5025, allocations: 55.41 kB / 0.6234 GB, free: 15.29 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000429/0.503, allocations: 381.6 kB / 0.6237 GB, free: 14.91 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 3.013e-05/0.503, allocations: 29.7 kB / 0.6238 GB, free: 14.88 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001482/0.5032, allocations: 228.3 kB / 0.624 GB, free: 14.65 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.088e-05/0.5033, allocations: 107.1 kB / 0.6241 GB, free: 14.55 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001248/0.5034, allocations: 90.06 kB / 0.6242 GB, free: 14.45 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001213/0.5035, allocations: 346.8 kB / 0.6245 GB, free: 14.11 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003321/0.5039, allocations: 128.8 kB / 0.6246 GB, free: 13.98 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003403/0.5042, allocations: 225.7 kB / 0.6248 GB, free: 13.73 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.002183/0.5064, allocations: 0.8785 MB / 0.6257 GB, free: 12.8 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.5064, allocations: 0 / 0.6257 GB, free: 12.8 MB / 478.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0009214/0.5073, allocations: 474 kB / 0.6262 GB, free: 12.32 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.597e-05/0.5074, allocations: 4 kB / 0.6262 GB, free: 12.32 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.047e-06/0.5074, allocations: 4 kB / 0.6262 GB, free: 12.32 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001319/0.5075, allocations: 37.16 kB / 0.6262 GB, free: 12.28 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003535/0.5079, allocations: 75.89 kB / 0.6263 GB, free: 12.2 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004393/0.5083, allocations: 0.5523 MB / 0.6268 GB, free: 11.62 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003067/0.5087, allocations: 51.59 kB / 0.6269 GB, free: 11.57 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.459e-05/0.5087, allocations: 16 kB / 0.6269 GB, free: 11.56 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.0002315/0.5089, allocations: 166.8 kB / 0.627 GB, free: 11.39 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.937e-05/0.509, allocations: 39.77 kB / 0.6271 GB, free: 11.35 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009635/0.51, allocations: 428.6 kB / 0.6275 GB, free: 10.91 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.075e-05/0.51, allocations: 7.938 kB / 0.6275 GB, free: 10.9 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/0.51, allocations: 0 / 0.6275 GB, free: 10.9 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.584e-06/0.51, allocations: 3.984 kB / 0.6275 GB, free: 10.89 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001405/0.5114, allocations: 0.8632 MB / 0.6283 GB, free: 9.969 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.5115, allocations: 8.031 kB / 0.6283 GB, free: 9.961 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002749/0.5117, allocations: 47.91 kB / 0.6284 GB, free: 9.914 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.011e-05/0.5118, allocations: 28.84 kB / 0.6284 GB, free: 9.883 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.41e-05/0.5119, allocations: 11.98 kB / 0.6284 GB, free: 9.871 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003335/0.5122, allocations: 0.5445 MB / 0.629 GB, free: 9.301 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.905e-06/0.5122, allocations: 3.938 kB / 0.629 GB, free: 9.297 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00105/0.5133, allocations: 0.5879 MB / 0.6295 GB, free: 8.688 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001838/0.5135, allocations: 140.8 kB / 0.6297 GB, free: 8.531 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.776e-05/0.5136, allocations: 19.88 kB / 0.6297 GB, free: 8.512 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002583/0.5138, allocations: 20.05 kB / 0.6297 GB, free: 8.492 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.779e-05/0.5139, allocations: 19.97 kB / 0.6297 GB, free: 8.473 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.237e-05/0.5139, allocations: 12 kB / 0.6297 GB, free: 8.461 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0002825/0.5142, allocations: 279.1 kB / 0.63 GB, free: 8.195 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.5142, allocations: 0 / 0.63 GB, free: 8.195 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.001267/0.5155, allocations: 498.3 kB / 0.6305 GB, free: 7.707 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.00271/0.5182, allocations: 1.825 MB / 0.6323 GB, free: 5.848 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.0008295/0.5191, allocations: 339.4 kB / 0.6326 GB, free: 5.516 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/0.5191, allocations: 0 / 0.6326 GB, free: 5.516 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003473/0.5194, allocations: 160.5 kB / 0.6327 GB, free: 5.359 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001007/0.5205, allocations: 192.7 kB / 0.6329 GB, free: 5.172 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005681/0.5262, allocations: 4 MB / 0.6368 GB, free: 1.004 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000504/0.5267, allocations: 0.8152 MB / 0.6376 GB, free: 164 kB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0003015/0.527, allocations: 83.3 kB / 0.6377 GB, free: 80 kB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002248/0.5272, allocations: 147.3 kB / 0.6378 GB, free: 15.93 MB / 494.1 MB Notification: Performance of SimCode: time 2.7e-07/0.5272, allocations: 4 kB / 0.6378 GB, free: 15.93 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06089/0.5881, allocations: 21.12 MB / 0.6585 GB, free: 10.92 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.16/12.75, allocations: 11.8 kB / 0.6585 GB, free: 10.91 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 & python3 -m fmpy simulate --output-file Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_2element_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Physiolibrary_Physiolibrary_Fluid_Examples_Windkessel_2element.fmu > Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_2element.pipe 2>&1)