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-master/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/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-alpha11 (/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) Using package Chemical with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/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-master/package.mo): time 0.09971/0.09971, allocations: 15.27 MB / 31.21 MB, free: 3.086 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009015/0.0009015, allocations: 174.2 kB / 36.29 MB, free: 2.242 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.386/1.386, allocations: 223.3 MB / 264.5 MB, free: 6.32 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007586/0.0007586, allocations: 90.25 kB / 319.9 MB, free: 3.141 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/package.mo): time 0.1071/0.1071, allocations: 20.55 MB / 395.8 MB, free: 43.22 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005479/0.000548, allocations: 20 kB / 467.6 MB, free: 4.254 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2652/0.2658, allocations: 59.77 MB / 0.515 GB, free: 41.56 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1615/0.4273, allocations: 171.5 MB / 0.6825 GB, free: 13.58 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002154/0.4275, allocations: 79.95 kB / 0.6825 GB, free: 13.5 MB / 490.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/package.mo:2326:10-2326:69: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/package.mo:1652:9-1652:68: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/package.mo:1144:9-1144:68: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/package.mo:1652:9-1652:68: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/package.mo:1144:9-1144:68: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/package.mo:1807:10-1807:69: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/package.mo:1144:9-1144:68: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.4706/0.8982, allocations: 156.2 MB / 0.8351 GB, free: 40.45 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.8982, allocations: 4 kB / 0.8351 GB, free: 40.45 MB / 490.7 MB Notification: Performance of Transformations before backend: time 3.73e-05/0.8983, allocations: 12 kB / 0.8351 GB, free: 40.43 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.002238/0.9005, allocations: 1.41 MB / 0.8364 GB, free: 38.97 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.233e-05/0.9005, allocations: 8.031 kB / 0.8365 GB, free: 38.96 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001004/0.9006, allocations: 80 kB / 0.8365 GB, free: 38.88 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008342/0.9015, allocations: 0.6529 MB / 0.8372 GB, free: 38.18 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.21e-05/0.9015, allocations: 29.38 kB / 0.8372 GB, free: 38.16 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.512e-05/0.9016, allocations: 36.38 kB / 0.8372 GB, free: 38.12 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005987/0.9022, allocations: 427.5 kB / 0.8376 GB, free: 37.69 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.387e-05/0.9022, allocations: 4.188 kB / 0.8376 GB, free: 37.68 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.348e-05/0.9023, allocations: 19.94 kB / 0.8377 GB, free: 37.66 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.085e-05/0.9023, allocations: 8 kB / 0.8377 GB, free: 37.66 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005941/0.9029, allocations: 367.7 kB / 0.838 GB, free: 37.3 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002041/0.9049, allocations: 2.098 MB / 0.8401 GB, free: 34.98 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004804/0.9054, allocations: 355.1 kB / 0.8404 GB, free: 34.62 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002324/0.9057, allocations: 153.1 kB / 0.8406 GB, free: 34.47 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009237/0.9066, allocations: 1.001 MB / 0.8415 GB, free: 33.37 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002967/0.9069, allocations: 188.1 kB / 0.8417 GB, free: 33.17 MB / 490.7 MB Notification: Performance of pre-optimization done (n=33): time 1.784e-06/0.9069, allocations: 7.938 kB / 0.8417 GB, free: 33.16 MB / 490.7 MB Notification: Performance of matching and sorting (n=33): time 0.001173/0.9081, allocations: 0.7137 MB / 0.8424 GB, free: 32.4 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.085e-05/0.9081, allocations: 55.41 kB / 0.8425 GB, free: 32.34 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005604/0.9087, allocations: 0.6255 MB / 0.8431 GB, free: 31.7 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 2.378e-05/0.9087, allocations: 37.7 kB / 0.8431 GB, free: 31.66 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001506/0.9089, allocations: 335.9 kB / 0.8434 GB, free: 31.32 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.494e-05/0.909, allocations: 114.4 kB / 0.8435 GB, free: 31.21 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.586e-05/0.909, allocations: 8 kB / 0.8436 GB, free: 31.2 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 4.733e-05/0.909, allocations: 325.9 kB / 0.8439 GB, free: 30.88 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002327/0.9093, allocations: 140.7 kB / 0.844 GB, free: 30.74 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002572/0.9096, allocations: 235.2 kB / 0.8442 GB, free: 30.47 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000473/0.91, allocations: 367.3 kB / 0.8446 GB, free: 30.07 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.395e-06/0.91, allocations: 0 / 0.8446 GB, free: 30.07 MB / 490.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0007591/0.9108, allocations: 0.521 MB / 0.8451 GB, free: 29.54 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.509e-05/0.9108, allocations: 7.938 kB / 0.8451 GB, free: 29.53 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.123e-06/0.9108, allocations: 4 kB / 0.8451 GB, free: 29.53 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002257/0.9111, allocations: 65.69 kB / 0.8452 GB, free: 29.46 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002893/0.9114, allocations: 75.98 kB / 0.8452 GB, free: 29.38 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004232/0.9118, allocations: 1.109 MB / 0.8463 GB, free: 28.22 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003712/0.9122, allocations: 59.73 kB / 0.8464 GB, free: 28.16 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.161e-05/0.9122, allocations: 19.98 kB / 0.8464 GB, free: 28.14 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (45): * Single equations (assignments): 41 * 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.0001915/0.9124, allocations: 195.5 kB / 0.8466 GB, free: 27.95 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.781e-05/0.9125, allocations: 67.16 kB / 0.8466 GB, free: 27.88 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007567/0.9133, allocations: 481.4 kB / 0.8471 GB, free: 27.39 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.622e-06/0.9133, allocations: 4 kB / 0.8471 GB, free: 27.39 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.999e-06/0.9133, allocations: 0 / 0.8471 GB, free: 27.39 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.58e-06/0.9133, allocations: 3.984 kB / 0.8471 GB, free: 27.38 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001184/0.9145, allocations: 1.013 MB / 0.8481 GB, free: 26.3 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.614e-06/0.9145, allocations: 0 / 0.8481 GB, free: 26.3 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001949/0.9147, allocations: 47.89 kB / 0.8481 GB, free: 26.25 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001347/0.9149, allocations: 61.72 kB / 0.8482 GB, free: 26.19 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.341e-05/0.9149, allocations: 11.98 kB / 0.8482 GB, free: 26.18 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004022/0.9153, allocations: 1.105 MB / 0.8493 GB, free: 25.02 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-06/0.9153, allocations: 0 / 0.8493 GB, free: 25.02 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008734/0.9162, allocations: 0.6666 MB / 0.8499 GB, free: 24.33 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001571/0.9164, allocations: 180.2 kB / 0.8501 GB, free: 24.13 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.298e-05/0.9165, allocations: 8 kB / 0.8501 GB, free: 24.12 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002981/0.9168, allocations: 35.92 kB / 0.8502 GB, free: 24.09 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.395e-05/0.9168, allocations: 27.89 kB / 0.8502 GB, free: 24.06 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.218e-05/0.9169, allocations: 8 kB / 0.8502 GB, free: 24.05 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0004083/0.9173, allocations: 455 kB / 0.8506 GB, free: 23.61 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.9173, allocations: 0 / 0.8506 GB, free: 23.61 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.001787/0.9191, allocations: 0.7762 MB / 0.8514 GB, free: 22.84 MB / 490.7 MB 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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 20 * 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.001741/0.9208, allocations: 1.282 MB / 0.8526 GB, free: 21.54 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0006848/0.9215, allocations: 351.9 kB / 0.853 GB, free: 21.2 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.9215, allocations: 0 / 0.853 GB, free: 21.2 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000294/0.9218, allocations: 163.9 kB / 0.8531 GB, free: 21.04 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00146/0.9233, allocations: 376.4 kB / 0.8535 GB, free: 20.68 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001609/0.9249, allocations: 1.403 MB / 0.8549 GB, free: 19.24 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002412/0.9252, allocations: 0.89 MB / 0.8557 GB, free: 18.32 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.0003788/0.9256, allocations: 121.5 kB / 0.8558 GB, free: 18.2 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001008/0.9257, allocations: 51.42 kB / 0.8559 GB, free: 18.16 MB / 490.7 MB Notification: Performance of SimCode: time 3.21e-07/0.9257, allocations: 0 / 0.8559 GB, free: 18.16 MB / 490.7 MB Notification: Performance of Templates: time 0.03375/0.9594, allocations: 28.1 MB / 0.8833 GB, free: 6.203 MB / 0.4948 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)