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.1417/0.1417, allocations: 15.28 MB / 30.91 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.001028/0.001028, allocations: 107.6 kB / 35.92 MB, free: 3.199 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.001203/0.001203, allocations: 195.4 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.437/1.437, allocations: 222.9 MB / 268.9 MB, free: 6.922 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1366/0.1366, allocations: 23.35 MB / 346.6 MB, free: 0.6484 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001926/0.001926, allocations: 111.8 kB / 478.8 MB, free: 1.797 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3596/0.3615, allocations: 59.35 MB / 0.5256 GB, free: 8.094 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.08332/0.4449, allocations: 74.37 MB / 0.5982 GB, free: 10.04 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.02124/0.4661, allocations: 18.84 MB / 0.6166 GB, free: 7.125 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009463/0.4671, allocations: 11.94 kB / 0.6166 GB, free: 7.113 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008687/0.468, allocations: 234.3 kB / 0.6168 GB, free: 6.883 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006701/0.4747, allocations: 2.333 MB / 0.6191 GB, free: 4.535 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004251/0.479, allocations: 1.6 MB / 0.6207 GB, free: 2.926 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.001652/0.4807, allocations: 1.216 MB / 0.6219 GB, free: 1.707 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006709/0.4814, allocations: 359.6 kB / 0.6222 GB, free: 1.348 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002474/0.4839, allocations: 1.065 MB / 0.6233 GB, free: 284 kB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008957/0.4848, allocations: 450.2 kB / 0.6237 GB, free: 15.84 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001129/0.4849, allocations: 44 kB / 0.6237 GB, free: 15.79 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005064/0.49, allocations: 1.712 MB / 0.6254 GB, free: 14.08 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002194/0.4902, allocations: 135.5 kB / 0.6255 GB, free: 13.95 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004846/0.4907, allocations: 286.8 kB / 0.6258 GB, free: 13.66 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006629/0.4974, allocations: 2.191 MB / 0.6279 GB, free: 11.46 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.4974, allocations: 4 kB / 0.6279 GB, free: 11.46 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.4974, allocations: 0 / 0.6279 GB, free: 11.46 MB / 478.1 MB Notification: Performance of Transformations before backend: time 1.849e-05/0.4974, allocations: 0 / 0.6279 GB, free: 11.46 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.002063/0.4995, allocations: 1.059 MB / 0.629 GB, free: 10.35 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.227e-05/0.4996, allocations: 8.031 kB / 0.629 GB, free: 10.34 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001341/0.4997, allocations: 55.67 kB / 0.629 GB, free: 10.29 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007129/0.5004, allocations: 410.6 kB / 0.6294 GB, free: 9.848 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.461e-05/0.5005, allocations: 32.94 kB / 0.6295 GB, free: 9.816 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.634e-05/0.5005, allocations: 44 kB / 0.6295 GB, free: 9.773 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009285/0.5015, allocations: 448.6 kB / 0.6299 GB, free: 9.312 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.722e-05/0.5015, allocations: 0 / 0.6299 GB, free: 9.312 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.021e-05/0.5016, allocations: 16 kB / 0.6299 GB, free: 9.297 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.6e-05/0.5016, allocations: 8 kB / 0.63 GB, free: 9.289 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000784/0.5024, allocations: 379.7 kB / 0.6303 GB, free: 8.918 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.002836/0.5052, allocations: 2.193 MB / 0.6325 GB, free: 6.496 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006331/0.5059, allocations: 367.5 kB / 0.6328 GB, free: 6.129 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003171/0.5062, allocations: 181.6 kB / 0.633 GB, free: 5.949 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001223/0.5074, allocations: 1.002 MB / 0.634 GB, free: 4.848 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004442/0.5079, allocations: 217.4 kB / 0.6342 GB, free: 4.625 MB / 478.1 MB Notification: Performance of pre-optimization done (n=35): time 1.613e-06/0.5079, allocations: 0 / 0.6342 GB, free: 4.625 MB / 478.1 MB Notification: Performance of matching and sorting (n=35): time 0.00156/0.5095, allocations: 0.713 MB / 0.6349 GB, free: 3.863 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.282e-05/0.5095, allocations: 63.39 kB / 0.6349 GB, free: 3.789 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004682/0.51, allocations: 389.6 kB / 0.6353 GB, free: 3.402 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 3.532e-05/0.5101, allocations: 37.7 kB / 0.6353 GB, free: 3.359 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001615/0.5102, allocations: 236.4 kB / 0.6356 GB, free: 3.125 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001134/0.5103, allocations: 119 kB / 0.6357 GB, free: 3.008 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001316/0.5105, allocations: 94.06 kB / 0.6358 GB, free: 2.91 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001294/0.5106, allocations: 350.8 kB / 0.6361 GB, free: 2.559 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003123/0.5109, allocations: 144.8 kB / 0.6362 GB, free: 2.414 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003644/0.5113, allocations: 241.7 kB / 0.6365 GB, free: 2.148 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.002238/0.5136, allocations: 0.9442 MB / 0.6374 GB, free: 1.152 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/0.5136, allocations: 4 kB / 0.6374 GB, free: 1.148 MB / 478.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.00108/0.5147, allocations: 0.518 MB / 0.6379 GB, free: 0.6172 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.269e-05/0.5147, allocations: 12.03 kB / 0.6379 GB, free: 0.6055 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.06e-05/0.5147, allocations: 0 / 0.6379 GB, free: 0.6055 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002664/0.515, allocations: 77.66 kB / 0.638 GB, free: 0.5234 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003607/0.5154, allocations: 83.83 kB / 0.6381 GB, free: 452 kB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008946/0.5163, allocations: 1.124 MB / 0.6392 GB, free: 15.27 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003712/0.5167, allocations: 47.59 kB / 0.6392 GB, free: 15.22 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.296e-05/0.5167, allocations: 23.98 kB / 0.6392 GB, free: 15.2 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.0002659/0.517, allocations: 177.8 kB / 0.6394 GB, free: 15.01 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.429e-05/0.5171, allocations: 43.72 kB / 0.6394 GB, free: 14.97 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009859/0.5181, allocations: 477 kB / 0.6399 GB, free: 14.48 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.316e-06/0.5181, allocations: 4 kB / 0.6399 GB, free: 14.48 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.084e-06/0.5181, allocations: 4 kB / 0.6399 GB, free: 14.48 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.694e-06/0.5181, allocations: 7.922 kB / 0.6399 GB, free: 14.47 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001637/0.5198, allocations: 0.9656 MB / 0.6409 GB, free: 13.44 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.116e-06/0.5198, allocations: 0 / 0.6409 GB, free: 13.44 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002258/0.52, allocations: 47.94 kB / 0.6409 GB, free: 13.39 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001754/0.5202, allocations: 73.67 kB / 0.641 GB, free: 13.31 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.021e-05/0.5202, allocations: 11.98 kB / 0.641 GB, free: 13.3 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006647/0.5209, allocations: 1.12 MB / 0.6421 GB, free: 12.13 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.521, allocations: 0 / 0.6421 GB, free: 12.13 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001207/0.5222, allocations: 0.6788 MB / 0.6427 GB, free: 11.43 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001826/0.5224, allocations: 156.7 kB / 0.6429 GB, free: 11.25 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.457e-05/0.5224, allocations: 8 kB / 0.6429 GB, free: 11.25 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002802/0.5227, allocations: 15.98 kB / 0.6429 GB, free: 11.23 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001014/0.5228, allocations: 31.98 kB / 0.6429 GB, free: 11.2 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.495e-05/0.5229, allocations: 12 kB / 0.6429 GB, free: 11.19 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0003392/0.5232, allocations: 283.1 kB / 0.6432 GB, free: 10.91 MB / 494.1 MB Notification: Performance of sort global known variables: time 3.71e-07/0.5232, allocations: 4.062 kB / 0.6432 GB, free: 10.91 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.001657/0.5249, allocations: 0.5255 MB / 0.6437 GB, free: 10.38 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.001972/0.5269, allocations: 0.8598 MB / 0.6446 GB, free: 9.508 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0009238/0.5278, allocations: 379.6 kB / 0.6449 GB, free: 9.137 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.5278, allocations: 0.625 kB / 0.6449 GB, free: 9.137 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004074/0.5282, allocations: 179.8 kB / 0.6451 GB, free: 8.961 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00111/0.5294, allocations: 209.2 kB / 0.6453 GB, free: 8.754 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001847/0.5312, allocations: 0.911 MB / 0.6462 GB, free: 7.812 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005099/0.5317, allocations: 0.8273 MB / 0.647 GB, free: 6.957 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.000353/0.5321, allocations: 88.09 kB / 0.6471 GB, free: 6.871 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001226/0.5322, allocations: 51.36 kB / 0.6471 GB, free: 6.82 MB / 494.1 MB Notification: Performance of SimCode: time 6.11e-07/0.5322, allocations: 0 / 0.6471 GB, free: 6.82 MB / 494.1 MB Notification: Performance of Templates: time 0.02938/0.5616, allocations: 18.2 MB / 0.6649 GB, free: 4.691 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)