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/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.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/Complex 4.0.0+maint.om/package.mo): time 0.001211/0.001211, allocations: 174.6 kB / 12.73 MB, free: 2.59 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.332/1.332, allocations: 221.4 MB / 234.6 MB, free: 14.45 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.0008808/0.0008808, allocations: 90.89 kB / 285.6 MB, free: 12.99 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/package.mo): time 0.4033/0.4033, allocations: 37.06 MB / 373.6 MB, free: 45.88 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 2.854e-05/2.863e-05, allocations: 4 kB / 441.5 MB, free: 15.48 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1322/0.1322, allocations: 60.08 MB / 0.4898 GB, free: 3.301 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4404/0.5727, allocations: 172 MB / 0.6578 GB, free: 0.5391 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001948/0.573, allocations: 72.78 kB / 0.6579 GB, free: 480 kB / 474.7 MB [/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 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/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: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.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/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. [/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. Notification: Performance of FrontEnd - DAE generated: time 0.6668/1.24, allocations: 188.1 MB / 0.8416 GB, free: 11.88 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.024e-06/1.24, allocations: 3.938 kB / 0.8416 GB, free: 11.88 MB / 490.7 MB Notification: Performance of Transformations before backend: time 7.206e-05/1.24, allocations: 19.98 kB / 0.8417 GB, free: 11.86 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: 103 * Number of variables: 103 Notification: Performance of Generate backend data structure: time 0.00515/1.245, allocations: 1.704 MB / 0.8433 GB, free: 10.1 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.462e-05/1.245, allocations: 8.031 kB / 0.8433 GB, free: 10.09 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002747/1.245, allocations: 90.88 kB / 0.8434 GB, free: 10 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001783/1.247, allocations: 0.6679 MB / 0.8441 GB, free: 9.289 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.016e-05/1.247, allocations: 33 kB / 0.8441 GB, free: 9.258 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001101/1.247, allocations: 51.89 kB / 0.8441 GB, free: 9.207 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001084/1.249, allocations: 0.4893 MB / 0.8446 GB, free: 8.695 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.666e-05/1.249, allocations: 0 / 0.8446 GB, free: 8.695 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.995e-05/1.249, allocations: 23.94 kB / 0.8446 GB, free: 8.672 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.784e-05/1.249, allocations: 12 kB / 0.8447 GB, free: 8.66 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000967/1.25, allocations: 410.9 kB / 0.845 GB, free: 8.258 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003774/1.253, allocations: 2.164 MB / 0.8472 GB, free: 5.949 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008184/1.254, allocations: 379.3 kB / 0.8475 GB, free: 5.562 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004609/1.255, allocations: 205.1 kB / 0.8477 GB, free: 5.359 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002301/1.257, allocations: 1.414 MB / 0.8491 GB, free: 3.789 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004669/1.258, allocations: 224.6 kB / 0.8493 GB, free: 3.559 MB / 490.7 MB Notification: Performance of pre-optimization done (n=35): time 2.866e-06/1.258, allocations: 0 / 0.8493 GB, free: 3.559 MB / 490.7 MB Notification: Performance of matching and sorting (n=35): time 0.001053/1.259, allocations: 432.3 kB / 0.8497 GB, free: 3.133 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.41e-05/1.259, allocations: 59.69 kB / 0.8498 GB, free: 3.062 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000979/1.26, allocations: 0.5821 MB / 0.8504 GB, free: 2.473 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 3.893e-05/1.26, allocations: 37.64 kB / 0.8504 GB, free: 2.43 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002555/1.26, allocations: 375.7 kB / 0.8507 GB, free: 2.059 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001051/1.26, allocations: 130.2 kB / 0.8509 GB, free: 1.93 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.978e-05/1.26, allocations: 4 kB / 0.8509 GB, free: 1.926 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 6.862e-05/1.26, allocations: 330 kB / 0.8512 GB, free: 1.598 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002944/1.261, allocations: 157.1 kB / 0.8513 GB, free: 1.441 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003603/1.261, allocations: 338.4 kB / 0.8517 GB, free: 1.043 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003421/1.261, allocations: 223.4 kB / 0.8519 GB, free: 0.8203 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.95e-06/1.261, allocations: 7.938 kB / 0.8519 GB, free: 0.8125 MB / 490.7 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001026/1.262, allocations: 0.6344 MB / 0.8525 GB, free: 168 kB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.735e-05/1.262, allocations: 38.47 kB / 0.8525 GB, free: 124 kB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.034e-05/1.262, allocations: 4 kB / 0.8525 GB, free: 120 kB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001765/1.263, allocations: 40.84 kB / 0.8526 GB, free: 76 kB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000555/1.263, allocations: 115.8 kB / 0.8527 GB, free: 15.96 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004734/1.264, allocations: 0.5603 MB / 0.8532 GB, free: 15.38 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000779/1.264, allocations: 87.45 kB / 0.8533 GB, free: 15.29 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.83e-05/1.265, allocations: 27.98 kB / 0.8533 GB, free: 15.26 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (60): * Single equations (assignments): 56 * 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.0001663/1.265, allocations: 136.6 kB / 0.8535 GB, free: 15.12 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001117/1.265, allocations: 75.06 kB / 0.8536 GB, free: 15.05 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001025/1.266, allocations: 486.4 kB / 0.854 GB, free: 14.56 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.21e-05/1.266, allocations: 8 kB / 0.854 GB, free: 14.55 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.496e-06/1.266, allocations: 3.953 kB / 0.854 GB, free: 14.55 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.662e-06/1.266, allocations: 4 kB / 0.854 GB, free: 14.54 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008094/1.267, allocations: 0.579 MB / 0.8546 GB, free: 13.91 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.485e-06/1.267, allocations: 0 / 0.8546 GB, free: 13.91 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003912/1.267, allocations: 71.88 kB / 0.8547 GB, free: 13.84 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.981e-05/1.267, allocations: 36.84 kB / 0.8547 GB, free: 13.8 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.53e-05/1.267, allocations: 11.98 kB / 0.8547 GB, free: 13.79 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004357/1.268, allocations: 0.5562 MB / 0.8553 GB, free: 13.21 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/1.268, allocations: 0 / 0.8553 GB, free: 13.21 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001201/1.269, allocations: 0.6655 MB / 0.8559 GB, free: 12.52 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003229/1.269, allocations: 196 kB / 0.8561 GB, free: 12.31 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.938e-05/1.269, allocations: 8 kB / 0.8561 GB, free: 12.3 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004897/1.27, allocations: 47.86 kB / 0.8561 GB, free: 12.26 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001113/1.27, allocations: 35.89 kB / 0.8562 GB, free: 12.22 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.038e-05/1.27, allocations: 15.94 kB / 0.8562 GB, free: 12.21 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0006719/1.271, allocations: 463.1 kB / 0.8566 GB, free: 11.76 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.7e-07/1.271, allocations: 0 / 0.8566 GB, free: 11.76 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.002471/1.273, allocations: 0.7568 MB / 0.8574 GB, free: 11 MB / 0.4948 GB 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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (34): * Single equations (assignments): 29 * 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.002559/1.276, allocations: 1.22 MB / 0.8586 GB, free: 9.773 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0009706/1.277, allocations: 494.7 kB / 0.859 GB, free: 9.277 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/1.277, allocations: 0 / 0.859 GB, free: 9.277 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0003127/1.277, allocations: 189.1 kB / 0.8592 GB, free: 9.094 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001689/1.279, allocations: 404.6 kB / 0.8596 GB, free: 8.703 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001923/1.281, allocations: 1.034 MB / 0.8606 GB, free: 7.641 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005354/1.281, allocations: 0.9375 MB / 0.8615 GB, free: 6.672 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.0005697/1.282, allocations: 149.9 kB / 0.8617 GB, free: 6.523 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001791/1.282, allocations: 71.34 kB / 0.8617 GB, free: 6.457 MB / 0.4948 GB Notification: Performance of SimCode: time 5.51e-07/1.282, allocations: 0 / 0.8617 GB, free: 6.457 MB / 0.4948 GB Notification: Performance of Templates: time 0.2995/1.582, allocations: 27.57 MB / 0.8887 GB, free: 68.58 MB / 0.4948 GB 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)