Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_4element.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_4element,fileNamePrefix="Physiolibrary_Physiolibrary_Fluid_Examples_Windkessel_4element",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Physiolibrary.Fluid.Examples.Windkessel_4element,fileNamePrefix="Physiolibrary_Physiolibrary_Fluid_Examples_Windkessel_4element",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.08936/0.08937, allocations: 15.29 MB / 30.79 MB, free: 4.207 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.001092/0.001092, allocations: 105.2 kB / 35.77 MB, free: 3.227 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.001266/0.001266, allocations: 193.1 kB / 40.88 MB, free: 7.227 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.401/1.401, allocations: 222.9 MB / 268.7 MB, free: 6.883 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1427/0.1427, allocations: 23.35 MB / 346.4 MB, free: 0.7188 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.004337/0.004337, allocations: 115.8 kB / 418.3 MB, free: 30.32 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1188/0.1231, allocations: 59.36 MB / 477.7 MB, free: 2.898 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_4element): time 0.2679/0.3911, allocations: 80.47 MB / 0.5451 GB, free: 8.109 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01781/0.4089, allocations: 22.19 MB / 0.5667 GB, free: 1.871 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007698/0.4097, allocations: 15.94 kB / 0.5668 GB, free: 1.855 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007336/0.4104, allocations: 271.1 kB / 0.567 GB, free: 1.715 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005273/0.4157, allocations: 2.447 MB / 0.5694 GB, free: 272 kB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00503/0.4208, allocations: 2.053 MB / 0.5714 GB, free: 15.1 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001483/0.4223, allocations: 1.37 MB / 0.5727 GB, free: 14.02 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005441/0.4228, allocations: 454.1 kB / 0.5732 GB, free: 13.68 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002057/0.4249, allocations: 1.142 MB / 0.5743 GB, free: 12.82 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006503/0.4256, allocations: 0.5311 MB / 0.5748 GB, free: 12.38 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.197e-05/0.4257, allocations: 52 kB / 0.5749 GB, free: 12.33 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004545/0.4302, allocations: 1.85 MB / 0.5767 GB, free: 10.58 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001907/0.4304, allocations: 159.7 kB / 0.5768 GB, free: 10.43 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003602/0.4308, allocations: 331.6 kB / 0.5771 GB, free: 10.11 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004889/0.4357, allocations: 2.389 MB / 0.5795 GB, free: 7.906 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.1e-06/0.4357, allocations: 4 kB / 0.5795 GB, free: 7.902 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.4357, allocations: 0 / 0.5795 GB, free: 7.902 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.897e-06/0.4357, allocations: 0 / 0.5795 GB, free: 7.902 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 104 * Number of variables: 104 Notification: Performance of Generate backend data structure: time 0.001985/0.4377, allocations: 1.106 MB / 0.5806 GB, free: 6.758 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.605e-05/0.4378, allocations: 8.031 kB / 0.5806 GB, free: 6.75 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.453e-05/0.4379, allocations: 86.47 kB / 0.5806 GB, free: 6.656 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001322/0.438, allocations: 55.34 kB / 0.5807 GB, free: 6.602 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005201/0.4385, allocations: 416 kB / 0.5811 GB, free: 6.16 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.049e-05/0.4386, allocations: 29 kB / 0.5811 GB, free: 6.133 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.649e-05/0.4387, allocations: 44 kB / 0.5812 GB, free: 6.09 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009044/0.4396, allocations: 0.5318 MB / 0.5817 GB, free: 5.531 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.659e-05/0.4396, allocations: 0 / 0.5817 GB, free: 5.531 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.761e-05/0.4397, allocations: 16 kB / 0.5817 GB, free: 5.516 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.379e-05/0.4397, allocations: 15.94 kB / 0.5817 GB, free: 5.5 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009441/0.4406, allocations: 499.7 kB / 0.5822 GB, free: 5.016 MB / 398.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.003059/0.4437, allocations: 2.475 MB / 0.5846 GB, free: 2.312 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007556/0.4445, allocations: 423 kB / 0.585 GB, free: 1.887 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004999/0.445, allocations: 261.1 kB / 0.5853 GB, free: 1.629 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001399/0.4464, allocations: 1.128 MB / 0.5864 GB, free: 420 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000456/0.4469, allocations: 260.9 kB / 0.5866 GB, free: 148 kB / 398.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0001754/0.4471, allocations: 42.55 kB / 0.5866 GB, free: 108 kB / 398.1 MB Notification: Performance of pre-optimization done (n=41): time 1.983e-06/0.4471, allocations: 0 / 0.5866 GB, free: 108 kB / 398.1 MB Notification: Performance of matching and sorting (n=41): time 0.001711/0.4488, allocations: 0.8081 MB / 0.5874 GB, free: 15.25 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.563e-05/0.4488, allocations: 67.27 kB / 0.5875 GB, free: 15.17 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004098/0.4493, allocations: 393.7 kB / 0.5879 GB, free: 14.78 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.607e-05/0.4493, allocations: 29.7 kB / 0.5879 GB, free: 14.75 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001604/0.4495, allocations: 248.1 kB / 0.5881 GB, free: 14.5 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001221/0.4496, allocations: 144.9 kB / 0.5883 GB, free: 14.36 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001553/0.4498, allocations: 98.12 kB / 0.5884 GB, free: 14.26 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001254/0.4499, allocations: 354.7 kB / 0.5887 GB, free: 13.9 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003858/0.4503, allocations: 181 kB / 0.5889 GB, free: 13.73 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004318/0.4507, allocations: 271.4 kB / 0.5891 GB, free: 13.43 MB / 414.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.004292/0.455, allocations: 1.323 MB / 0.5904 GB, free: 12.05 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.587e-06/0.4551, allocations: 4 kB / 0.5904 GB, free: 12.05 MB / 414.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.00118/0.4562, allocations: 0.5909 MB / 0.591 GB, free: 11.45 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.656e-05/0.4563, allocations: 8 kB / 0.591 GB, free: 11.44 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.218e-06/0.4563, allocations: 7.938 kB / 0.591 GB, free: 11.43 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000223/0.4565, allocations: 73.66 kB / 0.5911 GB, free: 11.35 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004402/0.457, allocations: 100 kB / 0.5912 GB, free: 11.25 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006933/0.4577, allocations: 1.12 MB / 0.5923 GB, free: 10.08 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000346/0.458, allocations: 20.14 kB / 0.5923 GB, free: 10.06 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.614e-05/0.4581, allocations: 27.98 kB / 0.5923 GB, free: 10.04 MB / 414.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 (55): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,1), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0002057/0.4583, allocations: 173.7 kB / 0.5925 GB, free: 9.855 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.904e-05/0.4584, allocations: 51.44 kB / 0.5925 GB, free: 9.805 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001173/0.4596, allocations: 0.5915 MB / 0.5931 GB, free: 9.191 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.075e-06/0.4596, allocations: 4 kB / 0.5931 GB, free: 9.188 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/0.4596, allocations: 3.938 kB / 0.5931 GB, free: 9.184 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.943e-06/0.4596, allocations: 4 kB / 0.5931 GB, free: 9.18 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001737/0.4614, allocations: 1.12 MB / 0.5942 GB, free: 8.004 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.539e-06/0.4614, allocations: 3.984 kB / 0.5942 GB, free: 8 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003456/0.4617, allocations: 59.91 kB / 0.5943 GB, free: 7.941 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001759/0.4619, allocations: 81.69 kB / 0.5944 GB, free: 7.855 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.354e-05/0.462, allocations: 8 kB / 0.5944 GB, free: 7.848 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006583/0.4626, allocations: 1.12 MB / 0.5955 GB, free: 6.676 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.4626, allocations: 0 / 0.5955 GB, free: 6.676 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001367/0.464, allocations: 0.8056 MB / 0.5963 GB, free: 5.844 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001769/0.4642, allocations: 156.5 kB / 0.5964 GB, free: 5.672 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.531e-05/0.4643, allocations: 8 kB / 0.5964 GB, free: 5.664 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003205/0.4646, allocations: 19.98 kB / 0.5964 GB, free: 5.645 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.903e-05/0.4647, allocations: 43.91 kB / 0.5965 GB, free: 5.602 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.106e-05/0.4647, allocations: 8 kB / 0.5965 GB, free: 5.594 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002927/0.465, allocations: 287.1 kB / 0.5968 GB, free: 5.312 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4651, allocations: 0 / 0.5968 GB, free: 5.312 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001276/0.4663, allocations: 0.5735 MB / 0.5973 GB, free: 4.738 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (arteries.enthalpy,arteries.substanceMasses[1],inertia.q_in.m_flow) * 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 (38): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 3 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,3), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003145/0.4695, allocations: 2.137 MB / 0.5994 GB, free: 2.598 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001081/0.4706, allocations: 491.3 kB / 0.5999 GB, free: 2.117 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.078e-06/0.4706, allocations: 0 / 0.5999 GB, free: 2.117 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004741/0.4711, allocations: 243.2 kB / 0.6001 GB, free: 1.879 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001125/0.4722, allocations: 233.1 kB / 0.6003 GB, free: 1.656 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006623/0.4788, allocations: 4.733 MB / 0.605 GB, free: 12.77 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003717/0.4792, allocations: 0.847 MB / 0.6058 GB, free: 11.89 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0003928/0.4796, allocations: 112.2 kB / 0.6059 GB, free: 11.78 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002569/0.4799, allocations: 171.4 kB / 0.606 GB, free: 11.61 MB / 430.1 MB Notification: Performance of SimCode: time 3.4e-07/0.4799, allocations: 0 / 0.606 GB, free: 11.61 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04835/0.5283, allocations: 24.73 MB / 0.6302 GB, free: 2.973 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.31/11.84, allocations: 23.48 kB / 0.6302 GB, free: 2.953 MB / 446.1 MB (rm -f Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_4element.pipe ; mkfifo Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_4element.pipe ; head -c 1048576 < Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_4element.pipe >> ../files/Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_4element.sim & python3 -m fmpy simulate --output-file Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_4element_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_4element.fmu > Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_4element.pipe 2>&1)