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.08578/0.08578, allocations: 15.28 MB / 31.53 MB, free: 4.141 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.001075/0.001075, allocations: 111.2 kB / 36.53 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.001269/0.001269, allocations: 193.1 kB / 41.64 MB, free: 7.156 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.383/1.383, allocations: 222.9 MB / 269.5 MB, free: 6.852 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1326/0.1326, allocations: 23.35 MB / 347.2 MB, free: 0.6719 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001965/0.001965, allocations: 115.8 kB / 419.7 MB, free: 29.7 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.108/0.11, allocations: 59.37 MB / 479 MB, free: 2.27 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.2694/0.3794, allocations: 80.26 MB / 0.5462 GB, free: 9.172 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0167/0.3961, allocations: 22.19 MB / 0.5678 GB, free: 2.91 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006933/0.3969, allocations: 19.88 kB / 0.5679 GB, free: 2.891 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006472/0.3975, allocations: 266.6 kB / 0.5681 GB, free: 2.758 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005886/0.4034, allocations: 2.445 MB / 0.5705 GB, free: 1.219 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004885/0.4083, allocations: 2.054 MB / 0.5725 GB, free: 15.83 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001527/0.4099, allocations: 1.366 MB / 0.5738 GB, free: 14.66 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005274/0.4104, allocations: 458.2 kB / 0.5743 GB, free: 14.3 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002203/0.4126, allocations: 1.145 MB / 0.5754 GB, free: 13.23 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006659/0.4133, allocations: 0.5293 MB / 0.5759 GB, free: 12.7 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.59e-05/0.4134, allocations: 52 kB / 0.576 GB, free: 12.65 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004589/0.418, allocations: 1.852 MB / 0.5778 GB, free: 10.8 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001768/0.4182, allocations: 159.5 kB / 0.5779 GB, free: 10.64 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003402/0.4185, allocations: 326.6 kB / 0.5782 GB, free: 10.32 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004066/0.4226, allocations: 2.399 MB / 0.5806 GB, free: 7.914 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.4226, allocations: 4 kB / 0.5806 GB, free: 7.91 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.4226, allocations: 0 / 0.5806 GB, free: 7.91 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.895e-06/0.4226, allocations: 0 / 0.5806 GB, free: 7.91 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.001967/0.4246, allocations: 1.108 MB / 0.5817 GB, free: 6.754 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.298e-05/0.4247, allocations: 12.03 kB / 0.5817 GB, free: 6.742 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000122/0.4248, allocations: 55.34 kB / 0.5817 GB, free: 6.688 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006149/0.4254, allocations: 434.2 kB / 0.5821 GB, free: 6.223 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.593e-05/0.4255, allocations: 37 kB / 0.5822 GB, free: 6.188 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.726e-05/0.4255, allocations: 40 kB / 0.5822 GB, free: 6.148 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008528/0.4264, allocations: 0.5318 MB / 0.5827 GB, free: 5.59 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.683e-05/0.4264, allocations: 4 kB / 0.5827 GB, free: 5.586 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.338e-05/0.4265, allocations: 16 kB / 0.5828 GB, free: 5.57 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.279e-05/0.4265, allocations: 8 kB / 0.5828 GB, free: 5.562 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009698/0.4275, allocations: 0.4918 MB / 0.5832 GB, free: 5.074 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.00376/0.4312, allocations: 2.47 MB / 0.5857 GB, free: 2.355 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001228/0.4325, allocations: 419.1 kB / 0.5861 GB, free: 1.934 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007726/0.4333, allocations: 257.1 kB / 0.5863 GB, free: 1.68 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001975/0.4353, allocations: 1.115 MB / 0.5874 GB, free: 476 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005061/0.4358, allocations: 264.5 kB / 0.5876 GB, free: 196 kB / 398.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0001715/0.436, allocations: 47.53 kB / 0.5877 GB, free: 148 kB / 398.1 MB Notification: Performance of pre-optimization done (n=41): time 2.054e-06/0.436, allocations: 0 / 0.5877 GB, free: 148 kB / 398.1 MB Notification: Performance of matching and sorting (n=41): time 0.001759/0.4378, allocations: 0.8043 MB / 0.5885 GB, free: 15.29 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.867e-05/0.4378, allocations: 59.73 kB / 0.5885 GB, free: 15.22 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004305/0.4383, allocations: 401.5 kB / 0.5889 GB, free: 14.82 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.951e-05/0.4383, allocations: 37.7 kB / 0.589 GB, free: 14.78 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001616/0.4385, allocations: 244.1 kB / 0.5892 GB, free: 14.54 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001432/0.4386, allocations: 138 kB / 0.5893 GB, free: 14.4 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001509/0.4388, allocations: 102.1 kB / 0.5894 GB, free: 14.3 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001559/0.4389, allocations: 358.7 kB / 0.5898 GB, free: 13.94 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003538/0.4393, allocations: 177 kB / 0.5899 GB, free: 13.77 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004237/0.4397, allocations: 275.4 kB / 0.5902 GB, free: 13.46 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.004087/0.4438, allocations: 1.315 MB / 0.5915 GB, free: 12.09 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.168e-06/0.4438, allocations: 0 / 0.5915 GB, free: 12.09 MB / 414.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001141/0.445, allocations: 0.5946 MB / 0.5921 GB, free: 11.48 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.646e-05/0.445, allocations: 4 kB / 0.5921 GB, free: 11.48 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.696e-06/0.445, allocations: 4 kB / 0.5921 GB, free: 11.48 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002293/0.4453, allocations: 81.97 kB / 0.5921 GB, free: 11.39 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004354/0.4457, allocations: 99.81 kB / 0.5922 GB, free: 11.29 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000765/0.4465, allocations: 1.113 MB / 0.5933 GB, free: 10.13 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003615/0.4469, allocations: 19.98 kB / 0.5933 GB, free: 10.11 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.008e-05/0.4469, allocations: 23.98 kB / 0.5934 GB, free: 10.09 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.0002307/0.4472, allocations: 185.6 kB / 0.5935 GB, free: 9.895 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.284e-05/0.4473, allocations: 51.45 kB / 0.5936 GB, free: 9.844 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001209/0.4485, allocations: 0.58 MB / 0.5942 GB, free: 9.242 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.237e-06/0.4485, allocations: 4 kB / 0.5942 GB, free: 9.238 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.4485, allocations: 4 kB / 0.5942 GB, free: 9.234 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.717e-06/0.4485, allocations: 7.922 kB / 0.5942 GB, free: 9.227 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001802/0.4503, allocations: 1.126 MB / 0.5953 GB, free: 8.035 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.985e-06/0.4503, allocations: 0 / 0.5953 GB, free: 8.035 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003718/0.4507, allocations: 71.89 kB / 0.5953 GB, free: 7.965 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001768/0.4509, allocations: 77.64 kB / 0.5954 GB, free: 7.883 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.395e-05/0.451, allocations: 11.98 kB / 0.5954 GB, free: 7.871 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007014/0.4517, allocations: 1.116 MB / 0.5965 GB, free: 6.703 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.719e-06/0.4517, allocations: 8.016 kB / 0.5965 GB, free: 6.695 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001372/0.4531, allocations: 0.803 MB / 0.5973 GB, free: 5.867 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002023/0.4533, allocations: 164.5 kB / 0.5975 GB, free: 5.688 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.338e-05/0.4534, allocations: 8 kB / 0.5975 GB, free: 5.68 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003022/0.4537, allocations: 15.98 kB / 0.5975 GB, free: 5.664 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.184e-05/0.4538, allocations: 31.95 kB / 0.5975 GB, free: 5.633 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.618e-05/0.4538, allocations: 19.98 kB / 0.5975 GB, free: 5.613 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003026/0.4541, allocations: 275.2 kB / 0.5978 GB, free: 5.344 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4541, allocations: 4 kB / 0.5978 GB, free: 5.34 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001373/0.4555, allocations: 0.5774 MB / 0.5984 GB, free: 4.762 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.001681/0.4572, allocations: 0.8847 MB / 0.5992 GB, free: 3.863 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001081/0.4583, allocations: 474 kB / 0.5997 GB, free: 3.398 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.4583, allocations: 0 / 0.5997 GB, free: 3.398 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005115/0.4588, allocations: 228.2 kB / 0.5999 GB, free: 3.176 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001072/0.4599, allocations: 232.1 kB / 0.6001 GB, free: 2.957 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001972/0.4619, allocations: 1.068 MB / 0.6012 GB, free: 1.863 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004025/0.4623, allocations: 0.8469 MB / 0.602 GB, free: 0.9883 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003351/0.4627, allocations: 116.1 kB / 0.6021 GB, free: 0.8711 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001324/0.4628, allocations: 59.41 kB / 0.6022 GB, free: 0.8125 MB / 414.1 MB Notification: Performance of SimCode: time 2.5e-07/0.4628, allocations: 0 / 0.6022 GB, free: 0.8125 MB / 414.1 MB Notification: Performance of Templates: time 0.0277/0.4905, allocations: 19.63 MB / 0.6213 GB, free: 13.25 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 -s gbode -lv LOG_STATS > Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_4element.pipe 2>&1)