Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_3element.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_3element,fileNamePrefix="Physiolibrary_Physiolibrary_Fluid_Examples_Windkessel_3element",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Physiolibrary.Fluid.Examples.Windkessel_3element,fileNamePrefix="Physiolibrary_Physiolibrary_Fluid_Examples_Windkessel_3element",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.08646/0.08646, allocations: 15.28 MB / 30.86 MB, free: 4.164 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.0009675/0.0009675, allocations: 115.9 kB / 35.87 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.001146/0.001146, allocations: 193.1 kB / 40.97 MB, free: 7.16 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.321/1.321, allocations: 222.9 MB / 268.8 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.137/0.137, allocations: 23.35 MB / 346.5 MB, free: 0.6758 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001851/0.001851, allocations: 115.8 kB / 418.5 MB, free: 30.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1042/0.1061, allocations: 59.36 MB / 477.8 MB, free: 2.801 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_3element): time 0.2746/0.3807, allocations: 74.06 MB / 0.539 GB, free: 8.73 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0157/0.3965, allocations: 18.84 MB / 0.5574 GB, free: 4.887 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007435/0.3972, allocations: 19.94 kB / 0.5574 GB, free: 4.867 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006878/0.3979, allocations: 239.5 kB / 0.5576 GB, free: 4.75 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005571/0.4035, allocations: 2.337 MB / 0.5599 GB, free: 3.359 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004366/0.4079, allocations: 1.586 MB / 0.5614 GB, free: 2.473 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001594/0.4095, allocations: 1.215 MB / 0.5626 GB, free: 1.684 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004176/0.41, allocations: 362.3 kB / 0.563 GB, free: 1.512 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00235/0.4123, allocations: 1.069 MB / 0.564 GB, free: 0.8438 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007367/0.4131, allocations: 459.7 kB / 0.5645 GB, free: 0.5703 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.117e-05/0.4131, allocations: 44 kB / 0.5645 GB, free: 0.5273 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004695/0.4178, allocations: 1.716 MB / 0.5662 GB, free: 15.45 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001755/0.418, allocations: 126.7 kB / 0.5663 GB, free: 15.41 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003082/0.4184, allocations: 289.2 kB / 0.5666 GB, free: 15.22 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004572/0.4229, allocations: 2.179 MB / 0.5687 GB, free: 13.94 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.423, allocations: 0 / 0.5687 GB, free: 13.94 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.423, allocations: 4 kB / 0.5687 GB, free: 13.93 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.085e-06/0.423, allocations: 0 / 0.5687 GB, free: 13.93 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: 91 * Number of variables: 91 Notification: Performance of Generate backend data structure: time 0.001773/0.4248, allocations: 1.032 MB / 0.5697 GB, free: 12.95 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.935e-05/0.4248, allocations: 8.031 kB / 0.5697 GB, free: 12.94 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.14e-05/0.4249, allocations: 72.92 kB / 0.5698 GB, free: 12.87 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001124/0.425, allocations: 59.31 kB / 0.5698 GB, free: 12.81 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000521/0.4256, allocations: 406.9 kB / 0.5702 GB, free: 12.43 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.735e-05/0.4256, allocations: 29 kB / 0.5703 GB, free: 12.4 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.005e-05/0.4257, allocations: 40 kB / 0.5703 GB, free: 12.36 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007178/0.4264, allocations: 455.1 kB / 0.5707 GB, free: 11.97 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.618e-05/0.4264, allocations: 0 / 0.5707 GB, free: 11.97 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.888e-05/0.4265, allocations: 18.72 kB / 0.5707 GB, free: 11.95 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.042e-05/0.4265, allocations: 11.94 kB / 0.5708 GB, free: 11.94 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007007/0.4272, allocations: 384 kB / 0.5711 GB, free: 11.57 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.00257/0.4298, allocations: 2.186 MB / 0.5733 GB, free: 9.172 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005865/0.4304, allocations: 359.6 kB / 0.5736 GB, free: 8.812 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002979/0.4307, allocations: 173.7 kB / 0.5738 GB, free: 8.641 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001129/0.4318, allocations: 1.003 MB / 0.5747 GB, free: 7.547 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003874/0.4322, allocations: 214.3 kB / 0.575 GB, free: 7.328 MB / 398.1 MB Notification: Performance of pre-optimization done (n=35): time 2.034e-06/0.4322, allocations: 0 / 0.575 GB, free: 7.328 MB / 398.1 MB Notification: Performance of matching and sorting (n=35): time 0.001481/0.4337, allocations: 0.7166 MB / 0.5757 GB, free: 6.562 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.815e-05/0.4338, allocations: 55.41 kB / 0.5757 GB, free: 6.496 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003987/0.4342, allocations: 397.5 kB / 0.5761 GB, free: 6.102 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.605e-05/0.4342, allocations: 41.7 kB / 0.5761 GB, free: 6.055 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001446/0.4344, allocations: 230.7 kB / 0.5763 GB, free: 5.824 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.712e-05/0.4345, allocations: 117.4 kB / 0.5765 GB, free: 5.711 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000131/0.4346, allocations: 86.03 kB / 0.5765 GB, free: 5.621 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001228/0.4347, allocations: 358.7 kB / 0.5769 GB, free: 5.262 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002899/0.435, allocations: 144.7 kB / 0.577 GB, free: 5.121 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003484/0.4354, allocations: 237.7 kB / 0.5772 GB, free: 4.855 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.002173/0.4376, allocations: 0.9595 MB / 0.5782 GB, free: 3.844 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/0.4376, allocations: 4 kB / 0.5782 GB, free: 3.84 MB / 398.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.0009746/0.4386, allocations: 0.5102 MB / 0.5787 GB, free: 3.316 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.029e-05/0.4386, allocations: 10.66 kB / 0.5787 GB, free: 3.309 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.059e-05/0.4386, allocations: 3.938 kB / 0.5787 GB, free: 3.305 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002286/0.4389, allocations: 73.67 kB / 0.5788 GB, free: 3.227 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003593/0.4392, allocations: 87.89 kB / 0.5789 GB, free: 3.141 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007138/0.44, allocations: 1.12 MB / 0.5799 GB, free: 1.969 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003645/0.4403, allocations: 47.52 kB / 0.58 GB, free: 1.922 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.288e-05/0.4404, allocations: 20 kB / 0.58 GB, free: 1.902 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 (48): * 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: 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.0002377/0.4406, allocations: 169.9 kB / 0.5802 GB, free: 1.727 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.757e-05/0.4407, allocations: 43.52 kB / 0.5802 GB, free: 1.684 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009611/0.4417, allocations: 484.9 kB / 0.5807 GB, free: 1.191 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.287e-06/0.4417, allocations: 4 kB / 0.5807 GB, free: 1.188 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.881e-06/0.4417, allocations: 0 / 0.5807 GB, free: 1.188 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.182e-06/0.4417, allocations: 0 / 0.5807 GB, free: 1.188 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001581/0.4433, allocations: 0.9749 MB / 0.5816 GB, free: 156 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.169e-06/0.4433, allocations: 3.984 kB / 0.5816 GB, free: 152 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002394/0.4436, allocations: 43.91 kB / 0.5817 GB, free: 108 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001965/0.4438, allocations: 73.67 kB / 0.5817 GB, free: 28 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.663e-05/0.4438, allocations: 8 kB / 0.5818 GB, free: 20 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000707/0.4445, allocations: 1.113 MB / 0.5828 GB, free: 14.86 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/0.4445, allocations: 0 / 0.5828 GB, free: 14.86 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001105/0.4456, allocations: 0.6824 MB / 0.5835 GB, free: 14.15 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001787/0.4458, allocations: 160.4 kB / 0.5837 GB, free: 13.97 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.212e-05/0.4459, allocations: 7.938 kB / 0.5837 GB, free: 13.96 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002717/0.4462, allocations: 19.98 kB / 0.5837 GB, free: 13.95 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.031e-05/0.4463, allocations: 28.03 kB / 0.5837 GB, free: 13.92 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.063e-05/0.4463, allocations: 11.98 kB / 0.5837 GB, free: 13.91 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003611/0.4467, allocations: 287.1 kB / 0.584 GB, free: 13.62 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.4467, allocations: 0 / 0.584 GB, free: 13.62 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001997/0.4487, allocations: 0.5227 MB / 0.5845 GB, free: 13.1 MB / 414.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 (29): * 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: 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.002972/0.4517, allocations: 1.952 MB / 0.5864 GB, free: 11.2 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.000938/0.4526, allocations: 393.4 kB / 0.5868 GB, free: 10.81 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.4527, allocations: 0 / 0.5868 GB, free: 10.81 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003774/0.453, allocations: 182.9 kB / 0.587 GB, free: 10.64 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009683/0.454, allocations: 201.4 kB / 0.5872 GB, free: 10.44 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00579/0.4598, allocations: 4.282 MB / 0.5913 GB, free: 6 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003445/0.4602, allocations: 0.8235 MB / 0.5921 GB, free: 5.148 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003124/0.4605, allocations: 88.09 kB / 0.5922 GB, free: 5.062 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002068/0.4607, allocations: 155.3 kB / 0.5924 GB, free: 4.91 MB / 414.1 MB Notification: Performance of SimCode: time 4.51e-07/0.4607, allocations: 4 kB / 0.5924 GB, free: 4.906 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04406/0.5048, allocations: 22.85 MB / 0.6147 GB, free: 14.17 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.74/12.24, allocations: 7.844 kB / 0.6147 GB, free: 14.16 MB / 446.1 MB (rm -f Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_3element.pipe ; mkfifo Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_3element.pipe ; head -c 1048576 < Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_3element.pipe >> ../files/Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_3element.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Physiolibrary_Physiolibrary_Fluid_Examples_Windkessel_3element_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Physiolibrary_Physiolibrary_Fluid_Examples_Windkessel_3element.fmu > Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_3element.pipe 2>&1)