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/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_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/Complex 4.0.0+maint.om/package.mo): time 0.00095/0.0009504, allocations: 174.8 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.305/1.305, allocations: 221.4 MB / 234.6 MB, free: 14.46 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.0008892/0.0008891, allocations: 86.08 kB / 285.6 MB, free: 13.01 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/package.mo): time 0.3726/0.3726, allocations: 37.07 MB / 373.6 MB, free: 45.9 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.478e-05/3.48e-05, allocations: 11.92 kB / 441.5 MB, free: 15.5 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1204/0.1205, allocations: 60.08 MB / 0.4898 GB, free: 3.309 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4578/0.5783, allocations: 174.4 MB / 0.6602 GB, free: 14.17 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002062/0.5786, allocations: 80.86 kB / 0.6602 GB, free: 14.09 MB / 490.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: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.7146/1.293, allocations: 206 MB / 0.8614 GB, free: 7.691 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.123e-06/1.293, allocations: 0 / 0.8614 GB, free: 7.691 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 9.782e-05/1.293, allocations: 12 kB / 0.8614 GB, free: 7.68 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: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.005548/1.299, allocations: 1.706 MB / 0.8631 GB, free: 5.926 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.558e-05/1.299, allocations: 8.031 kB / 0.8631 GB, free: 5.918 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003569/1.299, allocations: 82.97 kB / 0.8631 GB, free: 5.836 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00171/1.301, allocations: 0.6443 MB / 0.8638 GB, free: 5.145 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.747e-05/1.301, allocations: 24.78 kB / 0.8638 GB, free: 5.121 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.055e-05/1.301, allocations: 40 kB / 0.8638 GB, free: 5.082 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007671/1.302, allocations: 408.6 kB / 0.8642 GB, free: 4.664 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.381e-05/1.302, allocations: 0 / 0.8642 GB, free: 4.664 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.112e-05/1.302, allocations: 12 kB / 0.8642 GB, free: 4.652 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.99e-05/1.302, allocations: 11.95 kB / 0.8643 GB, free: 4.641 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006224/1.303, allocations: 335 kB / 0.8646 GB, free: 4.316 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003472/1.306, allocations: 2.203 MB / 0.8667 GB, free: 1.891 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005779/1.307, allocations: 347.6 kB / 0.8671 GB, free: 1.539 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002444/1.307, allocations: 149 kB / 0.8672 GB, free: 1.391 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00168/1.309, allocations: 1.017 MB / 0.8682 GB, free: 280 kB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002966/1.309, allocations: 184.1 kB / 0.8684 GB, free: 84 kB / 0.4948 GB Notification: Performance of pre-optimization done (n=33): time 2.234e-06/1.309, allocations: 0 / 0.8684 GB, free: 84 kB / 0.4948 GB Notification: Performance of matching and sorting (n=33): time 0.3222/1.631, allocations: 382.8 kB / 0.8687 GB, free: 60.55 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.939e-05/1.631, allocations: 58.78 kB / 0.8688 GB, free: 60.49 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001288/1.633, allocations: 0.5648 MB / 0.8693 GB, free: 60.36 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 5.816e-05/1.633, allocations: 36.08 kB / 0.8694 GB, free: 60.33 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003793/1.633, allocations: 350.6 kB / 0.8697 GB, free: 60.22 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.000174/1.633, allocations: 106.5 kB / 0.8698 GB, free: 60.17 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.291e-05/1.633, allocations: 8.5 kB / 0.8698 GB, free: 60.17 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.000135/1.634, allocations: 326.7 kB / 0.8701 GB, free: 59.86 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002773/1.634, allocations: 122.1 kB / 0.8702 GB, free: 59.86 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003135/1.634, allocations: 224.8 kB / 0.8705 GB, free: 59.75 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003206/1.635, allocations: 143.9 kB / 0.8706 GB, free: 59.75 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.242e-06/1.635, allocations: 1.875 kB / 0.8706 GB, free: 59.75 MB / 0.4948 GB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001161/1.636, allocations: 0.4977 MB / 0.8711 GB, free: 59.66 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 3.414e-05/1.636, allocations: 8.703 kB / 0.8711 GB, free: 59.66 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.453e-05/1.636, allocations: 4.5 kB / 0.8711 GB, free: 59.66 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003275/1.636, allocations: 75.47 kB / 0.8712 GB, free: 59.64 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003502/1.636, allocations: 79.31 kB / 0.8712 GB, free: 59.64 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006446/1.637, allocations: 1.114 MB / 0.8723 GB, free: 58.61 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006282/1.638, allocations: 66.14 kB / 0.8724 GB, free: 58.59 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.613e-05/1.638, allocations: 19.28 kB / 0.8724 GB, free: 58.59 MB / 0.4948 GB 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 (46): * 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: 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.0001273/1.638, allocations: 130.4 kB / 0.8725 GB, free: 58.49 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000104/1.638, allocations: 73.64 kB / 0.8726 GB, free: 58.45 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009658/1.639, allocations: 457.4 kB / 0.873 GB, free: 58.36 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.117e-05/1.639, allocations: 4.188 kB / 0.873 GB, free: 58.36 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.843e-06/1.639, allocations: 0.6094 kB / 0.873 GB, free: 58.36 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.155e-06/1.639, allocations: 7.625 kB / 0.8731 GB, free: 58.36 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001729/1.641, allocations: 1.007 MB / 0.874 GB, free: 58.04 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.957e-06/1.641, allocations: 1 kB / 0.874 GB, free: 58.04 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002204/1.641, allocations: 43.88 kB / 0.8741 GB, free: 58.04 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001705/1.641, allocations: 76.22 kB / 0.8742 GB, free: 58.02 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.742e-05/1.641, allocations: 8.984 kB / 0.8742 GB, free: 58.02 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004716/1.642, allocations: 1.116 MB / 0.8753 GB, free: 56.98 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/1.642, allocations: 0 / 0.8753 GB, free: 56.98 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009158/1.643, allocations: 0.6492 MB / 0.8759 GB, free: 56.76 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002632/1.643, allocations: 181.5 kB / 0.8761 GB, free: 56.63 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.607e-05/1.643, allocations: 7.938 kB / 0.8761 GB, free: 56.63 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003483/1.643, allocations: 38.03 kB / 0.8761 GB, free: 56.62 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.948e-05/1.644, allocations: 25.14 kB / 0.8761 GB, free: 56.62 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.258e-05/1.644, allocations: 13.55 kB / 0.8761 GB, free: 56.62 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0006041/1.644, allocations: 460.5 kB / 0.8766 GB, free: 56.52 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.4e-07/1.644, allocations: 0 / 0.8766 GB, free: 56.52 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.002559/1.647, allocations: 0.8125 MB / 0.8774 GB, free: 56.52 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 (27): * 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: 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.002621/1.649, allocations: 1.376 MB / 0.8787 GB, free: 56.42 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0008113/1.65, allocations: 330.3 kB / 0.879 GB, free: 56.41 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 4.408e-06/1.65, allocations: 1.25 kB / 0.879 GB, free: 56.41 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.000293/1.651, allocations: 151.6 kB / 0.8792 GB, free: 56.41 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001732/1.652, allocations: 408 kB / 0.8796 GB, free: 56.41 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001468/1.654, allocations: 0.8349 MB / 0.8804 GB, free: 56.14 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003091/1.654, allocations: 0.9205 MB / 0.8813 GB, free: 55.44 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.0004333/1.654, allocations: 122.6 kB / 0.8814 GB, free: 55.43 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001201/1.655, allocations: 58.67 kB / 0.8815 GB, free: 55.42 MB / 0.4948 GB Notification: Performance of SimCode: time 7.61e-07/1.655, allocations: 5.5 kB / 0.8815 GB, free: 55.42 MB / 0.4948 GB Notification: Performance of Templates: time 0.04305/1.698, allocations: 29.67 MB / 0.9104 GB, free: 54.2 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)