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.001558/0.001558, allocations: 173.4 kB / 7.647 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.284/1.284, allocations: 221.5 MB / 229.6 MB, free: 7.555 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.0008775/0.0008774, allocations: 90.44 kB / 280.5 MB, free: 5.316 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/package.mo): time 0.1807/0.1807, allocations: 37.09 MB / 368.3 MB, free: 9.965 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.774e-05/1.771e-05, allocations: 4 kB / 434.6 MB, free: 23.1 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1136/0.1137, allocations: 60.08 MB / 494.7 MB, free: 11.06 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4281/0.5418, allocations: 174.1 MB / 0.6532 GB, free: 9.867 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002272/0.5421, allocations: 81.2 kB / 0.6532 GB, free: 9.828 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.7285/1.271, allocations: 239.3 MB / 0.887 GB, free: 20.6 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.112e-06/1.271, allocations: 0 / 0.887 GB, free: 20.6 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 4.339e-05/1.271, allocations: 12 kB / 0.887 GB, free: 20.59 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: 102 * Number of variables: 102 Notification: Performance of Generate backend data structure: time 0.003942/1.275, allocations: 1.925 MB / 0.8889 GB, free: 18.62 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.091e-05/1.275, allocations: 8.031 kB / 0.8889 GB, free: 18.61 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001353/1.275, allocations: 94.88 kB / 0.889 GB, free: 18.52 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001038/1.276, allocations: 0.7108 MB / 0.8897 GB, free: 17.76 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.859e-05/1.276, allocations: 12 kB / 0.8897 GB, free: 17.75 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.039e-05/1.276, allocations: 24 kB / 0.8897 GB, free: 17.73 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005862/1.277, allocations: 418.5 kB / 0.8901 GB, free: 17.32 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005774/1.277, allocations: 436.8 kB / 0.8905 GB, free: 16.88 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.466e-05/1.277, allocations: 7.891 kB / 0.8905 GB, free: 16.87 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.677e-05/1.277, allocations: 0 / 0.8905 GB, free: 16.87 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.1e-05/1.277, allocations: 12 kB / 0.8905 GB, free: 16.86 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002525/1.28, allocations: 2.397 MB / 0.8929 GB, free: 14.23 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004709/1.28, allocations: 383.6 kB / 0.8932 GB, free: 13.84 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002469/1.281, allocations: 201.1 kB / 0.8934 GB, free: 13.64 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00141/1.282, allocations: 1.127 MB / 0.8945 GB, free: 12.41 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003001/1.282, allocations: 216 kB / 0.8947 GB, free: 12.19 MB / 0.4948 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0002455/1.283, allocations: 43.67 kB / 0.8948 GB, free: 12.15 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=39): time 2.084e-06/1.283, allocations: 0 / 0.8948 GB, free: 12.15 MB / 0.4948 GB Notification: Performance of matching and sorting (n=39): time 0.001031/1.284, allocations: 471.4 kB / 0.8952 GB, free: 11.68 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.384e-05/1.284, allocations: 55.41 kB / 0.8953 GB, free: 11.61 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005329/1.284, allocations: 0.543 MB / 0.8958 GB, free: 11.06 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 3.06e-05/1.284, allocations: 29.64 kB / 0.8958 GB, free: 11.03 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002022/1.284, allocations: 379.9 kB / 0.8962 GB, free: 10.65 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 8.434e-05/1.284, allocations: 130.1 kB / 0.8963 GB, free: 10.52 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.216e-05/1.285, allocations: 0 / 0.8963 GB, free: 10.52 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 5.929e-05/1.285, allocations: 322 kB / 0.8966 GB, free: 10.2 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001864/1.285, allocations: 145.1 kB / 0.8968 GB, free: 10.06 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002184/1.285, allocations: 248.4 kB / 0.897 GB, free: 9.773 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007487/1.286, allocations: 221.1 kB / 0.8972 GB, free: 9.555 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.436e-06/1.286, allocations: 0 / 0.8972 GB, free: 9.555 MB / 0.4948 GB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001115/1.287, allocations: 0.5703 MB / 0.8978 GB, free: 8.973 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.857e-05/1.287, allocations: 9.938 kB / 0.8978 GB, free: 8.965 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.017e-06/1.287, allocations: 8 kB / 0.8978 GB, free: 8.957 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002236/1.287, allocations: 73.62 kB / 0.8979 GB, free: 8.879 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003712/1.288, allocations: 99.81 kB / 0.8979 GB, free: 8.781 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005471/1.288, allocations: 1.128 MB / 0.899 GB, free: 7.602 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004562/1.289, allocations: 36.16 kB / 0.8991 GB, free: 7.566 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.82e-05/1.289, allocations: 23.98 kB / 0.8991 GB, free: 7.543 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 (53): * Single equations (assignments): 49 * 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.000139/1.289, allocations: 120.8 kB / 0.8992 GB, free: 7.418 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.242e-05/1.289, allocations: 78.97 kB / 0.8993 GB, free: 7.34 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009765/1.29, allocations: 0.5475 MB / 0.8998 GB, free: 6.77 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.053e-06/1.29, allocations: 8 kB / 0.8998 GB, free: 6.762 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.15e-06/1.29, allocations: 3.953 kB / 0.8998 GB, free: 6.758 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.851e-06/1.29, allocations: 0 / 0.8998 GB, free: 6.758 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001467/1.291, allocations: 1.106 MB / 0.9009 GB, free: 5.598 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.148e-06/1.291, allocations: 7.953 kB / 0.9009 GB, free: 5.59 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003008/1.292, allocations: 71.92 kB / 0.901 GB, free: 5.52 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001375/1.292, allocations: 69.67 kB / 0.9011 GB, free: 5.445 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.67e-05/1.292, allocations: 4 kB / 0.9011 GB, free: 5.441 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005137/1.292, allocations: 1.136 MB / 0.9022 GB, free: 4.254 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/1.292, allocations: 96 / 0.9022 GB, free: 4.254 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009862/1.293, allocations: 0.754 MB / 0.9029 GB, free: 3.469 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001854/1.294, allocations: 200.1 kB / 0.9031 GB, free: 3.254 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.274e-05/1.294, allocations: 4 kB / 0.9031 GB, free: 3.25 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003691/1.294, allocations: 27.91 kB / 0.9031 GB, free: 3.223 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.7e-05/1.294, allocations: 35.89 kB / 0.9032 GB, free: 3.188 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.985e-05/1.294, allocations: 19.98 kB / 0.9032 GB, free: 3.168 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0003869/1.295, allocations: 431.1 kB / 0.9036 GB, free: 2.754 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.4e-07/1.295, allocations: 0 / 0.9036 GB, free: 2.754 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.002133/1.297, allocations: 0.9283 MB / 0.9045 GB, free: 1.824 MB / 0.4948 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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (36): * Single equations (assignments): 30 * 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.002182/1.299, allocations: 1.638 MB / 0.9061 GB, free: 180 kB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.2704/1.569, allocations: 381.3 kB / 0.9065 GB, free: 64.17 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 7.494e-06/1.569, allocations: 0.9688 kB / 0.9065 GB, free: 64.17 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0004032/1.57, allocations: 199.6 kB / 0.9067 GB, free: 64.17 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002064/1.572, allocations: 427.8 kB / 0.9071 GB, free: 64.17 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001734/1.574, allocations: 0.9949 MB / 0.908 GB, free: 63.87 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004127/1.574, allocations: 0.9508 MB / 0.909 GB, free: 63.17 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.0004975/1.575, allocations: 142.8 kB / 0.9091 GB, free: 63.16 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001705/1.575, allocations: 69.47 kB / 0.9092 GB, free: 63.15 MB / 0.4948 GB Notification: Performance of SimCode: time 5.51e-07/1.575, allocations: 0 / 0.9092 GB, free: 63.15 MB / 0.4948 GB Notification: Performance of Templates: time 0.03876/1.614, allocations: 29.71 MB / 0.9382 GB, free: 61.66 MB / 0.4948 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)