Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_2element.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_2element,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_2element") translateModel(Physiolibrary.Fluid.Examples.Windkessel_2element,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_2element") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009827/0.0009827, allocations: 172.5 kB / 7.646 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.344/1.344, allocations: 221.5 MB / 229.6 MB, free: 7.57 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009938/0.0009938, allocations: 90.05 kB / 280.5 MB, free: 5.312 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/package.mo): time 0.1798/0.1798, allocations: 37.09 MB / 368.3 MB, free: 9.969 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.856e-05/1.858e-05, allocations: 0 / 434.6 MB, free: 23.11 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1202/0.1203, allocations: 60.08 MB / 494.7 MB, free: 11.07 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4439/0.5642, allocations: 173.7 MB / 0.6527 GB, free: 10.39 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002106/0.5645, allocations: 79.58 kB / 0.6528 GB, free: 10.36 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 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 unlimitedPump.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$unlimitedPump. 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 unlimitedVolume.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: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.5895/1.154, allocations: 168.5 MB / 0.8174 GB, free: 92.26 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.343e-06/1.154, allocations: 7.938 kB / 0.8174 GB, free: 92.25 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 3.525e-05/1.154, allocations: 12 kB / 0.8174 GB, free: 92.24 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.002533/1.157, allocations: 1.485 MB / 0.8188 GB, free: 90.71 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.467e-05/1.157, allocations: 8.031 kB / 0.8188 GB, free: 90.7 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001073/1.157, allocations: 75.11 kB / 0.8189 GB, free: 90.62 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008056/1.158, allocations: 0.5734 MB / 0.8195 GB, free: 90.01 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.333e-05/1.158, allocations: 15.94 kB / 0.8195 GB, free: 89.99 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.804e-05/1.158, allocations: 27.91 kB / 0.8195 GB, free: 89.96 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003777/1.158, allocations: 277.4 kB / 0.8198 GB, free: 89.7 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004175/1.159, allocations: 315.1 kB / 0.8201 GB, free: 89.37 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.189e-05/1.159, allocations: 0 / 0.8201 GB, free: 89.37 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.958e-05/1.159, allocations: 3.984 kB / 0.8201 GB, free: 89.36 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.779e-06/1.159, allocations: 11.95 kB / 0.8201 GB, free: 89.35 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00182/1.16, allocations: 1.949 MB / 0.822 GB, free: 87.2 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003451/1.161, allocations: 287 kB / 0.8223 GB, free: 86.91 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001403/1.161, allocations: 117.3 kB / 0.8224 GB, free: 86.8 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009294/1.162, allocations: 0.9742 MB / 0.8233 GB, free: 85.72 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001804/1.162, allocations: 152.2 kB / 0.8235 GB, free: 85.56 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=29): time 1.803e-06/1.162, allocations: 0 / 0.8235 GB, free: 85.56 MB / 0.4948 GB Notification: Performance of matching and sorting (n=29): time 0.0006763/1.163, allocations: 311.1 kB / 0.8238 GB, free: 85.25 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.085e-05/1.163, allocations: 55.64 kB / 0.8238 GB, free: 85.18 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004234/1.163, allocations: 479.5 kB / 0.8243 GB, free: 84.71 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 2.275e-05/1.163, allocations: 29.7 kB / 0.8243 GB, free: 84.68 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001382/1.163, allocations: 316.2 kB / 0.8246 GB, free: 84.37 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 5.483e-05/1.163, allocations: 98.5 kB / 0.8247 GB, free: 84.27 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.619e-05/1.163, allocations: 4 kB / 0.8247 GB, free: 84.27 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 7.197e-05/1.164, allocations: 374.7 kB / 0.8251 GB, free: 83.89 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000132/1.164, allocations: 104.8 kB / 0.8252 GB, free: 83.79 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001548/1.164, allocations: 199.2 kB / 0.8254 GB, free: 83.55 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005176/1.164, allocations: 160.2 kB / 0.8255 GB, free: 83.39 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/1.164, allocations: 3.938 kB / 0.8255 GB, free: 83.39 MB / 0.4948 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.000829/1.165, allocations: 438.9 kB / 0.8259 GB, free: 82.95 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.411e-05/1.165, allocations: 4 kB / 0.8259 GB, free: 82.95 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.604e-06/1.165, allocations: 4 kB / 0.8259 GB, free: 82.94 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001294/1.165, allocations: 28.84 kB / 0.826 GB, free: 82.91 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002834/1.166, allocations: 83.83 kB / 0.8261 GB, free: 82.83 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002654/1.166, allocations: 0.5603 MB / 0.8266 GB, free: 82.24 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003503/1.166, allocations: 47.56 kB / 0.8266 GB, free: 82.2 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.387e-05/1.166, allocations: 19.94 kB / 0.8267 GB, free: 82.18 MB / 0.4948 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: resistance.massFlowRate:VARIABLE(min = -100000.0 max = 100000.0 unit = "kg/s" nominal = 0.001 ) "Mass flow" type: Real 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * Single equations (assignments): 42 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001139/1.166, allocations: 122.1 kB / 0.8268 GB, free: 82.05 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.424e-05/1.167, allocations: 63.23 kB / 0.8268 GB, free: 81.99 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000623/1.167, allocations: 379.2 kB / 0.8272 GB, free: 81.6 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.26e-06/1.167, allocations: 4 kB / 0.8272 GB, free: 81.59 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.088e-06/1.167, allocations: 0 / 0.8272 GB, free: 81.59 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.699e-06/1.167, allocations: 0 / 0.8272 GB, free: 81.59 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009669/1.168, allocations: 0.8397 MB / 0.828 GB, free: 80.7 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/1.168, allocations: 32 / 0.828 GB, free: 80.7 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002067/1.168, allocations: 51.97 kB / 0.8281 GB, free: 80.65 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.003e-05/1.168, allocations: 32.72 kB / 0.8281 GB, free: 80.62 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.943e-05/1.168, allocations: 3.984 kB / 0.8281 GB, free: 80.61 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002317/1.169, allocations: 0.5446 MB / 0.8286 GB, free: 80.04 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/1.169, allocations: 8.047 kB / 0.8287 GB, free: 80.04 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006309/1.169, allocations: 0.5371 MB / 0.8292 GB, free: 79.47 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00014/1.17, allocations: 168.3 kB / 0.8293 GB, free: 79.29 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.693e-05/1.17, allocations: 11.95 kB / 0.8294 GB, free: 79.27 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002921/1.17, allocations: 28.03 kB / 0.8294 GB, free: 79.25 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.999e-05/1.17, allocations: 15.97 kB / 0.8294 GB, free: 79.23 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.025e-05/1.17, allocations: 12 kB / 0.8294 GB, free: 79.22 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.000305/1.17, allocations: 371.2 kB / 0.8298 GB, free: 78.86 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.4e-07/1.17, allocations: 0 / 0.8298 GB, free: 78.86 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.001469/1.172, allocations: 0.6397 MB / 0.8304 GB, free: 78.22 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (arteries.enthalpy,arteries.mass) * Number of discrete variables: 5 (pulses.b,$whenCondition1,pulses.T0,pulses.HP,pulses.TD2) * Number of discrete states: 2 (pulses.T0,pulses.HP) * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 21 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.001476/1.173, allocations: 1.145 MB / 0.8315 GB, free: 77.07 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0004137/1.174, allocations: 260.8 kB / 0.8317 GB, free: 76.81 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/1.174, allocations: 0 / 0.8317 GB, free: 76.81 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0001735/1.174, allocations: 123.8 kB / 0.8319 GB, free: 76.69 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001271/1.175, allocations: 320.1 kB / 0.8322 GB, free: 76.38 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009945/1.176, allocations: 0.7297 MB / 0.8329 GB, free: 75.63 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002219/1.176, allocations: 0.8783 MB / 0.8337 GB, free: 74.72 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.0003171/1.177, allocations: 116.9 kB / 0.8339 GB, free: 74.6 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.778e-05/1.177, allocations: 51.42 kB / 0.8339 GB, free: 74.55 MB / 0.4948 GB Notification: Performance of SimCode: time 8.42e-07/1.177, allocations: 0 / 0.8339 GB, free: 74.55 MB / 0.4948 GB Notification: Performance of Templates: time 0.02349/1.2, allocations: 20.92 MB / 0.8543 GB, free: 53.7 MB / 0.4948 GB make -j1 -f Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_2element.makefile (rm -f Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_2element.pipe ; mkfifo Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_2element.pipe ; head -c 1048576 < Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_2element.pipe >> ../files/Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_2element.sim & ./Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_2element -abortSlowSimulation -alarm=480 -lv LOG_STATS > Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_2element.pipe 2>&1)