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.09433/0.09433, allocations: 15.28 MB / 30.91 MB, free: 4.262 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.001539/0.001539, allocations: 105.2 kB / 35.91 MB, free: 3.168 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.001319/0.001319, allocations: 193.1 kB / 41.02 MB, free: 7.176 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.883 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1505/0.1505, allocations: 23.35 MB / 346.6 MB, free: 0.6797 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002174/0.002174, allocations: 111.8 kB / 478.3 MB, free: 2.332 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3621/0.3642, allocations: 59.36 MB / 0.5251 GB, free: 7.797 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_4element): time 0.08759/0.4519, allocations: 80.48 MB / 0.6037 GB, free: 4.016 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.02521/0.4771, allocations: 22.18 MB / 0.6254 GB, free: 13.75 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009824/0.4781, allocations: 19.94 kB / 0.6254 GB, free: 13.73 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001083/0.4792, allocations: 262.1 kB / 0.6256 GB, free: 13.47 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007434/0.4867, allocations: 2.446 MB / 0.628 GB, free: 11.01 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005806/0.4925, allocations: 2.055 MB / 0.63 GB, free: 8.945 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.001816/0.4944, allocations: 1.368 MB / 0.6314 GB, free: 7.57 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007782/0.4952, allocations: 460.7 kB / 0.6318 GB, free: 7.117 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003765/0.499, allocations: 1.143 MB / 0.6329 GB, free: 5.969 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001455/0.5005, allocations: 0.537 MB / 0.6334 GB, free: 5.43 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002399/0.5007, allocations: 52 kB / 0.6335 GB, free: 5.379 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005676/0.5064, allocations: 1.852 MB / 0.6353 GB, free: 3.523 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002737/0.5067, allocations: 159.5 kB / 0.6355 GB, free: 3.367 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005443/0.5073, allocations: 326.6 kB / 0.6358 GB, free: 3.047 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006236/0.5135, allocations: 2.399 MB / 0.6381 GB, free: 0.6406 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.355e-06/0.5135, allocations: 3.984 kB / 0.6381 GB, free: 0.6367 MB / 478.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.5135, allocations: 0 / 0.6381 GB, free: 0.6367 MB / 478.1 MB Notification: Performance of Transformations before backend: time 3.158e-05/0.5136, allocations: 0 / 0.6381 GB, free: 0.6367 MB / 478.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.00276/0.5164, allocations: 1.111 MB / 0.6392 GB, free: 15.47 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.904e-05/0.5164, allocations: 8.031 kB / 0.6392 GB, free: 15.46 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001424/0.5166, allocations: 86.52 kB / 0.6393 GB, free: 15.37 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001742/0.5167, allocations: 59.34 kB / 0.6393 GB, free: 15.31 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007194/0.5175, allocations: 430.2 kB / 0.6398 GB, free: 14.86 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.813e-05/0.5175, allocations: 37 kB / 0.6398 GB, free: 14.82 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.185e-05/0.5176, allocations: 44 kB / 0.6398 GB, free: 14.78 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009562/0.5186, allocations: 0.524 MB / 0.6403 GB, free: 14.23 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.037e-05/0.5186, allocations: 7.938 kB / 0.6404 GB, free: 14.22 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.544e-05/0.5187, allocations: 16 kB / 0.6404 GB, free: 14.21 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.871e-05/0.5187, allocations: 15.98 kB / 0.6404 GB, free: 14.19 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009649/0.5197, allocations: 499.7 kB / 0.6409 GB, free: 13.7 MB / 494.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.003375/0.5231, allocations: 2.455 MB / 0.6433 GB, free: 11 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007595/0.5238, allocations: 427.1 kB / 0.6437 GB, free: 10.57 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004791/0.5243, allocations: 256.7 kB / 0.6439 GB, free: 10.32 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001482/0.5258, allocations: 1.118 MB / 0.645 GB, free: 9.098 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004534/0.5263, allocations: 253.1 kB / 0.6452 GB, free: 8.836 MB / 494.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0001972/0.5265, allocations: 43.59 kB / 0.6453 GB, free: 8.793 MB / 494.1 MB Notification: Performance of pre-optimization done (n=41): time 2.645e-06/0.5265, allocations: 0 / 0.6453 GB, free: 8.793 MB / 494.1 MB Notification: Performance of matching and sorting (n=41): time 0.001637/0.5281, allocations: 0.8195 MB / 0.6461 GB, free: 7.926 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.69e-05/0.5282, allocations: 55.73 kB / 0.6461 GB, free: 7.859 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004555/0.5287, allocations: 397.7 kB / 0.6465 GB, free: 7.465 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 3.681e-05/0.5287, allocations: 33.7 kB / 0.6465 GB, free: 7.426 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000172/0.5289, allocations: 252 kB / 0.6468 GB, free: 7.172 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001135/0.529, allocations: 138.1 kB / 0.6469 GB, free: 7.035 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001479/0.5292, allocations: 98.12 kB / 0.647 GB, free: 6.934 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001279/0.5293, allocations: 354.8 kB / 0.6474 GB, free: 6.578 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003594/0.5297, allocations: 181 kB / 0.6475 GB, free: 6.402 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004113/0.5301, allocations: 279.3 kB / 0.6478 GB, free: 6.094 MB / 494.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.004112/0.5342, allocations: 1.309 MB / 0.6491 GB, free: 4.738 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.402e-06/0.5342, allocations: 7.938 kB / 0.6491 GB, free: 4.73 MB / 494.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001302/0.5355, allocations: 0.5945 MB / 0.6497 GB, free: 4.121 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.794e-05/0.5356, allocations: 8 kB / 0.6497 GB, free: 4.113 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.191e-05/0.5356, allocations: 4.25 kB / 0.6497 GB, free: 4.109 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000264/0.5359, allocations: 89.59 kB / 0.6498 GB, free: 4.016 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004634/0.5363, allocations: 95.88 kB / 0.6498 GB, free: 3.922 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008352/0.5372, allocations: 1.12 MB / 0.6509 GB, free: 2.75 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004145/0.5376, allocations: 19.98 kB / 0.651 GB, free: 2.73 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.07e-05/0.5377, allocations: 23.98 kB / 0.651 GB, free: 2.707 MB / 494.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.0002719/0.538, allocations: 173.7 kB / 0.6511 GB, free: 2.527 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001183/0.5381, allocations: 51.56 kB / 0.6512 GB, free: 2.477 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001158/0.5393, allocations: 0.5915 MB / 0.6518 GB, free: 1.867 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.899e-06/0.5393, allocations: 4 kB / 0.6518 GB, free: 1.863 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.502e-06/0.5393, allocations: 0 / 0.6518 GB, free: 1.863 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.867e-06/0.5393, allocations: 3.984 kB / 0.6518 GB, free: 1.859 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002058/0.5414, allocations: 1.114 MB / 0.6529 GB, free: 0.6797 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.688e-06/0.5414, allocations: 8.031 kB / 0.6529 GB, free: 0.6719 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003488/0.5418, allocations: 67.89 kB / 0.6529 GB, free: 0.6055 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001946/0.542, allocations: 73.7 kB / 0.653 GB, free: 0.5273 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.794e-05/0.542, allocations: 19.92 kB / 0.653 GB, free: 0.5078 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006908/0.5427, allocations: 1.112 MB / 0.6541 GB, free: 15.34 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.5427, allocations: 0 / 0.6541 GB, free: 15.34 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00138/0.5441, allocations: 0.8031 MB / 0.6549 GB, free: 14.51 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002416/0.5444, allocations: 160.5 kB / 0.6551 GB, free: 14.34 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.858e-05/0.5445, allocations: 15.98 kB / 0.6551 GB, free: 14.32 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003323/0.5448, allocations: 19.92 kB / 0.6551 GB, free: 14.3 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.437e-05/0.5449, allocations: 35.95 kB / 0.6551 GB, free: 14.27 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.717e-05/0.5449, allocations: 15.98 kB / 0.6551 GB, free: 14.25 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0003195/0.5453, allocations: 287.1 kB / 0.6554 GB, free: 13.97 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.4e-07/0.5453, allocations: 0 / 0.6554 GB, free: 13.97 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.001474/0.5468, allocations: 0.5774 MB / 0.656 GB, free: 13.39 MB / 0.4981 GB 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.003545/0.5503, allocations: 2.131 MB / 0.6581 GB, free: 11.22 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.001056/0.5514, allocations: 463 kB / 0.6585 GB, free: 10.77 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 5.791e-06/0.5514, allocations: 0 / 0.6585 GB, free: 10.77 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0004739/0.5519, allocations: 247.5 kB / 0.6587 GB, free: 10.53 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001101/0.553, allocations: 225.7 kB / 0.6589 GB, free: 10.32 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006591/0.5596, allocations: 4.682 MB / 0.6635 GB, free: 5.461 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003629/0.56, allocations: 0.8431 MB / 0.6643 GB, free: 4.59 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0003684/0.5604, allocations: 108.2 kB / 0.6644 GB, free: 4.48 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00025/0.5606, allocations: 175.4 kB / 0.6646 GB, free: 4.309 MB / 0.4981 GB Notification: Performance of SimCode: time 4.51e-07/0.5606, allocations: 0 / 0.6646 GB, free: 4.309 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05211/0.6128, allocations: 25.21 MB / 0.6892 GB, free: 11.21 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.06/12.67, allocations: 11.44 kB / 0.6892 GB, free: 11.21 MB / 0.5294 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Physiolibrary_Physiolibrary_Fluid_Examples_Windkessel_4element_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Physiolibrary_Physiolibrary_Fluid_Examples_Windkessel_4element.fmu > Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_4element.pipe 2>&1)