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/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/package.mo", uses=false) Using package Physiolibrary with version 3.0.0-beta1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/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 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.007509/0.007509, allocations: 171.7 kB / 15.12 MB, free: 5.969 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.493/1.493, allocations: 223.2 MB / 239 MB, free: 32 kB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009065/0.0009064, allocations: 98.28 kB / 290.2 MB, free: 4.484 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/package.mo): time 0.2599/0.2599, allocations: 37.07 MB / 378.4 MB, free: 7.805 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000372/0.0003721, allocations: 12 kB / 449 MB, free: 79.98 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1522/0.1526, allocations: 60.08 MB / 0.4971 GB, free: 19.88 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5324/0.6851, allocations: 174.9 MB / 0.6679 GB, free: 11.85 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002417/0.6854, allocations: 78.72 kB / 0.668 GB, free: 11.81 MB / 458.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/Fluid.mo:660:7-660:66:writable] Warning: No corresponding 'inner' declaration found for component .Modelica.Fluid.System heart.system declared as 'outer '. The existing 'inner' components are: There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: Physiolibrary.Fluid.Sources.MassInflowSource$heart. Check if you have not misspelled the 'outer' component name. Please declare an 'inner' component with the same name in the top scope. Continuing flattening by only considering the 'outer' component declaration. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/Fluid.mo:660:7-660:66:writable] Warning: No corresponding 'inner' declaration found for component .Modelica.Fluid.System arteries.system declared as 'outer '. The existing 'inner' components are: There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: Physiolibrary.Fluid.Components.ElasticVessel$arteries. Check if you have not misspelled the 'outer' component name. Please declare an 'inner' component with the same name in the top scope. Continuing flattening by only considering the 'outer' component declaration. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/Fluid.mo:546:7-546:66:writable] Warning: No corresponding 'inner' declaration found for component .Modelica.Fluid.System resistance.system declared as 'outer '. The existing 'inner' components are: There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: Physiolibrary.Fluid.Components.Conductor$resistance. Check if you have not misspelled the 'outer' component name. Please declare an 'inner' component with the same name in the top scope. Continuing flattening by only considering the 'outer' component declaration. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/Fluid.mo:660:7-660:66:writable] Warning: No corresponding 'inner' declaration found for component .Modelica.Fluid.System veins.system declared as 'outer '. The existing 'inner' components are: There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: Physiolibrary.Fluid.Sources.PressureSource. Check if you have not misspelled the 'outer' component name. Please declare an 'inner' component with the same name in the top scope. Continuing flattening by only considering the 'outer' component declaration. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/Fluid.mo:546:7-546:66:writable] Warning: No corresponding 'inner' declaration found for component .Modelica.Fluid.System impedance.system declared as 'outer '. The existing 'inner' components are: There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: Physiolibrary.Fluid.Components.Conductor$impedance. Check if you have not misspelled the 'outer' component name. Please declare an 'inner' component with the same name in the top scope. Continuing flattening by only considering the 'outer' component declaration. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/Fluid.mo:546:7-546:66:writable] Warning: No corresponding 'inner' declaration found for component .Modelica.Fluid.System inertia.system declared as 'outer '. The existing 'inner' components are: There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: Physiolibrary.Fluid.Components.Inertia$inertia. Check if you have not misspelled the 'outer' component name. Please declare an 'inner' component with the same name in the top scope. Continuing flattening by only considering the 'outer' component declaration. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/Fluid.mo:915:7-915:66:writable] Warning: No corresponding 'inner' declaration found for component .Modelica.Fluid.System pressureMeasure.system declared as 'outer '. The existing 'inner' components are: There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: Physiolibrary.Fluid.Sensors.PressureMeasure. Check if you have not misspelled the 'outer' component name. Please declare an 'inner' component with the same name in the top scope. Continuing flattening by only considering the 'outer' component declaration. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/Fluid.mo:546:7-546:66:writable] Warning: No corresponding 'inner' declaration found for component .Modelica.Fluid.System flowMeasure.system declared as 'outer '. The existing 'inner' components are: There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: Physiolibrary.Fluid.Sensors.FlowMeasure. Check if you have not misspelled the 'outer' component name. Please declare an 'inner' component with the same name in the top scope. Continuing flattening by only considering the 'outer' component declaration. Notification: Performance of FrontEnd - DAE generated: time 0.9145/1.6, allocations: 242.6 MB / 0.9049 GB, free: 45.09 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.023e-06/1.6, allocations: 0 / 0.9049 GB, free: 45.09 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0001033/1.6, allocations: 12 kB / 0.9049 GB, free: 45.07 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 102 * Number of variables: 102 Notification: Performance of Generate backend data structure: time 0.006064/1.606, allocations: 2.081 MB / 0.9069 GB, free: 42.94 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.877e-05/1.606, allocations: 19.97 kB / 0.9069 GB, free: 42.92 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004204/1.607, allocations: 94.78 kB / 0.907 GB, free: 42.83 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001893/1.609, allocations: 0.7028 MB / 0.9077 GB, free: 42.08 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.684e-05/1.609, allocations: 33 kB / 0.9078 GB, free: 42.05 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001437/1.609, allocations: 47.91 kB / 0.9078 GB, free: 42 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009839/1.61, allocations: 0.5192 MB / 0.9083 GB, free: 41.46 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.748e-05/1.61, allocations: 0 / 0.9083 GB, free: 41.46 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.085e-05/1.61, allocations: 23.94 kB / 0.9083 GB, free: 41.44 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.088e-05/1.61, allocations: 12 kB / 0.9083 GB, free: 41.43 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008925/1.611, allocations: 499.7 kB / 0.9088 GB, free: 40.94 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00361/1.614, allocations: 2.491 MB / 0.9113 GB, free: 38.21 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007352/1.615, allocations: 446.2 kB / 0.9117 GB, free: 37.76 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001702/1.617, allocations: 1.127 MB / 0.9128 GB, free: 36.54 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003873/1.617, allocations: 245.4 kB / 0.913 GB, free: 36.29 MB / 0.5105 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000396/1.618, allocations: 55.58 kB / 0.9131 GB, free: 36.23 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=40): time 2.645e-06/1.618, allocations: 0 / 0.9131 GB, free: 36.23 MB / 0.5105 GB Notification: Performance of matching and sorting (n=40): time 0.00155/1.619, allocations: 1.008 MB / 0.914 GB, free: 35.14 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.484e-05/1.619, allocations: 71.28 kB / 0.9141 GB, free: 35.05 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006696/1.62, allocations: 0.6096 MB / 0.9147 GB, free: 34.43 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 3.455e-05/1.62, allocations: 37.7 kB / 0.9147 GB, free: 34.39 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002193/1.62, allocations: 376 kB / 0.9151 GB, free: 34.02 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 8.877e-05/1.62, allocations: 142 kB / 0.9152 GB, free: 33.88 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.326e-05/1.62, allocations: 8 kB / 0.9152 GB, free: 33.87 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 6.999e-05/1.62, allocations: 322 kB / 0.9156 GB, free: 33.55 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003003/1.621, allocations: 177 kB / 0.9157 GB, free: 33.38 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003426/1.621, allocations: 289.8 kB / 0.916 GB, free: 33.05 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003343/1.621, allocations: 208.7 kB / 0.9162 GB, free: 32.84 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.697e-06/1.621, allocations: 4 kB / 0.9162 GB, free: 32.84 MB / 0.5105 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0009644/1.622, allocations: 0.6285 MB / 0.9168 GB, free: 32.2 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 2.171e-05/1.622, allocations: 11.95 kB / 0.9168 GB, free: 32.19 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.727e-06/1.622, allocations: 0 / 0.9168 GB, free: 32.19 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002883/1.623, allocations: 85.77 kB / 0.9169 GB, free: 32.1 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003918/1.623, allocations: 99.88 kB / 0.917 GB, free: 32 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000533/1.624, allocations: 1.113 MB / 0.9181 GB, free: 30.84 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005673/1.624, allocations: 43.83 kB / 0.9181 GB, free: 30.79 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.155e-05/1.624, allocations: 23.98 kB / 0.9182 GB, free: 30.77 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,$PRE.pulses.T0,pulses.T0,pulses.b,$PRE.pulses.HP,pulses.HP,$PRE.pulses.TD2,pulses.TD2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0002859/1.625, allocations: 209.8 kB / 0.9184 GB, free: 30.55 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.089e-05/1.625, allocations: 82.97 kB / 0.9184 GB, free: 30.47 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001015/1.626, allocations: 0.6062 MB / 0.919 GB, free: 29.85 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.538e-06/1.626, allocations: 8 kB / 0.919 GB, free: 29.84 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.631e-06/1.626, allocations: 3.953 kB / 0.919 GB, free: 29.84 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.473e-06/1.626, allocations: 3.984 kB / 0.919 GB, free: 29.83 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001672/1.627, allocations: 1.25 MB / 0.9203 GB, free: 28.52 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.566e-06/1.627, allocations: 0 / 0.9203 GB, free: 28.52 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003481/1.628, allocations: 59.97 kB / 0.9203 GB, free: 28.46 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00016/1.628, allocations: 81.67 kB / 0.9204 GB, free: 28.37 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.078e-05/1.628, allocations: 11.98 kB / 0.9204 GB, free: 28.36 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004648/1.629, allocations: 1.112 MB / 0.9215 GB, free: 27.2 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.472e-06/1.629, allocations: 3.938 kB / 0.9215 GB, free: 27.19 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001096/1.63, allocations: 0.8546 MB / 0.9223 GB, free: 26.3 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002628/1.63, allocations: 196.1 kB / 0.9225 GB, free: 26.09 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.199e-05/1.63, allocations: 4 kB / 0.9225 GB, free: 26.09 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003875/1.63, allocations: 43.88 kB / 0.9226 GB, free: 26.05 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.125e-05/1.631, allocations: 39.83 kB / 0.9226 GB, free: 26.01 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.541e-05/1.631, allocations: 11.98 kB / 0.9226 GB, free: 26 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0005135/1.631, allocations: 499 kB / 0.9231 GB, free: 25.51 MB / 0.5105 GB Notification: Performance of sort global known variables: time 2.2e-07/1.631, allocations: 0 / 0.9231 GB, free: 25.51 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.002945/1.634, allocations: 0.9674 MB / 0.924 GB, free: 24.54 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (arteries.enthalpy,arteries.mass,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 (37): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 3,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.002984/1.637, allocations: 1.631 MB / 0.9256 GB, free: 22.91 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0009916/1.638, allocations: 467.8 kB / 0.9261 GB, free: 22.45 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 3.527e-06/1.638, allocations: 0 / 0.9261 GB, free: 22.45 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0003908/1.638, allocations: 232.2 kB / 0.9263 GB, free: 22.22 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001931/1.64, allocations: 465.2 kB / 0.9267 GB, free: 21.78 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002128/1.643, allocations: 1.68 MB / 0.9284 GB, free: 20.07 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003148/1.643, allocations: 0.9654 MB / 0.9293 GB, free: 19.08 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.000542/1.643, allocations: 138.6 kB / 0.9295 GB, free: 18.94 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000162/1.644, allocations: 75.34 kB / 0.9295 GB, free: 18.86 MB / 0.5105 GB Notification: Performance of SimCode: time 7.72e-07/1.644, allocations: 0 / 0.9295 GB, free: 18.86 MB / 0.5105 GB Notification: Performance of Templates: time 0.3542/1.998, allocations: 33.66 MB / 0.9624 GB, free: 76.5 MB / 0.5105 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)