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: translateModel(Physiolibrary.Fluid.Examples.Windkessel_4element,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_4element") translateModel(Physiolibrary.Fluid.Examples.Windkessel_4element,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_4element") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo): time 0.1095/0.1095, allocations: 15.29 MB / 30.92 MB, free: 4.125 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.001106/0.001106, allocations: 104.6 kB / 35.91 MB, free: 3.211 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.001448/0.001448, allocations: 194.1 kB / 41.02 MB, free: 7.137 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.462/1.462, allocations: 222.9 MB / 268.9 MB, free: 6.867 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1433/0.1433, allocations: 23.35 MB / 346.6 MB, free: 0.6445 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001909/0.001909, allocations: 111.8 kB / 478.8 MB, free: 1.789 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.403/0.405, allocations: 59.35 MB / 0.5256 GB, free: 8.113 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.09277/0.4978, allocations: 80.49 MB / 0.6042 GB, free: 3.902 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.02497/0.5228, allocations: 22.18 MB / 0.6258 GB, free: 13.64 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009718/0.5238, allocations: 15.94 kB / 0.6259 GB, free: 13.62 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008729/0.5247, allocations: 266.1 kB / 0.6261 GB, free: 13.36 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007414/0.5321, allocations: 2.446 MB / 0.6285 GB, free: 10.9 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005741/0.5379, allocations: 2.055 MB / 0.6305 GB, free: 8.836 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.001793/0.5397, allocations: 1.368 MB / 0.6318 GB, free: 7.461 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000645/0.5403, allocations: 468.7 kB / 0.6323 GB, free: 7 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002466/0.5428, allocations: 1.135 MB / 0.6334 GB, free: 5.859 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007843/0.5436, allocations: 0.5332 MB / 0.6339 GB, free: 5.324 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 8.144e-05/0.5437, allocations: 52 kB / 0.634 GB, free: 5.273 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00461/0.5483, allocations: 1.856 MB / 0.6358 GB, free: 3.414 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001789/0.5485, allocations: 159.5 kB / 0.6359 GB, free: 3.258 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000335/0.5489, allocations: 326.6 kB / 0.6362 GB, free: 2.938 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004853/0.5537, allocations: 2.399 MB / 0.6386 GB, free: 0.5312 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.5537, allocations: 4 kB / 0.6386 GB, free: 0.5273 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.5537, allocations: 0 / 0.6386 GB, free: 0.5273 MB / 478.1 MB Notification: Performance of Transformations before backend: time 8.606e-06/0.5538, allocations: 0 / 0.6386 GB, free: 0.5273 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.002014/0.5558, allocations: 1.115 MB / 0.6397 GB, free: 15.36 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.966e-05/0.5558, allocations: 8.031 kB / 0.6397 GB, free: 15.35 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001382/0.556, allocations: 59.34 kB / 0.6397 GB, free: 15.29 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006129/0.5566, allocations: 434.2 kB / 0.6402 GB, free: 14.83 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.509e-05/0.5566, allocations: 36.98 kB / 0.6402 GB, free: 14.79 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.137e-05/0.5567, allocations: 44 kB / 0.6402 GB, free: 14.75 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008675/0.5576, allocations: 0.5318 MB / 0.6408 GB, free: 14.2 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.813e-05/0.5576, allocations: 0 / 0.6408 GB, free: 14.2 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.344e-05/0.5577, allocations: 19.94 kB / 0.6408 GB, free: 14.18 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.473e-05/0.5577, allocations: 8 kB / 0.6408 GB, free: 14.17 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008967/0.5586, allocations: 0.4957 MB / 0.6413 GB, free: 13.67 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.003368/0.562, allocations: 2.463 MB / 0.6437 GB, free: 10.96 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007727/0.5628, allocations: 415.1 kB / 0.6441 GB, free: 10.54 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004688/0.5633, allocations: 256.7 kB / 0.6443 GB, free: 10.29 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001429/0.5647, allocations: 1.122 MB / 0.6454 GB, free: 9.066 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004786/0.5652, allocations: 253.1 kB / 0.6456 GB, free: 8.805 MB / 494.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0001652/0.5654, allocations: 47.58 kB / 0.6457 GB, free: 8.758 MB / 494.1 MB Notification: Performance of pre-optimization done (n=41): time 2.986e-06/0.5654, allocations: 0 / 0.6457 GB, free: 8.758 MB / 494.1 MB Notification: Performance of matching and sorting (n=41): time 0.001749/0.5671, allocations: 0.8156 MB / 0.6465 GB, free: 7.895 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.188e-05/0.5672, allocations: 59.73 kB / 0.6465 GB, free: 7.824 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000425/0.5676, allocations: 393.7 kB / 0.6469 GB, free: 7.434 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 3.394e-05/0.5677, allocations: 37.7 kB / 0.647 GB, free: 7.391 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001794/0.5679, allocations: 252 kB / 0.6472 GB, free: 7.137 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001327/0.568, allocations: 134.1 kB / 0.6473 GB, free: 7.004 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001595/0.5682, allocations: 98.14 kB / 0.6474 GB, free: 6.902 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001358/0.5683, allocations: 354.8 kB / 0.6478 GB, free: 6.547 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003549/0.5687, allocations: 177 kB / 0.6479 GB, free: 6.375 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004134/0.5691, allocations: 275.4 kB / 0.6482 GB, free: 6.07 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.004054/0.5731, allocations: 1.315 MB / 0.6495 GB, free: 4.707 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.336e-06/0.5732, allocations: 0 / 0.6495 GB, free: 4.707 MB / 494.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001164/0.5743, allocations: 0.5984 MB / 0.6501 GB, free: 4.094 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.003e-05/0.5744, allocations: 7.984 kB / 0.6501 GB, free: 4.086 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.628e-06/0.5744, allocations: 4.312 kB / 0.6501 GB, free: 4.082 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002335/0.5746, allocations: 77.67 kB / 0.6501 GB, free: 4 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004224/0.5751, allocations: 99.75 kB / 0.6502 GB, free: 3.902 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007519/0.5758, allocations: 1.12 MB / 0.6513 GB, free: 2.73 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003616/0.5762, allocations: 16 kB / 0.6514 GB, free: 2.715 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.009e-05/0.5762, allocations: 23.98 kB / 0.6514 GB, free: 2.691 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.0002377/0.5765, allocations: 177.8 kB / 0.6515 GB, free: 2.508 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.889e-05/0.5766, allocations: 51.31 kB / 0.6516 GB, free: 2.457 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001138/0.5777, allocations: 0.5877 MB / 0.6522 GB, free: 1.852 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.726e-06/0.5778, allocations: 8 kB / 0.6522 GB, free: 1.844 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.913e-06/0.5778, allocations: 4 kB / 0.6522 GB, free: 1.84 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.514e-06/0.5778, allocations: 3.984 kB / 0.6522 GB, free: 1.836 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001761/0.5795, allocations: 1.126 MB / 0.6533 GB, free: 0.6445 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.377e-06/0.5796, allocations: 0 / 0.6533 GB, free: 0.6445 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003261/0.5799, allocations: 75.92 kB / 0.6534 GB, free: 0.5703 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001872/0.5801, allocations: 65.67 kB / 0.6534 GB, free: 0.5 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.571e-05/0.5801, allocations: 15.98 kB / 0.6534 GB, free: 496 kB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006907/0.5808, allocations: 1.12 MB / 0.6545 GB, free: 15.31 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.5808, allocations: 48 / 0.6545 GB, free: 15.31 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001333/0.5822, allocations: 0.807 MB / 0.6553 GB, free: 14.48 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001977/0.5824, allocations: 160.5 kB / 0.6555 GB, free: 14.3 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.49e-05/0.5825, allocations: 12 kB / 0.6555 GB, free: 14.29 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000278/0.5828, allocations: 15.92 kB / 0.6555 GB, free: 14.27 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000102/0.5829, allocations: 35.95 kB / 0.6555 GB, free: 14.24 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.662e-05/0.5829, allocations: 15.98 kB / 0.6555 GB, free: 14.22 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0002919/0.5832, allocations: 283.1 kB / 0.6558 GB, free: 13.95 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.8e-07/0.5832, allocations: 4 kB / 0.6558 GB, free: 13.94 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.001528/0.5847, allocations: 0.5735 MB / 0.6564 GB, free: 13.37 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.0015/0.5863, allocations: 0.8846 MB / 0.6572 GB, free: 12.47 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.000986/0.5872, allocations: 466 kB / 0.6577 GB, free: 12.02 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.5873, allocations: 0 / 0.6577 GB, free: 12.02 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0004618/0.5877, allocations: 237.1 kB / 0.6579 GB, free: 11.79 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001105/0.5888, allocations: 233 kB / 0.6581 GB, free: 11.57 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00192/0.5908, allocations: 1.074 MB / 0.6592 GB, free: 10.46 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000429/0.5912, allocations: 0.8431 MB / 0.66 GB, free: 9.586 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0003337/0.5916, allocations: 112.2 kB / 0.6601 GB, free: 9.477 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000139/0.5917, allocations: 55.41 kB / 0.6602 GB, free: 9.422 MB / 0.4981 GB Notification: Performance of SimCode: time 2.4e-07/0.5917, allocations: 0 / 0.6602 GB, free: 9.422 MB / 0.4981 GB Notification: Performance of Templates: time 0.02957/0.6213, allocations: 19.97 MB / 0.6797 GB, free: 5.527 MB / 0.5137 GB make -j1 -f Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_4element.makefile (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 & ./Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_4element -abortSlowSimulation -alarm=480 -lv LOG_STATS > Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_4element.pipe 2>&1)