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-master/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-master/package.mo) Running command: translateModel(Physiolibrary.Fluid.Examples.Windkessel_3element,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_3element") translateModel(Physiolibrary.Fluid.Examples.Windkessel_3element,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_3element") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo): time 0.1258/0.1258, allocations: 15.27 MB / 30.24 MB, free: 4.711 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.0008457/0.0008458, allocations: 107.3 kB / 35.25 MB, free: 3.332 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.001122/0.001121, allocations: 173.1 kB / 40.34 MB, free: 7.914 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.593/1.593, allocations: 223.3 MB / 268.6 MB, free: 8.344 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1495/0.1495, allocations: 23.39 MB / 347.3 MB, free: 264 kB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004811/0.0004811, allocations: 12 kB / 419.6 MB, free: 30.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1478/0.1483, allocations: 60.48 MB / 480 MB, free: 2.395 MB / 334.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/Fluid.mo:596:7-596: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:596:7-596: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.3539/0.5022, allocations: 51 MB / 0.5186 GB, free: 14.89 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02311/0.5254, allocations: 17.49 MB / 0.5357 GB, free: 14.75 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001523/0.5269, allocations: 28.69 kB / 0.5357 GB, free: 14.75 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008646/0.5278, allocations: 191.6 kB / 0.5359 GB, free: 14.75 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008585/0.5364, allocations: 2.055 MB / 0.5379 GB, free: 14.69 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005866/0.5423, allocations: 1.255 MB / 0.5391 GB, free: 14.51 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00305/0.5454, allocations: 1.523 MB / 0.5406 GB, free: 14.27 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008363/0.5463, allocations: 295.5 kB / 0.5409 GB, free: 14.22 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002989/0.5493, allocations: 0.9255 MB / 0.5418 GB, free: 14 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001097/0.5504, allocations: 440 kB / 0.5422 GB, free: 13.92 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.73e-05/0.5505, allocations: 25.78 kB / 0.5422 GB, free: 13.92 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00648/0.557, allocations: 1.239 MB / 0.5434 GB, free: 13.78 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002496/0.5572, allocations: 114.7 kB / 0.5436 GB, free: 13.76 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003532/0.5576, allocations: 123.2 kB / 0.5437 GB, free: 13.72 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00312/0.5607, allocations: 1.439 MB / 0.5451 GB, free: 13.45 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.197e-06/0.5608, allocations: 0 / 0.5451 GB, free: 13.45 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.5608, allocations: 0 / 0.5451 GB, free: 13.45 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.768e-06/0.5608, allocations: 0 / 0.5451 GB, free: 13.45 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: 91 * Number of variables: 91 Notification: Performance of Generate backend data structure: time 0.002176/0.563, allocations: 0.9557 MB / 0.546 GB, free: 12.82 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.883e-05/0.563, allocations: 9.281 kB / 0.546 GB, free: 12.82 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001154/0.5632, allocations: 62.06 kB / 0.5461 GB, free: 12.79 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005335/0.5637, allocations: 374.7 kB / 0.5464 GB, free: 12.54 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.063e-05/0.5637, allocations: 31.38 kB / 0.5465 GB, free: 12.54 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.663e-05/0.5638, allocations: 40.98 kB / 0.5465 GB, free: 12.54 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007612/0.5646, allocations: 449.5 kB / 0.5469 GB, free: 12.45 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.966e-05/0.5646, allocations: 0.9375 kB / 0.5469 GB, free: 12.45 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.079e-05/0.5647, allocations: 17.72 kB / 0.547 GB, free: 12.45 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.797e-05/0.5647, allocations: 9.031 kB / 0.547 GB, free: 12.45 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006989/0.5654, allocations: 389.9 kB / 0.5473 GB, free: 12.43 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.002484/0.5679, allocations: 2.204 MB / 0.5495 GB, free: 10.92 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005836/0.5685, allocations: 369 kB / 0.5498 GB, free: 10.89 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003112/0.5688, allocations: 189.6 kB / 0.55 GB, free: 10.87 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0011/0.5699, allocations: 1.005 MB / 0.551 GB, free: 10.2 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003486/0.5703, allocations: 220.2 kB / 0.5512 GB, free: 10.14 MB / 382.1 MB Notification: Performance of pre-optimization done (n=35): time 2.455e-06/0.5703, allocations: 0 / 0.5512 GB, free: 10.14 MB / 382.1 MB Notification: Performance of matching and sorting (n=35): time 0.001333/0.5716, allocations: 0.7216 MB / 0.5519 GB, free: 9.871 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.498e-05/0.5717, allocations: 59.5 kB / 0.552 GB, free: 9.809 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000374/0.5721, allocations: 392.9 kB / 0.5523 GB, free: 9.688 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.55e-05/0.5721, allocations: 34.14 kB / 0.5524 GB, free: 9.656 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001221/0.5722, allocations: 232.6 kB / 0.5526 GB, free: 9.523 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.515e-05/0.5723, allocations: 122.8 kB / 0.5527 GB, free: 9.449 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.891e-05/0.5723, allocations: 5.938 kB / 0.5527 GB, free: 9.449 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.193e-05/0.5724, allocations: 359.9 kB / 0.5531 GB, free: 9.133 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000265/0.5727, allocations: 151 kB / 0.5532 GB, free: 9.129 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002955/0.573, allocations: 241.6 kB / 0.5534 GB, free: 9.039 MB / 382.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.001488/0.5745, allocations: 0.6246 MB / 0.554 GB, free: 8.918 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.596e-06/0.5745, allocations: 0 / 0.554 GB, free: 8.918 MB / 382.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.0008919/0.5754, allocations: 0.5179 MB / 0.5546 GB, free: 8.82 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.026e-05/0.5754, allocations: 7.219 kB / 0.5546 GB, free: 8.82 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.003e-05/0.5755, allocations: 12 kB / 0.5546 GB, free: 8.816 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002157/0.5757, allocations: 77.69 kB / 0.5546 GB, free: 8.797 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000324/0.576, allocations: 79.66 kB / 0.5547 GB, free: 8.793 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005099/0.5765, allocations: 1.119 MB / 0.5558 GB, free: 7.727 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004419/0.577, allocations: 60.52 kB / 0.5559 GB, free: 7.699 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.338e-05/0.577, allocations: 21.52 kB / 0.5559 GB, free: 7.695 MB / 382.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: 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 ($whenCondition1,$PRE.pulses.T0,pulses.T0,pulses.b,$PRE.pulses.HP,pulses.HP,$PRE.pulses.TD2,pulses.TD2) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0002188/0.5773, allocations: 177.6 kB / 0.5561 GB, free: 7.566 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.598e-05/0.5773, allocations: 47.84 kB / 0.5561 GB, free: 7.539 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008551/0.5782, allocations: 484.5 kB / 0.5566 GB, free: 7.375 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.426e-06/0.5782, allocations: 3.688 kB / 0.5566 GB, free: 7.375 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.602e-06/0.5782, allocations: 4 kB / 0.5566 GB, free: 7.371 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.221e-06/0.5782, allocations: 3.984 kB / 0.5566 GB, free: 7.367 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001349/0.5796, allocations: 0.986 MB / 0.5575 GB, free: 6.855 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.026e-06/0.5796, allocations: 0 / 0.5575 GB, free: 6.855 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002194/0.5798, allocations: 50.2 kB / 0.5576 GB, free: 6.844 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001593/0.58, allocations: 76.22 kB / 0.5577 GB, free: 6.812 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.421e-05/0.58, allocations: 14.58 kB / 0.5577 GB, free: 6.805 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004342/0.5805, allocations: 1.113 MB / 0.5588 GB, free: 5.738 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.5805, allocations: 0 / 0.5588 GB, free: 5.738 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009698/0.5815, allocations: 0.6949 MB / 0.5594 GB, free: 5.469 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001994/0.5817, allocations: 169.7 kB / 0.5596 GB, free: 5.324 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.748e-05/0.5817, allocations: 8.531 kB / 0.5596 GB, free: 5.324 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002865/0.582, allocations: 34.31 kB / 0.5596 GB, free: 5.312 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.605e-05/0.5821, allocations: 28.59 kB / 0.5597 GB, free: 5.301 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.024e-05/0.5822, allocations: 11.45 kB / 0.5597 GB, free: 5.297 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003007/0.5825, allocations: 278.6 kB / 0.56 GB, free: 5.184 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.5825, allocations: 0 / 0.56 GB, free: 5.184 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00172/0.5842, allocations: 0.5089 MB / 0.5604 GB, free: 5.062 MB / 382.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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 3,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.001502/0.5857, allocations: 0.8123 MB / 0.5612 GB, free: 4.738 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0009178/0.5866, allocations: 385.2 kB / 0.5616 GB, free: 4.664 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.691e-06/0.5867, allocations: 3.281 kB / 0.5616 GB, free: 4.664 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003722/0.587, allocations: 186.1 kB / 0.5618 GB, free: 4.625 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009857/0.588, allocations: 196.8 kB / 0.562 GB, free: 4.566 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001734/0.5898, allocations: 1.122 MB / 0.5631 GB, free: 3.852 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002775/0.5901, allocations: 0.8201 MB / 0.5639 GB, free: 3.094 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003374/0.5904, allocations: 96.25 kB / 0.564 GB, free: 3.039 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001085/0.5905, allocations: 37.73 kB / 0.564 GB, free: 3.031 MB / 382.1 MB Notification: Performance of SimCode: time 2.2e-07/0.5906, allocations: 2.188 kB / 0.564 GB, free: 3.031 MB / 382.1 MB Notification: Performance of Templates: time 0.02739/0.6179, allocations: 16.88 MB / 0.5805 GB, free: 4.223 MB / 398.1 MB make -j1 -f Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_3element.makefile (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 & ./Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_3element -abortSlowSimulation -alarm=480 -lv LOG_STATS > Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_3element.pipe 2>&1)