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/Chemical 1.4.0/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/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/Physiolibrary 3.0.0/package.mo", uses=false) Using package Physiolibrary with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/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/Chemical 1.4.0/package.mo): time 0.09615/0.09615, allocations: 15.29 MB / 31.54 MB, free: 4.117 MB / 26.18 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001082/0.001082, allocations: 117 kB / 36.54 MB, free: 3.211 MB / 26.18 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001281/0.001281, allocations: 193.1 kB / 41.64 MB, free: 7.152 MB / 34.91 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.364/1.364, allocations: 222.9 MB / 269.5 MB, free: 6.887 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1374/0.1374, allocations: 23.35 MB / 347.2 MB, free: 0.6719 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002128/0.002129, allocations: 107.8 kB / 419.6 MB, free: 29.72 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1052/0.1074, allocations: 59.38 MB / 479 MB, free: 2.277 MB / 334.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/Fluid.mo:707:7-707:66:writable] Warning: An inner declaration for outer component system could not be found and was automatically generated. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/Fluid.mo:707:7-707:66:writable] Notification: The diagnostics message for the missing inner is: Your model is using an outer "system" component but an inner "system" component is not defined. For simulation drag Modelica.Fluid.System into your model to specify system properties. Notification: Performance of NFInst.instantiate(Physiolibrary.Fluid.Examples.Windkessel_3element): time 0.2793/0.3867, allocations: 74.04 MB / 0.5401 GB, free: 9.23 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01489/0.4016, allocations: 18.84 MB / 0.5585 GB, free: 5.23 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006475/0.4023, allocations: 15.94 kB / 0.5585 GB, free: 5.215 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005985/0.4029, allocations: 242 kB / 0.5587 GB, free: 5.086 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005543/0.4085, allocations: 2.334 MB / 0.561 GB, free: 3.699 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004489/0.413, allocations: 1.59 MB / 0.5626 GB, free: 2.812 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001386/0.4144, allocations: 1.207 MB / 0.5638 GB, free: 2.023 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004212/0.4148, allocations: 362.1 kB / 0.5641 GB, free: 1.852 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00195/0.4168, allocations: 1.075 MB / 0.5652 GB, free: 1.18 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005623/0.4174, allocations: 463.3 kB / 0.5656 GB, free: 0.9023 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.549e-05/0.4174, allocations: 44 kB / 0.5656 GB, free: 0.8594 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004195/0.4216, allocations: 1.716 MB / 0.5673 GB, free: 15.8 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001493/0.4218, allocations: 138.7 kB / 0.5674 GB, free: 15.75 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003064/0.4221, allocations: 277.8 kB / 0.5677 GB, free: 15.57 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004483/0.4266, allocations: 2.184 MB / 0.5698 GB, free: 14.19 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.4266, allocations: 0.6562 kB / 0.5698 GB, free: 14.19 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.4267, allocations: 0 / 0.5698 GB, free: 14.19 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.815e-06/0.4267, allocations: 0 / 0.5698 GB, free: 14.19 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 91 * Number of variables: 91 Notification: Performance of Generate backend data structure: time 0.001719/0.4284, allocations: 1.034 MB / 0.5709 GB, free: 13.19 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.291e-05/0.4284, allocations: 8.031 kB / 0.5709 GB, free: 13.18 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001192/0.4286, allocations: 51.38 kB / 0.5709 GB, free: 13.13 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005484/0.4291, allocations: 409.8 kB / 0.5713 GB, free: 12.74 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.224e-05/0.4292, allocations: 29 kB / 0.5713 GB, free: 12.71 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.266e-05/0.4292, allocations: 43.98 kB / 0.5714 GB, free: 12.67 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007203/0.43, allocations: 448.6 kB / 0.5718 GB, free: 12.2 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.688e-05/0.43, allocations: 4 kB / 0.5718 GB, free: 12.2 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.706e-05/0.43, allocations: 15.98 kB / 0.5718 GB, free: 12.18 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.278e-05/0.43, allocations: 12 kB / 0.5718 GB, free: 12.17 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007075/0.4308, allocations: 375.7 kB / 0.5722 GB, free: 11.81 MB / 398.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002547/0.4333, allocations: 2.192 MB / 0.5743 GB, free: 9.398 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006003/0.4339, allocations: 359.6 kB / 0.5747 GB, free: 9.039 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003155/0.4343, allocations: 181.6 kB / 0.5748 GB, free: 8.859 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001193/0.4355, allocations: 1.007 MB / 0.5758 GB, free: 7.762 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003722/0.4358, allocations: 206.4 kB / 0.576 GB, free: 7.551 MB / 398.1 MB Notification: Performance of pre-optimization done (n=35): time 2.294e-06/0.4359, allocations: 0 / 0.576 GB, free: 7.551 MB / 398.1 MB Notification: Performance of matching and sorting (n=35): time 0.001421/0.4373, allocations: 0.7166 MB / 0.5767 GB, free: 6.785 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.609e-05/0.4373, allocations: 55.41 kB / 0.5768 GB, free: 6.719 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004073/0.4377, allocations: 393.5 kB / 0.5772 GB, free: 6.328 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.398e-05/0.4378, allocations: 37.69 kB / 0.5772 GB, free: 6.285 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001518/0.4379, allocations: 237 kB / 0.5774 GB, free: 6.047 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001035/0.4381, allocations: 116.7 kB / 0.5775 GB, free: 5.934 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001369/0.4382, allocations: 86.02 kB / 0.5776 GB, free: 5.844 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001326/0.4383, allocations: 358.7 kB / 0.578 GB, free: 5.484 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002982/0.4386, allocations: 144.8 kB / 0.5781 GB, free: 5.344 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003509/0.439, allocations: 237.7 kB / 0.5783 GB, free: 5.078 MB / 398.1 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: arteries.mass = arteries.tm_start (arteries.m_start[1] + arteries.massOffset = arteries.tm_start) Notification: Performance of analyzeInitialSystem (initialization): time 0.002116/0.4411, allocations: 0.9516 MB / 0.5792 GB, free: 4.078 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.366e-06/0.4411, allocations: 0 / 0.5792 GB, free: 4.078 MB / 398.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001001/0.4422, allocations: 0.5219 MB / 0.5798 GB, free: 3.543 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.101e-05/0.4422, allocations: 4 kB / 0.5798 GB, free: 3.539 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.194e-05/0.4422, allocations: 4 kB / 0.5798 GB, free: 3.535 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002315/0.4424, allocations: 81.55 kB / 0.5798 GB, free: 3.449 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000354/0.4428, allocations: 83.83 kB / 0.5799 GB, free: 3.367 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006944/0.4435, allocations: 1.116 MB / 0.581 GB, free: 2.199 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003294/0.4439, allocations: 55.45 kB / 0.5811 GB, free: 2.145 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.923e-05/0.4439, allocations: 16 kB / 0.5811 GB, free: 2.129 MB / 398.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: arteries.mass = arteries.tm_start. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 8 ($PRE.pulses.TD2,$PRE.pulses.HP,$PRE.pulses.T0,pulses.TD2,pulses.HP,pulses.b,pulses.T0,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (48): * Single equations (assignments): 44 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0002056/0.4441, allocations: 168.6 kB / 0.5812 GB, free: 1.957 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.192e-05/0.4442, allocations: 43.53 kB / 0.5813 GB, free: 1.914 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009414/0.4451, allocations: 488.8 kB / 0.5817 GB, free: 1.418 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.825e-06/0.4452, allocations: 7.984 kB / 0.5818 GB, free: 1.41 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.379e-06/0.4452, allocations: 0 / 0.5818 GB, free: 1.41 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.528e-06/0.4452, allocations: 4 kB / 0.5818 GB, free: 1.406 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00148/0.4467, allocations: 0.9595 MB / 0.5827 GB, free: 396 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.153e-05/0.4467, allocations: 8.031 kB / 0.5827 GB, free: 388 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002323/0.4469, allocations: 47.91 kB / 0.5827 GB, free: 340 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001721/0.4471, allocations: 69.66 kB / 0.5828 GB, free: 264 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.005e-05/0.4472, allocations: 8 kB / 0.5828 GB, free: 256 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006789/0.4478, allocations: 1.124 MB / 0.5839 GB, free: 15.07 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/0.4479, allocations: 0 / 0.5839 GB, free: 15.07 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001122/0.449, allocations: 0.6825 MB / 0.5846 GB, free: 14.37 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001837/0.4492, allocations: 152.6 kB / 0.5847 GB, free: 14.2 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.494e-05/0.4493, allocations: 11.98 kB / 0.5847 GB, free: 14.19 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002639/0.4495, allocations: 19.97 kB / 0.5848 GB, free: 14.17 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.76e-05/0.4496, allocations: 23.97 kB / 0.5848 GB, free: 14.14 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.932e-05/0.4496, allocations: 11.98 kB / 0.5848 GB, free: 14.13 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002969/0.45, allocations: 287.2 kB / 0.5851 GB, free: 13.85 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.363e-06/0.45, allocations: 0 / 0.5851 GB, free: 13.85 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001273/0.4512, allocations: 0.5344 MB / 0.5856 GB, free: 13.32 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (arteries.enthalpy,arteries.substanceMasses[1]) * Number of discrete variables: 5 (pulses.b,$whenCondition1,pulses.T0,pulses.HP,pulses.TD2) * Number of discrete states: 2 (pulses.T0,pulses.HP) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (29): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 3 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,3), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001379/0.4526, allocations: 0.8262 MB / 0.5864 GB, free: 12.56 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0008631/0.4535, allocations: 377.1 kB / 0.5868 GB, free: 12.2 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.4535, allocations: 4.062 kB / 0.5868 GB, free: 12.19 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003741/0.4539, allocations: 179.8 kB / 0.5869 GB, free: 12.02 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009439/0.4549, allocations: 209.2 kB / 0.5871 GB, free: 11.81 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00155/0.4564, allocations: 0.9131 MB / 0.588 GB, free: 10.88 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003806/0.4568, allocations: 0.8235 MB / 0.5888 GB, free: 10.02 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002668/0.4571, allocations: 88.09 kB / 0.5889 GB, free: 9.93 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001018/0.4572, allocations: 43.42 kB / 0.589 GB, free: 9.891 MB / 414.1 MB Notification: Performance of SimCode: time 3.5e-07/0.4572, allocations: 4 kB / 0.589 GB, free: 9.887 MB / 414.1 MB Notification: Performance of Templates: time 0.02553/0.4827, allocations: 18.12 MB / 0.6067 GB, free: 7.859 MB / 430.1 MB 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 -s gbode -lv LOG_STATS > Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_3element.pipe 2>&1)