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.1074/0.1074, allocations: 15.28 MB / 30.91 MB, free: 4.137 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.001161/0.00116, allocations: 106.7 kB / 35.91 MB, free: 3.188 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.001533/0.001533, allocations: 193.1 kB / 41.02 MB, free: 7.121 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.914 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1339/0.1339, allocations: 23.35 MB / 346.6 MB, free: 0.6289 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002026/0.002026, allocations: 111.8 kB / 478.3 MB, free: 2.285 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3599/0.3619, allocations: 59.36 MB / 0.5251 GB, free: 7.766 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.08286/0.4448, allocations: 68.07 MB / 0.5916 GB, free: 436 kB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.01885/0.4637, allocations: 15.48 MB / 0.6067 GB, free: 0.8867 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001058/0.4648, allocations: 11.94 kB / 0.6067 GB, free: 0.875 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001114/0.4659, allocations: 202.5 kB / 0.6069 GB, free: 0.6758 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00847/0.4744, allocations: 2.259 MB / 0.6091 GB, free: 14.4 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004352/0.4788, allocations: 1.142 MB / 0.6102 GB, free: 13.25 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.002126/0.481, allocations: 1.098 MB / 0.6113 GB, free: 12.15 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008065/0.4818, allocations: 330.4 kB / 0.6116 GB, free: 11.82 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003308/0.4851, allocations: 1.038 MB / 0.6126 GB, free: 10.77 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009697/0.4861, allocations: 406.4 kB / 0.613 GB, free: 10.38 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001362/0.4863, allocations: 40 kB / 0.613 GB, free: 10.34 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005317/0.4916, allocations: 1.571 MB / 0.6146 GB, free: 8.762 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002567/0.4919, allocations: 119.6 kB / 0.6147 GB, free: 8.645 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005016/0.4924, allocations: 254.8 kB / 0.6149 GB, free: 8.395 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005315/0.4977, allocations: 2.021 MB / 0.6169 GB, free: 6.367 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.551e-06/0.4978, allocations: 0 / 0.6169 GB, free: 6.367 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.4978, allocations: 0 / 0.6169 GB, free: 6.367 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.678e-05/0.4978, allocations: 4 kB / 0.6169 GB, free: 6.363 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.002023/0.4998, allocations: 0.9669 MB / 0.6179 GB, free: 5.348 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.21e-05/0.4999, allocations: 15.97 kB / 0.6179 GB, free: 5.332 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001079/0.5, allocations: 70.47 kB / 0.6179 GB, free: 5.254 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001467/0.5002, allocations: 51.38 kB / 0.618 GB, free: 5.203 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006488/0.5008, allocations: 385.9 kB / 0.6184 GB, free: 4.785 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.389e-05/0.5009, allocations: 24.66 kB / 0.6184 GB, free: 4.762 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.041e-05/0.501, allocations: 32 kB / 0.6184 GB, free: 4.73 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007117/0.5017, allocations: 403.5 kB / 0.6188 GB, free: 4.316 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.89e-05/0.5017, allocations: 0 / 0.6188 GB, free: 4.316 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.461e-05/0.5017, allocations: 12 kB / 0.6188 GB, free: 4.305 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.461e-05/0.5018, allocations: 11.94 kB / 0.6188 GB, free: 4.293 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006726/0.5024, allocations: 338.4 kB / 0.6191 GB, free: 3.961 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.002574/0.505, allocations: 2.054 MB / 0.6212 GB, free: 1.691 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005872/0.5056, allocations: 314.5 kB / 0.6215 GB, free: 1.375 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002818/0.5059, allocations: 160.8 kB / 0.6216 GB, free: 1.215 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001223/0.5072, allocations: 0.9541 MB / 0.6225 GB, free: 164 kB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003813/0.5076, allocations: 191.3 kB / 0.6227 GB, free: 15.96 MB / 478.1 MB Notification: Performance of pre-optimization done (n=31): time 2.354e-06/0.5076, allocations: 0 / 0.6227 GB, free: 15.96 MB / 478.1 MB Notification: Performance of matching and sorting (n=31): time 0.001189/0.5088, allocations: 0.5387 MB / 0.6232 GB, free: 15.39 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.168e-05/0.5088, allocations: 59.41 kB / 0.6233 GB, free: 15.32 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004489/0.5093, allocations: 377.6 kB / 0.6237 GB, free: 14.95 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 3.139e-05/0.5093, allocations: 29.7 kB / 0.6237 GB, free: 14.91 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001613/0.5095, allocations: 228 kB / 0.6239 GB, free: 14.68 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.688e-05/0.5096, allocations: 102.5 kB / 0.624 GB, free: 14.58 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001276/0.5097, allocations: 78.12 kB / 0.6241 GB, free: 14.5 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001275/0.5099, allocations: 350.8 kB / 0.6244 GB, free: 14.15 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002862/0.5102, allocations: 136.8 kB / 0.6245 GB, free: 14.02 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003357/0.5105, allocations: 221.7 kB / 0.6248 GB, free: 13.77 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.002048/0.5126, allocations: 0.8785 MB / 0.6256 GB, free: 12.84 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.61e-06/0.5126, allocations: 4 kB / 0.6256 GB, free: 12.83 MB / 478.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0009035/0.5135, allocations: 465.8 kB / 0.6261 GB, free: 12.37 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.857e-05/0.5135, allocations: 7.984 kB / 0.6261 GB, free: 12.36 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.939e-06/0.5135, allocations: 4 kB / 0.6261 GB, free: 12.36 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001338/0.5137, allocations: 32.84 kB / 0.6261 GB, free: 12.32 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003419/0.514, allocations: 79.89 kB / 0.6262 GB, free: 12.24 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003632/0.5144, allocations: 0.5448 MB / 0.6267 GB, free: 11.67 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003367/0.5147, allocations: 51.52 kB / 0.6268 GB, free: 11.62 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.069e-05/0.5148, allocations: 19.98 kB / 0.6268 GB, free: 11.6 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.0001957/0.515, allocations: 170.6 kB / 0.6269 GB, free: 11.43 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.087e-05/0.5151, allocations: 39.62 kB / 0.627 GB, free: 11.39 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008606/0.516, allocations: 412.7 kB / 0.6274 GB, free: 10.96 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.343e-05/0.516, allocations: 11.94 kB / 0.6274 GB, free: 10.95 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/0.516, allocations: 0 / 0.6274 GB, free: 10.95 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/0.516, allocations: 4 kB / 0.6274 GB, free: 10.95 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001324/0.5173, allocations: 0.8709 MB / 0.6282 GB, free: 10.01 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.556e-06/0.5174, allocations: 0 / 0.6282 GB, free: 10.01 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002326/0.5176, allocations: 43.91 kB / 0.6283 GB, free: 9.969 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001001/0.5177, allocations: 40.86 kB / 0.6283 GB, free: 9.926 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.792e-05/0.5178, allocations: 8 kB / 0.6283 GB, free: 9.918 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003101/0.5181, allocations: 0.5329 MB / 0.6289 GB, free: 9.359 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.158e-06/0.5181, allocations: 7.922 kB / 0.6289 GB, free: 9.352 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009661/0.5191, allocations: 0.5877 MB / 0.6294 GB, free: 8.742 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001669/0.5192, allocations: 148.5 kB / 0.6296 GB, free: 8.578 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.46e-05/0.5193, allocations: 7.938 kB / 0.6296 GB, free: 8.57 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002566/0.5196, allocations: 19.98 kB / 0.6296 GB, free: 8.551 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.159e-05/0.5196, allocations: 23.97 kB / 0.6296 GB, free: 8.527 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.727e-05/0.5197, allocations: 12.05 kB / 0.6296 GB, free: 8.516 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0002859/0.52, allocations: 275.2 kB / 0.6299 GB, free: 8.254 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.52, allocations: 0 / 0.6299 GB, free: 8.254 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.001155/0.5212, allocations: 491.4 kB / 0.6304 GB, free: 7.773 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.002682/0.5239, allocations: 1.818 MB / 0.6321 GB, free: 5.922 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.0008084/0.5247, allocations: 335.5 kB / 0.6325 GB, free: 5.594 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.5247, allocations: 0 / 0.6325 GB, free: 5.594 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003272/0.525, allocations: 155.8 kB / 0.6326 GB, free: 5.441 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009456/0.526, allocations: 201.7 kB / 0.6328 GB, free: 5.242 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005787/0.5318, allocations: 3.993 MB / 0.6367 GB, free: 1.086 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003908/0.5322, allocations: 0.8152 MB / 0.6375 GB, free: 248 kB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0003162/0.5325, allocations: 83.3 kB / 0.6376 GB, free: 164 kB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002093/0.5328, allocations: 143.3 kB / 0.6377 GB, free: 20 kB / 478.1 MB Notification: Performance of SimCode: time 5.81e-07/0.5328, allocations: 0 / 0.6377 GB, free: 20 kB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04905/0.5818, allocations: 21.12 MB / 0.6583 GB, free: 11.01 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.46/13.04, allocations: 14.59 kB / 0.6583 GB, free: 11 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Physiolibrary_Physiolibrary_Fluid_Examples_Windkessel_2element_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Physiolibrary_Physiolibrary_Fluid_Examples_Windkessel_2element.fmu > Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_2element.pipe 2>&1)