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.08624/0.08624, allocations: 15.28 MB / 30.91 MB, free: 4.129 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.001024/0.001024, allocations: 110.9 kB / 35.91 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.001261/0.001261, allocations: 185.1 kB / 41.02 MB, free: 7.133 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.408/1.408, allocations: 222.9 MB / 268.9 MB, free: 6.77 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.6328 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001981/0.001981, allocations: 111.8 kB / 478.8 MB, free: 1.773 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3236/0.3256, allocations: 59.36 MB / 0.5256 GB, free: 8.09 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.08289/0.4085, allocations: 74.25 MB / 0.5981 GB, free: 10.16 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.02086/0.4294, allocations: 18.83 MB / 0.6165 GB, free: 7.258 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001065/0.4305, allocations: 19.94 kB / 0.6165 GB, free: 7.238 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008604/0.4314, allocations: 234.2 kB / 0.6167 GB, free: 7.008 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008029/0.4394, allocations: 2.345 MB / 0.619 GB, free: 4.648 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005273/0.4447, allocations: 1.593 MB / 0.6206 GB, free: 3.047 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.002146/0.4469, allocations: 1.216 MB / 0.6218 GB, free: 1.828 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00062/0.4476, allocations: 355.6 kB / 0.6221 GB, free: 1.473 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002717/0.4503, allocations: 1.069 MB / 0.6231 GB, free: 408 kB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001044/0.4514, allocations: 438.4 kB / 0.6236 GB, free: 15.96 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001014/0.4515, allocations: 48 kB / 0.6236 GB, free: 15.92 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006931/0.4584, allocations: 1.712 MB / 0.6253 GB, free: 14.21 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002296/0.4587, allocations: 139.5 kB / 0.6254 GB, free: 14.07 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00042/0.4591, allocations: 286.7 kB / 0.6257 GB, free: 13.79 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005703/0.4648, allocations: 2.177 MB / 0.6278 GB, free: 11.61 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.215e-06/0.4649, allocations: 4 kB / 0.6278 GB, free: 11.6 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.4649, allocations: 0 / 0.6278 GB, free: 11.6 MB / 478.1 MB Notification: Performance of Transformations before backend: time 1.048e-05/0.4649, allocations: 0 / 0.6278 GB, free: 11.6 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.002005/0.4669, allocations: 1.037 MB / 0.6288 GB, free: 10.51 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.164e-05/0.467, allocations: 12.03 kB / 0.6288 GB, free: 10.5 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001256/0.4671, allocations: 47.44 kB / 0.6289 GB, free: 10.45 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000665/0.4678, allocations: 406.4 kB / 0.6293 GB, free: 10.02 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.268e-05/0.4678, allocations: 32.94 kB / 0.6293 GB, free: 9.988 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.021e-05/0.4679, allocations: 36 kB / 0.6293 GB, free: 9.953 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008109/0.4687, allocations: 448.6 kB / 0.6298 GB, free: 9.492 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.033e-05/0.4687, allocations: 3.984 kB / 0.6298 GB, free: 9.488 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.042e-05/0.4688, allocations: 16 kB / 0.6298 GB, free: 9.473 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.709e-05/0.4688, allocations: 12 kB / 0.6298 GB, free: 9.461 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008483/0.4697, allocations: 379.7 kB / 0.6301 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.002861/0.4725, allocations: 2.192 MB / 0.6323 GB, free: 6.668 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007035/0.4733, allocations: 363.5 kB / 0.6326 GB, free: 6.305 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003352/0.4736, allocations: 185.5 kB / 0.6328 GB, free: 6.121 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001352/0.475, allocations: 1.013 MB / 0.6338 GB, free: 5.008 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004025/0.4754, allocations: 205.5 kB / 0.634 GB, free: 4.797 MB / 478.1 MB Notification: Performance of pre-optimization done (n=35): time 2.224e-06/0.4754, allocations: 0 / 0.634 GB, free: 4.797 MB / 478.1 MB Notification: Performance of matching and sorting (n=35): time 0.001536/0.4769, allocations: 0.7127 MB / 0.6347 GB, free: 4.035 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.21e-05/0.477, allocations: 59.41 kB / 0.6348 GB, free: 3.965 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004471/0.4775, allocations: 393.6 kB / 0.6351 GB, free: 3.574 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 3.444e-05/0.4775, allocations: 33.7 kB / 0.6352 GB, free: 3.535 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001659/0.4777, allocations: 235.9 kB / 0.6354 GB, free: 3.301 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.657e-05/0.4778, allocations: 122.4 kB / 0.6355 GB, free: 3.18 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001663/0.4779, allocations: 82.03 kB / 0.6356 GB, free: 3.094 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001324/0.4781, allocations: 350.8 kB / 0.6359 GB, free: 2.742 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003243/0.4784, allocations: 152.8 kB / 0.6361 GB, free: 2.59 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000372/0.4788, allocations: 241.7 kB / 0.6363 GB, free: 2.324 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.00227/0.4811, allocations: 0.952 MB / 0.6372 GB, free: 1.32 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.697e-06/0.4811, allocations: 0 / 0.6372 GB, free: 1.32 MB / 478.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001121/0.4822, allocations: 0.5178 MB / 0.6377 GB, free: 0.7891 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.023e-05/0.4823, allocations: 8 kB / 0.6377 GB, free: 0.7812 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.819e-06/0.4823, allocations: 7.938 kB / 0.6377 GB, free: 0.7734 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002334/0.4825, allocations: 73.67 kB / 0.6378 GB, free: 0.6953 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003417/0.4829, allocations: 71.89 kB / 0.6379 GB, free: 0.625 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007655/0.4837, allocations: 1.128 MB / 0.639 GB, free: 15.45 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003731/0.484, allocations: 47.58 kB / 0.639 GB, free: 15.4 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.403e-05/0.4841, allocations: 19.94 kB / 0.639 GB, free: 15.38 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.0002295/0.4843, allocations: 177.7 kB / 0.6392 GB, free: 15.2 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.913e-05/0.4844, allocations: 47.42 kB / 0.6393 GB, free: 15.15 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009903/0.4854, allocations: 477 kB / 0.6397 GB, free: 14.66 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.045e-05/0.4854, allocations: 8 kB / 0.6397 GB, free: 14.66 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/0.4855, allocations: 0 / 0.6397 GB, free: 14.66 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/0.4855, allocations: 0 / 0.6397 GB, free: 14.66 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001602/0.4871, allocations: 0.9732 MB / 0.6407 GB, free: 13.62 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.44e-06/0.4871, allocations: 3.984 kB / 0.6407 GB, free: 13.61 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002514/0.4873, allocations: 47.97 kB / 0.6407 GB, free: 13.57 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001955/0.4876, allocations: 65.67 kB / 0.6408 GB, free: 13.5 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.811e-05/0.4876, allocations: 8 kB / 0.6408 GB, free: 13.49 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007024/0.4883, allocations: 1.12 MB / 0.6419 GB, free: 12.32 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.4883, allocations: 0 / 0.6419 GB, free: 12.32 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00121/0.4895, allocations: 0.6787 MB / 0.6426 GB, free: 11.61 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000203/0.4898, allocations: 152.5 kB / 0.6427 GB, free: 11.45 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.824e-05/0.4898, allocations: 11.94 kB / 0.6427 GB, free: 11.43 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002774/0.4901, allocations: 15.92 kB / 0.6427 GB, free: 11.42 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.087e-05/0.4902, allocations: 35.91 kB / 0.6428 GB, free: 11.38 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.251e-05/0.4903, allocations: 16.05 kB / 0.6428 GB, free: 11.37 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0003165/0.4906, allocations: 287.1 kB / 0.643 GB, free: 11.09 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4906, allocations: 0 / 0.643 GB, free: 11.09 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.001352/0.4919, allocations: 0.5228 MB / 0.6436 GB, free: 10.56 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.001555/0.4935, allocations: 0.8377 MB / 0.6444 GB, free: 9.715 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0009686/0.4945, allocations: 367.9 kB / 0.6447 GB, free: 9.355 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.4945, allocations: 0 / 0.6447 GB, free: 9.355 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004161/0.4949, allocations: 195.7 kB / 0.6449 GB, free: 9.164 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001082/0.496, allocations: 201.6 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.001685/0.4977, allocations: 0.8999 MB / 0.646 GB, free: 8.039 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003881/0.4981, allocations: 0.8312 MB / 0.6468 GB, free: 7.18 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0003128/0.4985, allocations: 92.03 kB / 0.6469 GB, free: 7.09 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001219/0.4986, allocations: 47.41 kB / 0.6469 GB, free: 7.043 MB / 494.1 MB Notification: Performance of SimCode: time 6.01e-07/0.4986, allocations: 0 / 0.6469 GB, free: 7.043 MB / 494.1 MB Notification: Performance of Templates: time 0.0278/0.5264, allocations: 18.4 MB / 0.6649 GB, free: 4.711 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)