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.1/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1/package.mo): time 0.1024/0.1024, allocations: 15.56 MB / 34.45 MB, free: 4.477 MB / 26.18 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001402/0.001402, allocations: 113.9 kB / 42.04 MB, free: 6.152 MB / 34.91 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001646/0.001646, allocations: 213.7 kB / 49.73 MB, free: 9.984 MB / 34.91 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.52/1.52, allocations: 230.6 MB / 287.9 MB, free: 6.352 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1516/0.1516, allocations: 23.73 MB / 372.5 MB, free: 2.91 MB / 286.1 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Using package Chemical with version 1.4.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1/package.mo) Running command: translateModel(Physiolibrary.Fluid.Examples.Windkessel_3element,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_3element") translateModel(Physiolibrary.Fluid.Examples.Windkessel_3element,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_3element") [Timeout 660] "Notification: Chemical requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Physiolibrary requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Physiolibrary requested package Complex of version 4.0.0. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Warning: Requested package Chemical of version 1.4.0, but this package was already loaded with version 1.4.1. There are no conversion annotations and 1.4.0 is older than 1.4.1, so the libraries are probably incompatible. Notification: Performance of FrontEnd - loaded program: time 0.003667/0.003667, allocations: 126.5 kB / 0.5053 GB, free: 14.61 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2826/0.2863, allocations: 63.85 MB / 0.5676 GB, free: 14.42 MB / 398.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.1275/0.4138, allocations: 69.67 MB / 0.6357 GB, free: 8.695 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.02157/0.4354, allocations: 16.86 MB / 0.6521 GB, free: 7.773 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005769/0.4359, allocations: 19.88 kB / 0.6521 GB, free: 7.754 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007116/0.4366, allocations: 238.3 kB / 0.6524 GB, free: 7.52 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006441/0.4431, allocations: 2.368 MB / 0.6547 GB, free: 5.137 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004297/0.4474, allocations: 1.62 MB / 0.6563 GB, free: 3.508 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.001475/0.4489, allocations: 1.192 MB / 0.6574 GB, free: 2.309 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004281/0.4493, allocations: 279.9 kB / 0.6577 GB, free: 2.027 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002268/0.4516, allocations: 1.085 MB / 0.6588 GB, free: 0.9375 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006705/0.4522, allocations: 454.1 kB / 0.6592 GB, free: 0.4922 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 7.305e-05/0.4523, allocations: 48 kB / 0.6592 GB, free: 456 kB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003502/0.4558, allocations: 1.485 MB / 0.6607 GB, free: 14.95 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001761/0.456, allocations: 139.4 kB / 0.6608 GB, free: 14.82 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002861/0.4563, allocations: 239 kB / 0.661 GB, free: 14.59 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004487/0.4608, allocations: 2.113 MB / 0.6631 GB, free: 12.46 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.815e-06/0.4608, allocations: 0 / 0.6631 GB, free: 12.46 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.835e-06/0.4608, allocations: 0 / 0.6631 GB, free: 12.46 MB / 494.1 MB Notification: Performance of Transformations before backend: time 2.261e-05/0.4608, allocations: 0 / 0.6631 GB, free: 12.46 MB / 494.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.002721/0.4635, allocations: 0.9794 MB / 0.6641 GB, free: 11.45 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.007e-05/0.4636, allocations: 8.031 kB / 0.6641 GB, free: 11.45 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001614/0.4637, allocations: 51.67 kB / 0.6641 GB, free: 11.39 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007347/0.4645, allocations: 352.8 kB / 0.6645 GB, free: 11.02 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.271e-05/0.4645, allocations: 32.94 kB / 0.6645 GB, free: 10.99 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.972e-05/0.4646, allocations: 40 kB / 0.6645 GB, free: 10.95 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009562/0.4655, allocations: 474.3 kB / 0.665 GB, free: 10.46 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.344e-05/0.4656, allocations: 8 kB / 0.665 GB, free: 10.45 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.574e-05/0.4656, allocations: 12 kB / 0.665 GB, free: 10.44 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.718e-05/0.4656, allocations: 8 kB / 0.665 GB, free: 10.43 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008054/0.4664, allocations: 379.7 kB / 0.6654 GB, free: 10.06 MB / 494.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.002737/0.4692, allocations: 1.359 MB / 0.6667 GB, free: 8.652 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007324/0.4699, allocations: 334.9 kB / 0.667 GB, free: 8.316 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003384/0.4702, allocations: 165.3 kB / 0.6672 GB, free: 8.152 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001308/0.4715, allocations: 0.6138 MB / 0.6678 GB, free: 7.52 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005075/0.472, allocations: 238.1 kB / 0.668 GB, free: 7.27 MB / 494.1 MB Notification: Performance of pre-optimization done (n=35): time 5.46e-06/0.4721, allocations: 4 kB / 0.668 GB, free: 7.266 MB / 494.1 MB Notification: Performance of matching and sorting (n=35): time 0.001683/0.4737, allocations: 0.5545 MB / 0.6685 GB, free: 6.699 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.325e-05/0.4738, allocations: 67.33 kB / 0.6686 GB, free: 6.621 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005058/0.4743, allocations: 365.5 kB / 0.669 GB, free: 6.262 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 4.162e-05/0.4743, allocations: 33.7 kB / 0.669 GB, free: 6.223 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002262/0.4746, allocations: 252.4 kB / 0.6692 GB, free: 5.973 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000135/0.4747, allocations: 123 kB / 0.6693 GB, free: 5.852 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001553/0.4749, allocations: 82.17 kB / 0.6694 GB, free: 5.762 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0002257/0.4751, allocations: 350.8 kB / 0.6698 GB, free: 5.41 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003481/0.4754, allocations: 152.9 kB / 0.6699 GB, free: 5.262 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004297/0.4759, allocations: 238.1 kB / 0.6701 GB, free: 4.996 MB / 494.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.002448/0.4783, allocations: 0.8865 MB / 0.671 GB, free: 4.078 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.684e-06/0.4783, allocations: 4 kB / 0.671 GB, free: 4.074 MB / 494.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001171/0.4795, allocations: 0.5151 MB / 0.6715 GB, free: 3.547 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.621e-05/0.4795, allocations: 16.25 kB / 0.6715 GB, free: 3.531 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.378e-05/0.4795, allocations: 4 kB / 0.6715 GB, free: 3.527 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002708/0.4798, allocations: 73.67 kB / 0.6716 GB, free: 3.449 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003843/0.4802, allocations: 75.83 kB / 0.6717 GB, free: 3.375 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009956/0.4812, allocations: 1.116 MB / 0.6728 GB, free: 2.207 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003804/0.4816, allocations: 47.91 kB / 0.6728 GB, free: 2.16 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.258e-05/0.4816, allocations: 16 kB / 0.6728 GB, free: 2.145 MB / 494.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.0002805/0.4819, allocations: 165.8 kB / 0.673 GB, free: 1.973 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.876e-05/0.482, allocations: 51.64 kB / 0.673 GB, free: 1.922 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001173/0.4831, allocations: 480.7 kB / 0.6735 GB, free: 1.426 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.126e-05/0.4832, allocations: 4 kB / 0.6735 GB, free: 1.422 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.222e-06/0.4832, allocations: 0 / 0.6735 GB, free: 1.422 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.911e-06/0.4832, allocations: 0 / 0.6735 GB, free: 1.422 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001741/0.4849, allocations: 0.8559 MB / 0.6743 GB, free: 0.5195 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.342e-06/0.4849, allocations: 3.938 kB / 0.6743 GB, free: 0.5156 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002542/0.4852, allocations: 51.94 kB / 0.6744 GB, free: 476 kB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002224/0.4854, allocations: 73.61 kB / 0.6744 GB, free: 396 kB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.341e-05/0.4854, allocations: 11.98 kB / 0.6745 GB, free: 384 kB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009562/0.4864, allocations: 1.12 MB / 0.6756 GB, free: 15.2 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.4864, allocations: 0 / 0.6756 GB, free: 15.2 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001284/0.4877, allocations: 0.6905 MB / 0.6762 GB, free: 14.48 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001646/0.4878, allocations: 71.64 kB / 0.6763 GB, free: 14.41 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.179e-05/0.4879, allocations: 8 kB / 0.6763 GB, free: 14.41 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002626/0.4882, allocations: 15.98 kB / 0.6763 GB, free: 14.39 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.794e-05/0.4883, allocations: 27.95 kB / 0.6763 GB, free: 14.36 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.42e-05/0.4883, allocations: 11.98 kB / 0.6764 GB, free: 14.35 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0003142/0.4886, allocations: 255.2 kB / 0.6766 GB, free: 14.11 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4886, allocations: 4.062 kB / 0.6766 GB, free: 14.1 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.001526/0.4901, allocations: 0.5333 MB / 0.6771 GB, free: 13.57 MB / 0.4981 GB 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.001494/0.4916, allocations: 0.8566 MB / 0.678 GB, free: 12.7 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0009273/0.4926, allocations: 355.7 kB / 0.6783 GB, free: 12.35 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.4926, allocations: 0.625 kB / 0.6783 GB, free: 12.35 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0004018/0.493, allocations: 167.9 kB / 0.6785 GB, free: 12.18 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009373/0.4939, allocations: 179.1 kB / 0.6786 GB, free: 12.01 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001719/0.4956, allocations: 0.9267 MB / 0.6795 GB, free: 11.05 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002267/0.4958, allocations: 220.3 kB / 0.6797 GB, free: 10.82 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0002666/0.4961, allocations: 83.22 kB / 0.6798 GB, free: 10.73 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001102/0.4962, allocations: 44.42 kB / 0.6799 GB, free: 10.69 MB / 0.4981 GB Notification: Performance of SimCode: time 8.12e-07/0.4962, allocations: 0 / 0.6799 GB, free: 10.69 MB / 0.4981 GB Notification: Performance of Templates: time 0.02828/0.5245, allocations: 17.6 MB / 0.6971 GB, free: 9.227 MB / 0.5137 GB " [Timeout remaining time 659] make -j1 -f Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_3element.makefile [Timeout 660] (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) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.605532620102167] Failed to read output from testmodel.py, exit status != 0: 0.5336263012140989 0.547984884 0.084037083 Calling exit ...