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.0847/0.0847, allocations: 15.28 MB / 31.54 MB, free: 4.172 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.001092/0.001092, allocations: 108.6 kB / 36.54 MB, free: 3.188 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.001242/0.001242, allocations: 193.1 kB / 41.65 MB, free: 7.172 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.409/1.409, allocations: 222.9 MB / 269.5 MB, free: 6.969 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1437/0.1437, allocations: 23.36 MB / 347.2 MB, free: 0.6914 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002012/0.002012, allocations: 107.8 kB / 419.7 MB, free: 29.72 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.105/0.107, allocations: 59.38 MB / 479 MB, free: 2.289 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.3171/0.4241, allocations: 74.04 MB / 0.5401 GB, free: 9.23 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01728/0.4414, allocations: 18.85 MB / 0.5585 GB, free: 5.223 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008723/0.4423, allocations: 11.94 kB / 0.5585 GB, free: 5.211 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007885/0.4431, allocations: 235.9 kB / 0.5588 GB, free: 5.094 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006785/0.4499, allocations: 2.338 MB / 0.561 GB, free: 3.703 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005043/0.455, allocations: 1.586 MB / 0.5626 GB, free: 2.816 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001555/0.4566, allocations: 1.213 MB / 0.5638 GB, free: 2.027 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006345/0.4572, allocations: 364.9 kB / 0.5641 GB, free: 1.852 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002722/0.46, allocations: 1.069 MB / 0.5652 GB, free: 1.184 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008897/0.4609, allocations: 459.5 kB / 0.5656 GB, free: 0.9102 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001917/0.4611, allocations: 44 kB / 0.5656 GB, free: 0.8672 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005304/0.4664, allocations: 1.716 MB / 0.5673 GB, free: 15.8 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002714/0.4667, allocations: 134.3 kB / 0.5675 GB, free: 15.76 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005635/0.4673, allocations: 284.2 kB / 0.5677 GB, free: 15.57 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006519/0.4738, allocations: 2.18 MB / 0.5699 GB, free: 14.2 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.342e-06/0.4738, allocations: 4 kB / 0.5699 GB, free: 14.2 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.4738, allocations: 0 / 0.5699 GB, free: 14.2 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.029e-05/0.4739, allocations: 4 kB / 0.5699 GB, free: 14.2 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.002061/0.4759, allocations: 1.02 MB / 0.5709 GB, free: 13.21 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.866e-05/0.476, allocations: 12.03 kB / 0.5709 GB, free: 13.2 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001411/0.4761, allocations: 61.42 kB / 0.5709 GB, free: 13.14 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005975/0.4767, allocations: 406.4 kB / 0.5713 GB, free: 12.77 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.126e-05/0.4768, allocations: 29 kB / 0.5713 GB, free: 12.74 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.917e-05/0.4768, allocations: 40 kB / 0.5714 GB, free: 12.7 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007826/0.4776, allocations: 452 kB / 0.5718 GB, free: 12.23 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.691e-05/0.4777, allocations: 0 / 0.5718 GB, free: 12.23 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.001e-05/0.4777, allocations: 12 kB / 0.5718 GB, free: 12.22 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.008e-05/0.4777, allocations: 23.98 kB / 0.5718 GB, free: 12.2 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007071/0.4784, allocations: 379.7 kB / 0.5722 GB, free: 11.83 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.002743/0.4812, allocations: 2.193 MB / 0.5743 GB, free: 9.422 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000709/0.4819, allocations: 355.6 kB / 0.5747 GB, free: 9.066 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003204/0.4823, allocations: 177.6 kB / 0.5749 GB, free: 8.891 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001313/0.4836, allocations: 1.003 MB / 0.5758 GB, free: 7.797 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003981/0.484, allocations: 210.3 kB / 0.576 GB, free: 7.582 MB / 398.1 MB Notification: Performance of pre-optimization done (n=35): time 1.964e-06/0.484, allocations: 7.938 kB / 0.576 GB, free: 7.574 MB / 398.1 MB Notification: Performance of matching and sorting (n=35): time 0.001523/0.4855, allocations: 0.7088 MB / 0.5767 GB, free: 6.816 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.06e-05/0.4856, allocations: 59.41 kB / 0.5768 GB, free: 6.746 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004415/0.486, allocations: 397.5 kB / 0.5772 GB, free: 6.352 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.571e-05/0.4861, allocations: 37.7 kB / 0.5772 GB, free: 6.309 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001865/0.4863, allocations: 232 kB / 0.5774 GB, free: 6.074 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.723e-05/0.4864, allocations: 113.2 kB / 0.5775 GB, free: 5.965 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001441/0.4865, allocations: 90.02 kB / 0.5776 GB, free: 5.871 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001548/0.4867, allocations: 354.7 kB / 0.578 GB, free: 5.516 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003106/0.487, allocations: 148.8 kB / 0.5781 GB, free: 5.371 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003672/0.4874, allocations: 233.7 kB / 0.5783 GB, free: 5.109 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.002216/0.4896, allocations: 0.9552 MB / 0.5793 GB, free: 4.105 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.52e-06/0.4896, allocations: 4 kB / 0.5793 GB, free: 4.102 MB / 398.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001009/0.4906, allocations: 0.51 MB / 0.5798 GB, free: 3.578 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.2e-05/0.4907, allocations: 11.98 kB / 0.5798 GB, free: 3.566 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.778e-06/0.4907, allocations: 0 / 0.5798 GB, free: 3.566 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002571/0.491, allocations: 81.92 kB / 0.5798 GB, free: 3.48 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003656/0.4913, allocations: 79.89 kB / 0.5799 GB, free: 3.402 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008013/0.4921, allocations: 1.116 MB / 0.581 GB, free: 2.234 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003397/0.4925, allocations: 51.62 kB / 0.5811 GB, free: 2.184 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.738e-05/0.4926, allocations: 23.98 kB / 0.5811 GB, free: 2.16 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.000228/0.4928, allocations: 165.8 kB / 0.5812 GB, free: 1.988 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.446e-05/0.4929, allocations: 39.53 kB / 0.5813 GB, free: 1.949 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001006/0.4939, allocations: 488.8 kB / 0.5817 GB, free: 1.453 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.009e-05/0.4939, allocations: 7.984 kB / 0.5818 GB, free: 1.445 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.54e-06/0.4939, allocations: 0 / 0.5818 GB, free: 1.445 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.56e-06/0.4939, allocations: 0 / 0.5818 GB, free: 1.445 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001566/0.4955, allocations: 0.975 MB / 0.5827 GB, free: 420 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.775e-06/0.4955, allocations: 0 / 0.5827 GB, free: 420 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002515/0.4958, allocations: 47.91 kB / 0.5828 GB, free: 372 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001794/0.496, allocations: 81.72 kB / 0.5828 GB, free: 284 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.301e-05/0.496, allocations: 12 kB / 0.5828 GB, free: 272 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007361/0.4968, allocations: 1.109 MB / 0.5839 GB, free: 15.11 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/0.4968, allocations: 4 kB / 0.5839 GB, free: 15.1 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001197/0.498, allocations: 0.6824 MB / 0.5846 GB, free: 14.39 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001863/0.4982, allocations: 148.5 kB / 0.5847 GB, free: 14.23 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.884e-05/0.4982, allocations: 11.98 kB / 0.5848 GB, free: 14.22 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002706/0.4985, allocations: 20.05 kB / 0.5848 GB, free: 14.2 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.759e-05/0.4986, allocations: 27.97 kB / 0.5848 GB, free: 14.17 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.09e-05/0.4987, allocations: 11.98 kB / 0.5848 GB, free: 14.16 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003284/0.499, allocations: 283.2 kB / 0.5851 GB, free: 13.88 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.499, allocations: 0 / 0.5851 GB, free: 13.88 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001471/0.5005, allocations: 0.5189 MB / 0.5856 GB, free: 13.36 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.001534/0.502, allocations: 0.8366 MB / 0.5864 GB, free: 12.6 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0008861/0.5029, allocations: 388 kB / 0.5868 GB, free: 12.22 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.228e-06/0.5029, allocations: 4 kB / 0.5868 GB, free: 12.22 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003692/0.5033, allocations: 176.5 kB / 0.5869 GB, free: 12.05 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009239/0.5042, allocations: 207.8 kB / 0.5871 GB, free: 11.85 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001577/0.5058, allocations: 0.921 MB / 0.588 GB, free: 10.9 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003839/0.5062, allocations: 0.8235 MB / 0.5888 GB, free: 10.04 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.000255/0.5065, allocations: 84.16 kB / 0.5889 GB, free: 9.957 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.647e-05/0.5066, allocations: 43.42 kB / 0.589 GB, free: 9.918 MB / 414.1 MB Notification: Performance of SimCode: time 2.5e-07/0.5066, allocations: 0 / 0.589 GB, free: 9.918 MB / 414.1 MB Notification: Performance of Templates: time 0.02661/0.5332, allocations: 18.12 MB / 0.6067 GB, free: 7.891 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 cvode -lv LOG_STATS > Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_3element.pipe 2>&1)