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: 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/package.mo): time 0.1277/0.1277, allocations: 15.28 MB / 30.91 MB, free: 4.152 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: 108.5 kB / 35.92 MB, free: 3.203 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.001772/0.001772, allocations: 194.1 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.532/1.532, allocations: 222.9 MB / 268.9 MB, free: 6.871 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1567/0.1567, allocations: 23.34 MB / 346.6 MB, free: 0.6602 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001943/0.001943, allocations: 111.8 kB / 478.8 MB, free: 1.82 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3844/0.3863, allocations: 59.36 MB / 0.5256 GB, free: 8.105 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_3element): time 0.08418/0.4706, allocations: 74.28 MB / 0.5981 GB, free: 10.16 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.02113/0.4917, allocations: 18.83 MB / 0.6165 GB, free: 7.258 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009799/0.4927, allocations: 15.88 kB / 0.6165 GB, free: 7.242 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00103/0.4938, allocations: 238.3 kB / 0.6167 GB, free: 7.008 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008044/0.5019, allocations: 2.337 MB / 0.619 GB, free: 4.656 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00542/0.5073, allocations: 1.593 MB / 0.6206 GB, free: 3.055 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.001924/0.5093, allocations: 1.223 MB / 0.6218 GB, free: 1.828 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007562/0.5101, allocations: 359.6 kB / 0.6221 GB, free: 1.469 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002855/0.5129, allocations: 1.069 MB / 0.6232 GB, free: 404 kB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009628/0.5139, allocations: 442.4 kB / 0.6236 GB, free: 15.96 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001487/0.5141, allocations: 44 kB / 0.6236 GB, free: 15.91 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004885/0.519, allocations: 1.712 MB / 0.6253 GB, free: 14.2 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002689/0.5193, allocations: 139.5 kB / 0.6254 GB, free: 14.07 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005428/0.5198, allocations: 278.7 kB / 0.6257 GB, free: 13.79 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00786/0.5277, allocations: 2.188 MB / 0.6278 GB, free: 11.6 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.109e-05/0.5278, allocations: 4 kB / 0.6278 GB, free: 11.59 MB / 478.1 MB Notification: Performance of FrontEnd: time 3.086e-06/0.5278, allocations: 0 / 0.6278 GB, free: 11.59 MB / 478.1 MB Notification: Performance of Transformations before backend: time 3.887e-05/0.5278, allocations: 0 / 0.6278 GB, free: 11.59 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: 91 * Number of variables: 91 Notification: Performance of Generate backend data structure: time 0.003154/0.531, allocations: 1.033 MB / 0.6288 GB, free: 10.51 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.796e-05/0.5311, allocations: 8.031 kB / 0.6289 GB, free: 10.5 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000212/0.5313, allocations: 55.42 kB / 0.6289 GB, free: 10.45 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008028/0.5321, allocations: 398.4 kB / 0.6293 GB, free: 10.02 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.152e-05/0.5322, allocations: 32.94 kB / 0.6293 GB, free: 9.988 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.557e-05/0.5323, allocations: 36 kB / 0.6294 GB, free: 9.953 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000891/0.5332, allocations: 452.7 kB / 0.6298 GB, free: 9.488 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.301e-05/0.5332, allocations: 0 / 0.6298 GB, free: 9.488 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.377e-05/0.5333, allocations: 19.94 kB / 0.6298 GB, free: 9.469 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.686e-05/0.5333, allocations: 8 kB / 0.6298 GB, free: 9.461 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008298/0.5341, allocations: 379.7 kB / 0.6302 GB, free: 9.09 MB / 478.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.003322/0.5375, allocations: 2.2 MB / 0.6323 GB, free: 6.66 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006636/0.5381, allocations: 359.6 kB / 0.6327 GB, free: 6.301 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003298/0.5385, allocations: 181.6 kB / 0.6328 GB, free: 6.121 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001423/0.5399, allocations: 1.006 MB / 0.6338 GB, free: 5.016 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004116/0.5403, allocations: 209.5 kB / 0.634 GB, free: 4.801 MB / 478.1 MB Notification: Performance of pre-optimization done (n=35): time 2.174e-06/0.5403, allocations: 0 / 0.634 GB, free: 4.801 MB / 478.1 MB Notification: Performance of matching and sorting (n=35): time 0.00162/0.542, allocations: 0.7166 MB / 0.6347 GB, free: 4.035 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.121e-05/0.542, allocations: 59.41 kB / 0.6348 GB, free: 3.965 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004733/0.5425, allocations: 389.6 kB / 0.6351 GB, free: 3.578 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 3.169e-05/0.5426, allocations: 33.7 kB / 0.6352 GB, free: 3.539 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001859/0.5428, allocations: 235.9 kB / 0.6354 GB, free: 3.305 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000119/0.5429, allocations: 118.4 kB / 0.6355 GB, free: 3.188 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001341/0.543, allocations: 86.02 kB / 0.6356 GB, free: 3.098 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001675/0.5432, allocations: 354.8 kB / 0.6359 GB, free: 2.742 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003129/0.5435, allocations: 152.7 kB / 0.6361 GB, free: 2.59 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003717/0.5439, allocations: 237.7 kB / 0.6363 GB, free: 2.328 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.00229/0.5462, allocations: 0.9442 MB / 0.6372 GB, free: 1.332 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.479e-06/0.5462, allocations: 0 / 0.6372 GB, free: 1.332 MB / 478.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.00108/0.5473, allocations: 0.5253 MB / 0.6377 GB, free: 0.793 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.122e-05/0.5473, allocations: 7.938 kB / 0.6378 GB, free: 0.7852 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.256e-05/0.5474, allocations: 4.312 kB / 0.6378 GB, free: 0.7812 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002551/0.5476, allocations: 81.66 kB / 0.6378 GB, free: 0.6953 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003503/0.548, allocations: 75.89 kB / 0.6379 GB, free: 0.6211 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008144/0.5488, allocations: 1.12 MB / 0.639 GB, free: 15.45 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003634/0.5492, allocations: 51.55 kB / 0.6391 GB, free: 15.4 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.13e-05/0.5492, allocations: 27.98 kB / 0.6391 GB, free: 15.37 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 (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.0002529/0.5495, allocations: 173.6 kB / 0.6392 GB, free: 15.19 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.32e-05/0.5496, allocations: 43.44 kB / 0.6393 GB, free: 15.15 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001017/0.5506, allocations: 473.2 kB / 0.6397 GB, free: 14.67 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.177e-05/0.5507, allocations: 8 kB / 0.6397 GB, free: 14.66 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.151e-06/0.5507, allocations: 0 / 0.6397 GB, free: 14.66 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.484e-06/0.5507, allocations: 7.984 kB / 0.6398 GB, free: 14.65 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001685/0.5524, allocations: 0.9693 MB / 0.6407 GB, free: 13.62 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.316e-06/0.5524, allocations: 0 / 0.6407 GB, free: 13.62 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002372/0.5526, allocations: 43.97 kB / 0.6407 GB, free: 13.57 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001916/0.5528, allocations: 77.64 kB / 0.6408 GB, free: 13.49 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.155e-05/0.5529, allocations: 7.984 kB / 0.6408 GB, free: 13.48 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007891/0.5537, allocations: 1.116 MB / 0.6419 GB, free: 12.32 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.137e-06/0.5537, allocations: 7.969 kB / 0.6419 GB, free: 12.31 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001223/0.5549, allocations: 0.6747 MB / 0.6426 GB, free: 11.61 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002237/0.5552, allocations: 152.5 kB / 0.6427 GB, free: 11.44 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.221e-05/0.5552, allocations: 8 kB / 0.6427 GB, free: 11.43 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000269/0.5555, allocations: 19.97 kB / 0.6428 GB, free: 11.41 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.916e-05/0.5556, allocations: 31.91 kB / 0.6428 GB, free: 11.38 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.301e-05/0.5556, allocations: 15.92 kB / 0.6428 GB, free: 11.37 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0003241/0.556, allocations: 279.2 kB / 0.6431 GB, free: 11.09 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.556, allocations: 0 / 0.6431 GB, free: 11.09 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.001485/0.5575, allocations: 0.5228 MB / 0.6436 GB, free: 10.57 MB / 494.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.001924/0.5594, allocations: 0.8456 MB / 0.6444 GB, free: 9.715 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0009495/0.5604, allocations: 363.7 kB / 0.6447 GB, free: 9.359 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 5.239e-06/0.5604, allocations: 0 / 0.6447 GB, free: 9.359 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004012/0.5608, allocations: 196.5 kB / 0.6449 GB, free: 9.168 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001038/0.5618, allocations: 205.1 kB / 0.6451 GB, free: 8.965 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001733/0.5636, allocations: 0.909 MB / 0.646 GB, free: 8.031 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004256/0.564, allocations: 0.8234 MB / 0.6468 GB, free: 7.18 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0002911/0.5643, allocations: 88.09 kB / 0.6469 GB, free: 7.094 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001158/0.5645, allocations: 47.42 kB / 0.6469 GB, free: 7.047 MB / 494.1 MB Notification: Performance of SimCode: time 3.1e-07/0.5645, allocations: 0 / 0.6469 GB, free: 7.047 MB / 494.1 MB Notification: Performance of Templates: time 0.02851/0.593, allocations: 18.41 MB / 0.6649 GB, free: 4.703 MB / 0.4981 GB 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)