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.1001/0.1001, allocations: 15.28 MB / 30.92 MB, free: 4.156 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.001201/0.001201, allocations: 100.2 kB / 35.92 MB, free: 3.195 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.001412/0.001412, allocations: 194.5 kB / 41.02 MB, free: 7.141 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.451/1.451, allocations: 222.9 MB / 268.9 MB, free: 6.848 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.36 MB / 346.6 MB, free: 0.6289 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003164/0.003164, allocations: 111.8 kB / 478.4 MB, free: 2.285 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3061/0.3093, allocations: 59.35 MB / 0.5251 GB, free: 7.77 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.09046/0.3998, allocations: 68.48 MB / 0.592 GB, free: 16 kB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.02139/0.4212, allocations: 15.49 MB / 0.6071 GB, free: 484 kB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008246/0.422, allocations: 15.94 kB / 0.6071 GB, free: 468 kB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008772/0.4229, allocations: 206.5 kB / 0.6073 GB, free: 260 kB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007124/0.4301, allocations: 2.22 MB / 0.6095 GB, free: 14.02 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003585/0.4337, allocations: 1.134 MB / 0.6106 GB, free: 12.88 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.001777/0.4355, allocations: 1.098 MB / 0.6117 GB, free: 11.77 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006904/0.4362, allocations: 338.4 kB / 0.612 GB, free: 11.43 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002643/0.4389, allocations: 1.026 MB / 0.613 GB, free: 10.4 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008498/0.4398, allocations: 406.4 kB / 0.6134 GB, free: 10 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001239/0.4399, allocations: 40 kB / 0.6134 GB, free: 9.965 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004913/0.4448, allocations: 1.568 MB / 0.6149 GB, free: 8.395 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002591/0.4451, allocations: 119.6 kB / 0.6151 GB, free: 8.277 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004642/0.4456, allocations: 262.8 kB / 0.6153 GB, free: 8.02 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00581/0.4514, allocations: 2.028 MB / 0.6173 GB, free: 5.984 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.4515, allocations: 0 / 0.6173 GB, free: 5.984 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.4515, allocations: 0 / 0.6173 GB, free: 5.984 MB / 462.1 MB Notification: Performance of Transformations before backend: time 2.086e-05/0.4515, allocations: 0 / 0.6173 GB, free: 5.984 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.002279/0.4538, allocations: 0.9923 MB / 0.6183 GB, free: 4.941 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.653e-05/0.4539, allocations: 8.031 kB / 0.6183 GB, free: 4.934 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.689e-05/0.454, allocations: 70.53 kB / 0.6183 GB, free: 4.855 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001416/0.4541, allocations: 55.64 kB / 0.6184 GB, free: 4.801 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006508/0.4548, allocations: 394 kB / 0.6188 GB, free: 4.375 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.294e-05/0.4548, allocations: 20.66 kB / 0.6188 GB, free: 4.355 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.177e-05/0.4549, allocations: 36 kB / 0.6188 GB, free: 4.32 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007737/0.4557, allocations: 395.6 kB / 0.6192 GB, free: 3.914 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.311e-05/0.4557, allocations: 4 kB / 0.6192 GB, free: 3.91 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.684e-05/0.4557, allocations: 12 kB / 0.6192 GB, free: 3.898 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.804e-05/0.4558, allocations: 11.94 kB / 0.6192 GB, free: 3.887 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007543/0.4565, allocations: 342.3 kB / 0.6195 GB, free: 3.551 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.003089/0.4596, allocations: 2.046 MB / 0.6215 GB, free: 1.289 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006679/0.4603, allocations: 322.5 kB / 0.6219 GB, free: 0.9648 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003201/0.4607, allocations: 160.7 kB / 0.622 GB, free: 0.8047 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001434/0.4621, allocations: 0.958 MB / 0.6229 GB, free: 15.75 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004102/0.4625, allocations: 187.3 kB / 0.6231 GB, free: 15.55 MB / 478.1 MB Notification: Performance of pre-optimization done (n=31): time 2.044e-06/0.4625, allocations: 0 / 0.6231 GB, free: 15.55 MB / 478.1 MB Notification: Performance of matching and sorting (n=31): time 0.001283/0.4638, allocations: 0.5428 MB / 0.6237 GB, free: 14.98 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.183e-05/0.4639, allocations: 55.41 kB / 0.6237 GB, free: 14.91 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004912/0.4644, allocations: 377.7 kB / 0.6241 GB, free: 14.54 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 3.751e-05/0.4644, allocations: 33.7 kB / 0.6241 GB, free: 14.5 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001942/0.4646, allocations: 232.3 kB / 0.6243 GB, free: 14.27 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000103/0.4647, allocations: 103.1 kB / 0.6244 GB, free: 14.16 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001472/0.4649, allocations: 86.06 kB / 0.6245 GB, free: 14.07 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001871/0.4651, allocations: 350.8 kB / 0.6248 GB, free: 13.72 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003677/0.4655, allocations: 132.8 kB / 0.625 GB, free: 13.59 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000375/0.4659, allocations: 217.7 kB / 0.6252 GB, free: 13.35 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.002242/0.4681, allocations: 0.8838 MB / 0.626 GB, free: 12.41 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.456e-06/0.4681, allocations: 0 / 0.626 GB, free: 12.41 MB / 478.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.001007/0.4691, allocations: 470.1 kB / 0.6265 GB, free: 11.95 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.309e-05/0.4692, allocations: 8 kB / 0.6265 GB, free: 11.94 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.019e-05/0.4692, allocations: 0 / 0.6265 GB, free: 11.94 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001645/0.4694, allocations: 36.84 kB / 0.6265 GB, free: 11.9 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000358/0.4697, allocations: 76.2 kB / 0.6266 GB, free: 11.82 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005236/0.4703, allocations: 0.5523 MB / 0.6271 GB, free: 11.25 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003478/0.4706, allocations: 51.62 kB / 0.6272 GB, free: 11.2 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.109e-05/0.4707, allocations: 19.94 kB / 0.6272 GB, free: 11.18 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.0002641/0.471, allocations: 166.8 kB / 0.6274 GB, free: 11 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.118e-05/0.471, allocations: 35.77 kB / 0.6274 GB, free: 10.97 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009594/0.472, allocations: 420.7 kB / 0.6278 GB, free: 10.54 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.259e-05/0.472, allocations: 7.938 kB / 0.6278 GB, free: 10.53 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.664e-06/0.472, allocations: 8 kB / 0.6278 GB, free: 10.52 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.635e-06/0.4721, allocations: 3.984 kB / 0.6278 GB, free: 10.52 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001551/0.4736, allocations: 0.8593 MB / 0.6287 GB, free: 9.594 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.153e-06/0.4736, allocations: 3.984 kB / 0.6287 GB, free: 9.59 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002388/0.4739, allocations: 47.91 kB / 0.6287 GB, free: 9.543 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.967e-05/0.474, allocations: 32.88 kB / 0.6287 GB, free: 9.508 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.8e-05/0.474, allocations: 8 kB / 0.6287 GB, free: 9.5 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004628/0.4745, allocations: 0.5484 MB / 0.6293 GB, free: 8.926 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.051e-06/0.4745, allocations: 7.969 kB / 0.6293 GB, free: 8.918 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001144/0.4757, allocations: 0.5878 MB / 0.6299 GB, free: 8.309 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002198/0.4759, allocations: 140.8 kB / 0.63 GB, free: 8.152 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.972e-05/0.476, allocations: 15.89 kB / 0.63 GB, free: 8.137 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002593/0.4762, allocations: 11.98 kB / 0.63 GB, free: 8.125 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.83e-05/0.4763, allocations: 32.02 kB / 0.6301 GB, free: 8.094 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.894e-05/0.4764, allocations: 12 kB / 0.6301 GB, free: 8.082 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0003453/0.4767, allocations: 271.2 kB / 0.6303 GB, free: 7.824 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4767, allocations: 0 / 0.6303 GB, free: 7.824 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.001283/0.478, allocations: 498.3 kB / 0.6308 GB, free: 7.336 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.003061/0.4811, allocations: 1.829 MB / 0.6326 GB, free: 5.473 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.0008978/0.482, allocations: 351.2 kB / 0.6329 GB, free: 5.129 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 3.467e-06/0.482, allocations: 0 / 0.6329 GB, free: 5.129 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003717/0.4824, allocations: 159.8 kB / 0.6331 GB, free: 4.973 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001026/0.4835, allocations: 189.9 kB / 0.6333 GB, free: 4.785 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006208/0.4897, allocations: 3.996 MB / 0.6372 GB, free: 0.6211 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004987/0.4902, allocations: 0.8074 MB / 0.6379 GB, free: 15.79 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0003495/0.4906, allocations: 87.23 kB / 0.638 GB, free: 15.7 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002219/0.4908, allocations: 143.3 kB / 0.6382 GB, free: 15.56 MB / 494.1 MB Notification: Performance of SimCode: time 8.21e-07/0.4908, allocations: 0 / 0.6382 GB, free: 15.56 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05557/0.5464, allocations: 21.13 MB / 0.6588 GB, free: 10.54 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.84/13.39, allocations: 15.34 kB / 0.6588 GB, free: 10.53 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)