Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Physiolibrary_Physiolibrary.Fluid.Examples.MinimalCirculation.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.MinimalCirculation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Fluid.Examples.MinimalCirculation") translateModel(Physiolibrary.Fluid.Examples.MinimalCirculation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Fluid.Examples.MinimalCirculation") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo): time 0.08258/0.08259, allocations: 15.26 MB / 31.2 MB, free: 3.23 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.0009127/0.0009127, allocations: 172.4 kB / 36.29 MB, free: 2.266 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.328/1.328, allocations: 223.3 MB / 264.5 MB, free: 5.855 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.0007903/0.0007904, allocations: 91.77 kB / 319.9 MB, free: 2.773 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/package.mo): time 0.102/0.102, allocations: 20.56 MB / 395.8 MB, free: 43.3 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000521/0.0005212, allocations: 23.98 kB / 467.6 MB, free: 4.219 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2602/0.2607, allocations: 59.78 MB / 0.515 GB, free: 41.38 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1636/0.4244, allocations: 167.2 MB / 0.6783 GB, free: 1.891 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001878/0.4246, allocations: 79.97 kB / 0.6784 GB, free: 1.812 MB / 474.7 MB [/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 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.Components.MassPump$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: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.Components.ElasticVessel$veins. 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. [/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. Notification: Performance of FrontEnd - DAE generated: time 0.4709/0.8955, allocations: 143.5 MB / 0.8185 GB, free: 57.31 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.395e-06/0.8955, allocations: 0 / 0.8185 GB, free: 57.31 MB / 490.7 MB Notification: Performance of Transformations before backend: time 5.152e-05/0.8956, allocations: 23.92 kB / 0.8185 GB, free: 57.29 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: 101 * Number of variables: 101 Notification: Performance of Generate backend data structure: time 0.002643/0.8982, allocations: 1.44 MB / 0.8199 GB, free: 55.78 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.656e-05/0.8983, allocations: 8.031 kB / 0.8199 GB, free: 55.77 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002177/0.8985, allocations: 83.91 kB / 0.82 GB, free: 55.69 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001061/0.8996, allocations: 0.6763 MB / 0.8207 GB, free: 54.98 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.265e-05/0.8996, allocations: 29.38 kB / 0.8207 GB, free: 54.95 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.159e-05/0.8997, allocations: 48.38 kB / 0.8208 GB, free: 54.9 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008032/0.9005, allocations: 0.5168 MB / 0.8213 GB, free: 54.36 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.831e-05/0.9005, allocations: 12.11 kB / 0.8213 GB, free: 54.35 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.909e-05/0.9006, allocations: 19.94 kB / 0.8213 GB, free: 54.33 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.231e-05/0.9006, allocations: 16 kB / 0.8213 GB, free: 54.31 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008294/0.9014, allocations: 475.7 kB / 0.8218 GB, free: 53.85 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002307/0.9038, allocations: 2.018 MB / 0.8237 GB, free: 51.69 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007239/0.9045, allocations: 415.9 kB / 0.8241 GB, free: 51.27 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003794/0.9049, allocations: 233 kB / 0.8244 GB, free: 51.04 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001308/0.9062, allocations: 1.34 MB / 0.8257 GB, free: 49.54 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004113/0.9066, allocations: 240.6 kB / 0.8259 GB, free: 49.3 MB / 490.7 MB Notification: Performance of pre-optimization done (n=35): time 1.923e-06/0.9067, allocations: 0 / 0.8259 GB, free: 49.3 MB / 490.7 MB Notification: Performance of matching and sorting (n=35): time 0.001282/0.9079, allocations: 0.7013 MB / 0.8266 GB, free: 48.57 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.183e-05/0.908, allocations: 55.69 kB / 0.8266 GB, free: 48.5 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000599/0.9086, allocations: 0.6489 MB / 0.8273 GB, free: 47.84 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 3.167e-05/0.9086, allocations: 37.64 kB / 0.8273 GB, free: 47.8 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001686/0.9088, allocations: 367.7 kB / 0.8276 GB, free: 47.44 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.758e-05/0.9089, allocations: 118.3 kB / 0.8278 GB, free: 47.32 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.329e-05/0.9089, allocations: 12 kB / 0.8278 GB, free: 47.31 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 7.978e-05/0.909, allocations: 386.8 kB / 0.8281 GB, free: 46.92 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003707/0.9094, allocations: 185 kB / 0.8283 GB, free: 46.74 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000398/0.9098, allocations: 354.8 kB / 0.8287 GB, free: 46.34 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007399/0.9105, allocations: 0.5231 MB / 0.8292 GB, free: 45.75 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.467e-06/0.9105, allocations: 0 / 0.8292 GB, free: 45.75 MB / 490.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001078/0.9116, allocations: 0.6654 MB / 0.8298 GB, free: 45.07 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.497e-05/0.9117, allocations: 37.69 kB / 0.8299 GB, free: 45.03 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.556e-06/0.9117, allocations: 4 kB / 0.8299 GB, free: 45.02 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001411/0.9118, allocations: 40.78 kB / 0.8299 GB, free: 44.98 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004064/0.9122, allocations: 107.9 kB / 0.83 GB, free: 44.88 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002454/0.9125, allocations: 0.5526 MB / 0.8305 GB, free: 44.3 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005612/0.9131, allocations: 83.5 kB / 0.8306 GB, free: 44.21 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.44e-05/0.9131, allocations: 27.98 kB / 0.8306 GB, free: 44.19 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (58): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 1 * 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.0002305/0.9134, allocations: 201.5 kB / 0.8308 GB, free: 43.98 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.99e-05/0.9135, allocations: 67.16 kB / 0.8309 GB, free: 43.91 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009539/0.9144, allocations: 0.5166 MB / 0.8314 GB, free: 43.38 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.534e-06/0.9144, allocations: 4 kB / 0.8314 GB, free: 43.38 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.9144, allocations: 0 / 0.8314 GB, free: 43.38 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.941e-06/0.9145, allocations: 3.984 kB / 0.8314 GB, free: 43.38 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005109/0.915, allocations: 0.5517 MB / 0.832 GB, free: 42.77 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.597e-06/0.915, allocations: 4 kB / 0.832 GB, free: 42.77 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002965/0.9153, allocations: 71.83 kB / 0.832 GB, free: 42.7 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.557e-05/0.9154, allocations: 28.84 kB / 0.8321 GB, free: 42.67 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.868e-05/0.9154, allocations: 15.92 kB / 0.8321 GB, free: 42.65 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002142/0.9156, allocations: 0.5406 MB / 0.8326 GB, free: 42.09 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.153e-06/0.9156, allocations: 0 / 0.8326 GB, free: 42.09 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001148/0.9168, allocations: 0.7083 MB / 0.8333 GB, free: 41.36 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002072/0.917, allocations: 188.2 kB / 0.8335 GB, free: 41.15 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.549e-05/0.9171, allocations: 4 kB / 0.8335 GB, free: 41.15 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003695/0.9175, allocations: 51.81 kB / 0.8335 GB, free: 41.1 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.644e-05/0.9176, allocations: 35.88 kB / 0.8336 GB, free: 41.06 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.724e-05/0.9176, allocations: 12 kB / 0.8336 GB, free: 41.05 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0004326/0.9181, allocations: 451 kB / 0.834 GB, free: 40.62 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.9181, allocations: 0 / 0.834 GB, free: 40.62 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.001711/0.9198, allocations: 0.7372 MB / 0.8347 GB, free: 39.88 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (arteries.enthalpy,arteries.mass,veins.enthalpy,veins.mass) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 2 * 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.002095/0.9219, allocations: 1.15 MB / 0.8358 GB, free: 38.72 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0009433/0.9228, allocations: 0.5075 MB / 0.8363 GB, free: 38.2 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.9229, allocations: 0 / 0.8363 GB, free: 38.2 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003764/0.9232, allocations: 216.2 kB / 0.8365 GB, free: 37.99 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001327/0.9246, allocations: 346.8 kB / 0.8369 GB, free: 37.66 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001974/0.9266, allocations: 1.61 MB / 0.8384 GB, free: 36.02 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002529/0.9268, allocations: 0.91 MB / 0.8393 GB, free: 35.08 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.0004797/0.9273, allocations: 133.5 kB / 0.8395 GB, free: 34.95 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001343/0.9275, allocations: 63.34 kB / 0.8395 GB, free: 34.89 MB / 490.7 MB Notification: Performance of SimCode: time 2.6e-07/0.9275, allocations: 0 / 0.8395 GB, free: 34.89 MB / 490.7 MB Notification: Performance of Templates: time 0.02958/0.957, allocations: 25.7 MB / 0.8646 GB, free: 9.336 MB / 490.7 MB make -j1 -f Physiolibrary_Physiolibrary.Fluid.Examples.MinimalCirculation.makefile (rm -f Physiolibrary_Physiolibrary.Fluid.Examples.MinimalCirculation.pipe ; mkfifo Physiolibrary_Physiolibrary.Fluid.Examples.MinimalCirculation.pipe ; head -c 1048576 < Physiolibrary_Physiolibrary.Fluid.Examples.MinimalCirculation.pipe >> ../files/Physiolibrary_Physiolibrary.Fluid.Examples.MinimalCirculation.sim & ./Physiolibrary_Physiolibrary.Fluid.Examples.MinimalCirculation -abortSlowSimulation -alarm=480 -lv LOG_STATS > Physiolibrary_Physiolibrary.Fluid.Examples.MinimalCirculation.pipe 2>&1)