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.09523/0.09523, allocations: 15.28 MB / 30.78 MB, free: 4.215 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.001073/0.001073, allocations: 108.7 kB / 35.78 MB, free: 3.234 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.001208/0.001208, allocations: 197 kB / 40.88 MB, free: 7.223 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.438/1.438, allocations: 222.9 MB / 268.7 MB, free: 6.918 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1401/0.1401, allocations: 23.36 MB / 346.4 MB, free: 0.7305 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00199/0.00199, allocations: 112.3 kB / 418.2 MB, free: 30.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1259/0.1279, allocations: 59.36 MB / 477.6 MB, free: 3.016 MB / 334.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.3078/0.4357, allocations: 80.48 MB / 0.545 GB, free: 8.09 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01896/0.4547, allocations: 22.19 MB / 0.5666 GB, free: 1.879 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009312/0.4557, allocations: 15.94 kB / 0.5666 GB, free: 1.863 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007685/0.4564, allocations: 260.5 kB / 0.5669 GB, free: 1.727 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006506/0.463, allocations: 2.45 MB / 0.5693 GB, free: 280 kB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006124/0.4691, allocations: 2.061 MB / 0.5713 GB, free: 15.11 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001881/0.471, allocations: 1.372 MB / 0.5726 GB, free: 14.03 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006507/0.4717, allocations: 455.6 kB / 0.5731 GB, free: 13.68 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002464/0.4742, allocations: 1.136 MB / 0.5742 GB, free: 12.83 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008735/0.4751, allocations: 0.5318 MB / 0.5747 GB, free: 12.38 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 9.078e-05/0.4752, allocations: 52 kB / 0.5748 GB, free: 12.32 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005553/0.4807, allocations: 1.85 MB / 0.5766 GB, free: 10.57 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002206/0.481, allocations: 162.3 kB / 0.5767 GB, free: 10.42 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004128/0.4814, allocations: 325.5 kB / 0.577 GB, free: 10.1 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006519/0.4879, allocations: 2.391 MB / 0.5794 GB, free: 7.898 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.213e-06/0.488, allocations: 0 / 0.5794 GB, free: 7.898 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.375e-06/0.488, allocations: 0 / 0.5794 GB, free: 7.898 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.2e-05/0.488, allocations: 4 kB / 0.5794 GB, free: 7.895 MB / 398.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.002357/0.4904, allocations: 1.109 MB / 0.5804 GB, free: 6.746 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.67e-05/0.4904, allocations: 8.031 kB / 0.5805 GB, free: 6.738 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001537/0.4906, allocations: 59.34 kB / 0.5805 GB, free: 6.68 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005773/0.4912, allocations: 411.7 kB / 0.5809 GB, free: 6.246 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.856e-05/0.4912, allocations: 37 kB / 0.5809 GB, free: 6.211 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.026e-05/0.4913, allocations: 40 kB / 0.581 GB, free: 6.172 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008855/0.4922, allocations: 0.5318 MB / 0.5815 GB, free: 5.613 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.845e-05/0.4922, allocations: 4 kB / 0.5815 GB, free: 5.609 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.679e-05/0.4923, allocations: 16 kB / 0.5815 GB, free: 5.594 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.428e-05/0.4923, allocations: 11.98 kB / 0.5815 GB, free: 5.582 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008975/0.4932, allocations: 499.7 kB / 0.582 GB, free: 5.098 MB / 398.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.003104/0.4963, allocations: 2.473 MB / 0.5844 GB, free: 2.395 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007323/0.4971, allocations: 427 kB / 0.5848 GB, free: 1.965 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004678/0.4976, allocations: 253.1 kB / 0.5851 GB, free: 1.715 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00141/0.499, allocations: 1.124 MB / 0.5862 GB, free: 0.5 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004593/0.4994, allocations: 264.8 kB / 0.5864 GB, free: 236 kB / 398.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0001713/0.4996, allocations: 51.03 kB / 0.5865 GB, free: 188 kB / 398.1 MB Notification: Performance of pre-optimization done (n=41): time 2.024e-06/0.4996, allocations: 0 / 0.5865 GB, free: 188 kB / 398.1 MB Notification: Performance of matching and sorting (n=41): time 0.001691/0.5013, allocations: 0.8082 MB / 0.5873 GB, free: 15.33 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.56e-05/0.5014, allocations: 59.34 kB / 0.5873 GB, free: 15.26 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004224/0.5018, allocations: 401.5 kB / 0.5877 GB, free: 14.86 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.911e-05/0.5019, allocations: 37.7 kB / 0.5877 GB, free: 14.82 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001714/0.5021, allocations: 244.1 kB / 0.588 GB, free: 14.57 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001208/0.5022, allocations: 136.2 kB / 0.5881 GB, free: 14.44 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001477/0.5023, allocations: 98.14 kB / 0.5882 GB, free: 14.34 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001484/0.5025, allocations: 366.7 kB / 0.5885 GB, free: 13.97 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003796/0.5029, allocations: 181 kB / 0.5887 GB, free: 13.8 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004349/0.5033, allocations: 267.4 kB / 0.589 GB, free: 13.5 MB / 414.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.004151/0.5075, allocations: 1.327 MB / 0.5903 GB, free: 12.12 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.168e-06/0.5075, allocations: 0 / 0.5903 GB, free: 12.12 MB / 414.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001247/0.5088, allocations: 0.5948 MB / 0.5908 GB, free: 11.52 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.896e-05/0.5088, allocations: 4 kB / 0.5908 GB, free: 11.51 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.246e-05/0.5088, allocations: 4 kB / 0.5908 GB, free: 11.51 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002439/0.5091, allocations: 73.67 kB / 0.5909 GB, free: 11.43 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004395/0.5095, allocations: 95.88 kB / 0.591 GB, free: 11.34 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008644/0.5104, allocations: 1.116 MB / 0.5921 GB, free: 10.17 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004268/0.5109, allocations: 19.98 kB / 0.5921 GB, free: 10.15 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.787e-05/0.5109, allocations: 23.94 kB / 0.5921 GB, free: 10.12 MB / 414.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.0003016/0.5112, allocations: 189.8 kB / 0.5923 GB, free: 9.93 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001253/0.5114, allocations: 43.44 kB / 0.5924 GB, free: 9.887 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001266/0.5126, allocations: 0.5799 MB / 0.5929 GB, free: 9.285 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.141e-05/0.5127, allocations: 4 kB / 0.5929 GB, free: 9.281 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.568e-06/0.5127, allocations: 0 / 0.5929 GB, free: 9.281 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.117e-05/0.5127, allocations: 11.86 kB / 0.5929 GB, free: 9.27 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002065/0.5148, allocations: 1.125 MB / 0.594 GB, free: 8.086 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.557e-06/0.5148, allocations: 0 / 0.594 GB, free: 8.086 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003331/0.5151, allocations: 71.89 kB / 0.5941 GB, free: 8.016 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001775/0.5153, allocations: 73.7 kB / 0.5942 GB, free: 7.938 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.903e-05/0.5154, allocations: 15.92 kB / 0.5942 GB, free: 7.922 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000797/0.5162, allocations: 1.12 MB / 0.5953 GB, free: 6.75 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/0.5162, allocations: 8.188 kB / 0.5953 GB, free: 6.742 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001421/0.5176, allocations: 0.7977 MB / 0.5961 GB, free: 5.918 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002436/0.5179, allocations: 160.5 kB / 0.5962 GB, free: 5.742 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001004/0.518, allocations: 16 kB / 0.5962 GB, free: 5.727 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000313/0.5183, allocations: 15.98 kB / 0.5963 GB, free: 5.711 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000116/0.5184, allocations: 35.73 kB / 0.5963 GB, free: 5.676 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.199e-05/0.5185, allocations: 19.98 kB / 0.5963 GB, free: 5.656 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.000354/0.5188, allocations: 283.1 kB / 0.5966 GB, free: 5.379 MB / 414.1 MB Notification: Performance of sort global known variables: time 3.51e-07/0.5188, allocations: 0 / 0.5966 GB, free: 5.379 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001973/0.5208, allocations: 0.5696 MB / 0.5971 GB, free: 4.809 MB / 414.1 MB 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.002261/0.5231, allocations: 0.8865 MB / 0.598 GB, free: 3.996 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001221/0.5243, allocations: 494.3 kB / 0.5985 GB, free: 3.512 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.579e-06/0.5243, allocations: 0 / 0.5985 GB, free: 3.512 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005025/0.5248, allocations: 232.2 kB / 0.5987 GB, free: 3.285 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001141/0.526, allocations: 222.1 kB / 0.5989 GB, free: 3.07 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002128/0.5281, allocations: 1.091 MB / 0.6 GB, free: 1.961 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004178/0.5286, allocations: 0.843 MB / 0.6008 GB, free: 1.09 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.000433/0.529, allocations: 112.2 kB / 0.6009 GB, free: 0.9766 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001497/0.5292, allocations: 59.34 kB / 0.601 GB, free: 0.918 MB / 414.1 MB Notification: Performance of SimCode: time 3.31e-07/0.5292, allocations: 0 / 0.601 GB, free: 0.918 MB / 414.1 MB Notification: Performance of Templates: time 0.03238/0.5616, allocations: 19.63 MB / 0.6201 GB, free: 13.37 MB / 446.1 MB 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)