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.001225/0.001225, allocations: 180.9 kB / 7.651 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.432/1.432, allocations: 221.5 MB / 229.6 MB, free: 7.59 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.0008914/0.0008914, allocations: 85.73 kB / 280.5 MB, free: 5.328 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/package.mo): time 0.1891/0.1891, allocations: 37.09 MB / 368.3 MB, free: 9.969 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.793e-05/1.795e-05, allocations: 4 kB / 434.6 MB, free: 23.1 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1072/0.1073, allocations: 60.09 MB / 494.7 MB, free: 11.06 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4437/0.5509, allocations: 173.7 MB / 0.6528 GB, free: 10.26 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000184/0.5512, allocations: 83.62 kB / 0.6529 GB, free: 10.22 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: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.7075/1.259, allocations: 203.8 MB / 0.8518 GB, free: 43.19 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.533e-06/1.259, allocations: 4 kB / 0.8519 GB, free: 43.19 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 4.222e-05/1.259, allocations: 19.36 kB / 0.8519 GB, free: 43.17 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.004216/1.263, allocations: 1.709 MB / 0.8535 GB, free: 41.42 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.859e-05/1.263, allocations: 8.031 kB / 0.8535 GB, free: 41.41 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001542/1.263, allocations: 86.92 kB / 0.8536 GB, free: 41.32 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000992/1.264, allocations: 0.637 MB / 0.8543 GB, free: 40.66 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.126e-05/1.264, allocations: 12 kB / 0.8543 GB, free: 40.65 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.958e-05/1.264, allocations: 20 kB / 0.8543 GB, free: 40.63 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004838/1.265, allocations: 309.5 kB / 0.8546 GB, free: 40.33 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004925/1.265, allocations: 355.1 kB / 0.8549 GB, free: 39.96 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.423e-05/1.265, allocations: 3.938 kB / 0.8549 GB, free: 39.96 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.439e-05/1.265, allocations: 3.953 kB / 0.8549 GB, free: 39.96 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.196e-05/1.265, allocations: 12 kB / 0.8549 GB, free: 39.95 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002271/1.268, allocations: 2.134 MB / 0.857 GB, free: 37.62 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003923/1.268, allocations: 311.1 kB / 0.8573 GB, free: 37.3 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001623/1.268, allocations: 137.1 kB / 0.8574 GB, free: 37.17 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001119/1.269, allocations: 1.004 MB / 0.8584 GB, free: 36.07 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002421/1.27, allocations: 176.2 kB / 0.8586 GB, free: 35.89 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=33): time 3.086e-06/1.27, allocations: 0 / 0.8586 GB, free: 35.89 MB / 0.4948 GB Notification: Performance of matching and sorting (n=33): time 0.0008871/1.271, allocations: 385 kB / 0.859 GB, free: 35.5 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.646e-05/1.271, allocations: 59.39 kB / 0.859 GB, free: 35.43 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005102/1.271, allocations: 0.5037 MB / 0.8595 GB, free: 34.92 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 2.487e-05/1.271, allocations: 25.7 kB / 0.8595 GB, free: 34.89 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001843/1.271, allocations: 359.9 kB / 0.8599 GB, free: 34.54 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 6.889e-05/1.271, allocations: 105.5 kB / 0.86 GB, free: 34.43 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.631e-05/1.271, allocations: 0 / 0.86 GB, free: 34.43 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 8.606e-05/1.272, allocations: 382.8 kB / 0.8603 GB, free: 34.05 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001501/1.272, allocations: 108.9 kB / 0.8604 GB, free: 33.95 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001881/1.272, allocations: 215.4 kB / 0.8607 GB, free: 33.7 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006515/1.273, allocations: 189.1 kB / 0.8608 GB, free: 33.51 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.591e-06/1.273, allocations: 4 kB / 0.8608 GB, free: 33.5 MB / 0.4948 GB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001034/1.274, allocations: 0.4966 MB / 0.8613 GB, free: 33 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.932e-05/1.274, allocations: 4 kB / 0.8613 GB, free: 32.99 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.138e-05/1.274, allocations: 8.359 kB / 0.8613 GB, free: 32.98 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002445/1.274, allocations: 85.59 kB / 0.8614 GB, free: 32.89 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003119/1.274, allocations: 79.89 kB / 0.8615 GB, free: 32.82 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005691/1.275, allocations: 1.128 MB / 0.8626 GB, free: 31.64 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004742/1.275, allocations: 51.59 kB / 0.8626 GB, free: 31.59 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.226e-05/1.275, allocations: 24.08 kB / 0.8627 GB, free: 31.56 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 (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.00013/1.276, allocations: 116.9 kB / 0.8628 GB, free: 31.44 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.566e-05/1.276, allocations: 67.16 kB / 0.8628 GB, free: 31.38 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007824/1.276, allocations: 443.8 kB / 0.8633 GB, free: 30.92 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.383e-06/1.276, allocations: 4 kB / 0.8633 GB, free: 30.91 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/1.276, allocations: 0 / 0.8633 GB, free: 30.91 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.55e-06/1.276, allocations: 3.938 kB / 0.8633 GB, free: 30.91 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001262/1.278, allocations: 0.9567 MB / 0.8642 GB, free: 29.91 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/1.278, allocations: 0 / 0.8642 GB, free: 29.91 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002004/1.278, allocations: 47.91 kB / 0.8643 GB, free: 29.86 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001347/1.278, allocations: 65.69 kB / 0.8643 GB, free: 29.79 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.13e-05/1.278, allocations: 7.922 kB / 0.8643 GB, free: 29.78 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005255/1.279, allocations: 1.124 MB / 0.8654 GB, free: 28.61 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.046e-06/1.279, allocations: 7.922 kB / 0.8654 GB, free: 28.6 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008109/1.279, allocations: 0.6316 MB / 0.866 GB, free: 27.93 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001786/1.28, allocations: 176.2 kB / 0.8662 GB, free: 27.74 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.473e-05/1.28, allocations: 7.984 kB / 0.8662 GB, free: 27.73 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003217/1.28, allocations: 28 kB / 0.8662 GB, free: 27.71 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.404e-05/1.28, allocations: 27.95 kB / 0.8663 GB, free: 27.68 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.636e-05/1.28, allocations: 8 kB / 0.8663 GB, free: 27.67 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0003841/1.281, allocations: 403.2 kB / 0.8667 GB, free: 27.28 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.7e-07/1.281, allocations: 0 / 0.8667 GB, free: 27.28 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.001955/1.283, allocations: 0.78 MB / 0.8674 GB, free: 26.5 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.00188/1.284, allocations: 1.394 MB / 0.8688 GB, free: 25.18 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0005612/1.285, allocations: 295.8 kB / 0.8691 GB, free: 24.89 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/1.285, allocations: 0 / 0.8691 GB, free: 24.89 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0002281/1.285, allocations: 155.7 kB / 0.8692 GB, free: 24.74 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001479/1.287, allocations: 373.8 kB / 0.8696 GB, free: 24.38 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001323/1.288, allocations: 0.8161 MB / 0.8704 GB, free: 23.54 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002751/1.288, allocations: 0.9139 MB / 0.8713 GB, free: 22.59 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.0003883/1.289, allocations: 117.4 kB / 0.8714 GB, free: 22.47 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001117/1.289, allocations: 55.42 kB / 0.8714 GB, free: 22.42 MB / 0.4948 GB Notification: Performance of SimCode: time 2.8e-07/1.289, allocations: 0 / 0.8714 GB, free: 22.42 MB / 0.4948 GB Notification: Performance of Templates: time 0.03061/1.319, allocations: 25.24 MB / 0.8961 GB, free: 13.29 MB / 0.5105 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)