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.1023/0.1023, allocations: 15.28 MB / 30.78 MB, free: 4.215 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.001029/0.001029, allocations: 108 kB / 35.78 MB, free: 3.234 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.00128/0.00128, allocations: 197 kB / 40.88 MB, free: 7.223 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.359/1.359, allocations: 222.9 MB / 268.7 MB, free: 6.898 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1443/0.1443, allocations: 23.36 MB / 346.4 MB, free: 0.7344 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002106/0.002106, allocations: 111.8 kB / 418.3 MB, free: 30.34 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09065/0.09277, allocations: 59.37 MB / 477.7 MB, free: 2.914 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.2501/0.3429, allocations: 68.02 MB / 0.5329 GB, free: 10.06 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01276/0.3557, allocations: 15.48 MB / 0.548 GB, free: 8.805 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006409/0.3564, allocations: 12.44 kB / 0.548 GB, free: 8.801 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005915/0.357, allocations: 206 kB / 0.5482 GB, free: 8.723 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004884/0.3619, allocations: 2.218 MB / 0.5504 GB, free: 7.949 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002542/0.3644, allocations: 1.131 MB / 0.5515 GB, free: 7.602 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009111/0.3654, allocations: 1.1 MB / 0.5526 GB, free: 7.156 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003539/0.3657, allocations: 333 kB / 0.5529 GB, free: 6.996 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001685/0.3674, allocations: 1.03 MB / 0.5539 GB, free: 6.391 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003991/0.3678, allocations: 410 kB / 0.5543 GB, free: 6.18 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.246e-05/0.3679, allocations: 39.94 kB / 0.5543 GB, free: 6.141 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003298/0.3712, allocations: 1.57 MB / 0.5559 GB, free: 5.121 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001093/0.3713, allocations: 119.2 kB / 0.556 GB, free: 5.078 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001859/0.3715, allocations: 256.1 kB / 0.5562 GB, free: 4.91 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002484/0.374, allocations: 2.009 MB / 0.5582 GB, free: 3.723 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.374, allocations: 0 / 0.5582 GB, free: 3.723 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.374, allocations: 0 / 0.5582 GB, free: 3.723 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.103e-06/0.374, allocations: 0 / 0.5582 GB, free: 3.723 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.001368/0.3754, allocations: 0.9783 MB / 0.5591 GB, free: 2.848 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.271e-05/0.3755, allocations: 8.031 kB / 0.5592 GB, free: 2.84 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.969e-05/0.3755, allocations: 69.44 kB / 0.5592 GB, free: 2.789 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.886e-05/0.3756, allocations: 48.75 kB / 0.5593 GB, free: 2.742 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003827/0.376, allocations: 373.4 kB / 0.5596 GB, free: 2.43 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.404e-05/0.376, allocations: 23.28 kB / 0.5596 GB, free: 2.418 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.242e-05/0.3761, allocations: 38 kB / 0.5597 GB, free: 2.391 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005814/0.3767, allocations: 400.7 kB / 0.5601 GB, free: 2.152 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.533e-05/0.3767, allocations: 0 / 0.5601 GB, free: 2.152 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.397e-05/0.3767, allocations: 14.62 kB / 0.5601 GB, free: 2.148 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.858e-06/0.3768, allocations: 8 kB / 0.5601 GB, free: 2.141 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005955/0.3774, allocations: 337.3 kB / 0.5604 GB, free: 1.961 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.001904/0.3793, allocations: 2.039 MB / 0.5624 GB, free: 204 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005074/0.3798, allocations: 324.1 kB / 0.5627 GB, free: 20 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003292/0.3801, allocations: 172.1 kB / 0.5629 GB, free: 15.93 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001091/0.3812, allocations: 0.952 MB / 0.5638 GB, free: 15.11 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003447/0.3816, allocations: 191.6 kB / 0.564 GB, free: 14.98 MB / 398.1 MB Notification: Performance of pre-optimization done (n=31): time 1.903e-06/0.3816, allocations: 4 kB / 0.564 GB, free: 14.97 MB / 398.1 MB Notification: Performance of matching and sorting (n=31): time 0.001142/0.3828, allocations: 0.5212 MB / 0.5645 GB, free: 14.48 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.093e-05/0.3828, allocations: 56.53 kB / 0.5646 GB, free: 14.41 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003948/0.3832, allocations: 381.5 kB / 0.5649 GB, free: 14.07 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.263e-05/0.3833, allocations: 37.7 kB / 0.565 GB, free: 14.03 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001416/0.3834, allocations: 219.6 kB / 0.5652 GB, free: 13.82 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.057e-05/0.3835, allocations: 109 kB / 0.5653 GB, free: 13.73 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001229/0.3836, allocations: 78.27 kB / 0.5653 GB, free: 13.66 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001315/0.3838, allocations: 352 kB / 0.5657 GB, free: 13.32 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002911/0.3841, allocations: 136.8 kB / 0.5658 GB, free: 13.2 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003403/0.3844, allocations: 223.5 kB / 0.566 GB, free: 12.98 MB / 398.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.002138/0.3866, allocations: 0.8844 MB / 0.5669 GB, free: 12.16 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.356e-06/0.3866, allocations: 0 / 0.5669 GB, free: 12.16 MB / 398.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0009056/0.3875, allocations: 469.3 kB / 0.5673 GB, free: 11.69 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.753e-05/0.3875, allocations: 8 kB / 0.5673 GB, free: 11.68 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.785e-06/0.3875, allocations: 0 / 0.5673 GB, free: 11.68 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001381/0.3877, allocations: 44.72 kB / 0.5674 GB, free: 11.64 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000352/0.388, allocations: 71.89 kB / 0.5674 GB, free: 11.57 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003818/0.3884, allocations: 0.5602 MB / 0.568 GB, free: 10.98 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000327/0.3888, allocations: 43.62 kB / 0.568 GB, free: 10.94 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.884e-05/0.3888, allocations: 23.92 kB / 0.5681 GB, free: 10.91 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.0001976/0.389, allocations: 166.7 kB / 0.5682 GB, free: 10.74 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.643e-05/0.3891, allocations: 43.56 kB / 0.5683 GB, free: 10.7 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000875/0.39, allocations: 420.8 kB / 0.5687 GB, free: 10.27 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.891e-06/0.39, allocations: 0 / 0.5687 GB, free: 10.27 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.96e-06/0.39, allocations: 4 kB / 0.5687 GB, free: 10.27 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.989e-06/0.39, allocations: 4 kB / 0.5687 GB, free: 10.26 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001336/0.3914, allocations: 0.8587 MB / 0.5695 GB, free: 9.348 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.035e-06/0.3914, allocations: 0 / 0.5695 GB, free: 9.348 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002469/0.3916, allocations: 47.91 kB / 0.5696 GB, free: 9.301 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.068e-05/0.3917, allocations: 36.86 kB / 0.5696 GB, free: 9.262 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.411e-05/0.3918, allocations: 8 kB / 0.5696 GB, free: 9.254 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003239/0.3921, allocations: 0.5484 MB / 0.5701 GB, free: 8.68 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.798e-06/0.3921, allocations: 4.031 kB / 0.5701 GB, free: 8.676 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001003/0.3931, allocations: 0.5943 MB / 0.5707 GB, free: 8.059 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001701/0.3933, allocations: 140.6 kB / 0.5709 GB, free: 7.902 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.573e-05/0.3934, allocations: 8 kB / 0.5709 GB, free: 7.895 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002575/0.3936, allocations: 11.98 kB / 0.5709 GB, free: 7.883 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.441e-05/0.3937, allocations: 35.95 kB / 0.5709 GB, free: 7.848 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.766e-05/0.3938, allocations: 15.98 kB / 0.5709 GB, free: 7.832 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002824/0.3941, allocations: 271.2 kB / 0.5712 GB, free: 7.57 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.3941, allocations: 0 / 0.5712 GB, free: 7.57 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001152/0.3952, allocations: 487.4 kB / 0.5716 GB, free: 7.094 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.002492/0.3977, allocations: 1.819 MB / 0.5734 GB, free: 5.32 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0008041/0.3985, allocations: 355.6 kB / 0.5738 GB, free: 4.973 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.3986, allocations: 0 / 0.5738 GB, free: 4.973 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003366/0.3989, allocations: 152 kB / 0.5739 GB, free: 4.824 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00099/0.3999, allocations: 196.2 kB / 0.5741 GB, free: 4.637 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005237/0.4051, allocations: 4.03 MB / 0.578 GB, free: 468 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003408/0.4055, allocations: 0.8152 MB / 0.5788 GB, free: 15.61 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003031/0.4058, allocations: 75.38 kB / 0.5789 GB, free: 15.54 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001912/0.406, allocations: 147.3 kB / 0.579 GB, free: 15.39 MB / 414.1 MB Notification: Performance of SimCode: time 4.01e-07/0.406, allocations: 0 / 0.579 GB, free: 15.39 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04452/0.4506, allocations: 20.97 MB / 0.5995 GB, free: 10.5 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.28/11.73, allocations: 4.062 kB / 0.5995 GB, free: 10.5 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 & 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)