Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Physiolibrary_Physiolibrary.Fluid.Examples.MinimalCirculation.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.08941/0.08941, allocations: 11.16 MB / 30.51 MB, free: 4.941 MB / 24.77 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.001843/0.001843, allocations: 95.64 kB / 38.14 MB, free: 7.191 MB / 33.03 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.002051/0.002051, allocations: 156.5 kB / 45.85 MB, free: 10.59 MB / 44.04 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.533/1.533, allocations: 177.1 MB / 230.6 MB, free: 4.785 MB / 202.7 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.1628/0.1628, allocations: 17.62 MB / 309.1 MB, free: 8.801 MB / 282.7 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.MinimalCirculation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Fluid.Examples.MinimalCirculation") translateModel(Physiolibrary.Fluid.Examples.MinimalCirculation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Fluid.Examples.MinimalCirculation") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.814e-06/1.814e-06, allocations: 0 / 390.4 MB, free: 46.57 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.037e-05/3.218e-05, allocations: 6.5 kB / 390.4 MB, free: 46.57 MB / 330.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/Fluid.mo:596:7-596: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:596:7-596: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.MinimalCirculation): time 0.08878/0.08881, allocations: 77.9 MB / 468.3 MB, free: 0.7969 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.02502/0.1138, allocations: 15.55 MB / 483.9 MB, free: 1.188 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00116/0.115, allocations: 23.81 kB / 483.9 MB, free: 1.164 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008988/0.1159, allocations: 258 kB / 484.2 MB, free: 0.9102 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0058/0.1217, allocations: 1.63 MB / 485.8 MB, free: 15.27 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007119/0.1288, allocations: 2.263 MB / 488.1 MB, free: 12.99 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.002452/0.1313, allocations: 1.527 MB / 489.6 MB, free: 11.46 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007137/0.132, allocations: 356.2 kB / 489.9 MB, free: 11.11 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00329/0.1353, allocations: 1.369 MB / 491.3 MB, free: 9.734 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001142/0.1364, allocations: 0.5063 MB / 491.8 MB, free: 9.227 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001379/0.1365, allocations: 56 kB / 491.9 MB, free: 9.172 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004281/0.1408, allocations: 1.298 MB / 493.2 MB, free: 7.871 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002978/0.1411, allocations: 187.3 kB / 493.3 MB, free: 7.688 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005006/0.1416, allocations: 255.4 kB / 493.6 MB, free: 7.438 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00541/0.147, allocations: 2.106 MB / 495.7 MB, free: 5.324 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.55e-06/0.147, allocations: 0 / 495.7 MB, free: 5.324 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.823e-06/0.147, allocations: 8 kB / 495.7 MB, free: 5.316 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.06e-05/0.147, allocations: 0 / 495.7 MB, free: 5.316 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 107 * Number of variables: 107 Notification: Performance of Generate backend data structure: time 0.00251/0.1496, allocations: 1.209 MB / 496.9 MB, free: 4.059 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.642e-05/0.1496, allocations: 8.031 kB / 496.9 MB, free: 4.051 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002236/0.1498, allocations: 103.6 kB / 497 MB, free: 3.949 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008171/0.1506, allocations: 416.5 kB / 497.4 MB, free: 3.516 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.225e-05/0.1507, allocations: 33 kB / 497.5 MB, free: 3.484 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.429e-05/0.1508, allocations: 51.95 kB / 497.5 MB, free: 3.434 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001134/0.1519, allocations: 0.6027 MB / 498.1 MB, free: 2.781 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.081e-05/0.1519, allocations: 4 kB / 498.1 MB, free: 2.777 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.293e-05/0.152, allocations: 20 kB / 498.1 MB, free: 2.758 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.065e-05/0.152, allocations: 16 kB / 498.2 MB, free: 2.742 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001013/0.153, allocations: 431.6 kB / 498.6 MB, free: 2.32 MB / 394.7 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.003638/0.1567, allocations: 2.153 MB / 0.489 GB, free: 96 kB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009047/0.1576, allocations: 393.7 kB / 0.4894 GB, free: 15.7 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005241/0.1581, allocations: 218.3 kB / 0.4896 GB, free: 15.48 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001759/0.1598, allocations: 0.8429 MB / 0.4904 GB, free: 14.62 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005931/0.1604, allocations: 296 kB / 0.4907 GB, free: 14.3 MB / 410.7 MB Notification: Performance of pre-optimization done (n=38): time 2.034e-06/0.1604, allocations: 4 kB / 0.4907 GB, free: 14.3 MB / 410.7 MB Notification: Performance of matching and sorting (n=38): time 0.001614/0.162, allocations: 0.5706 MB / 0.4912 GB, free: 13.72 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.931e-05/0.1621, allocations: 63.39 kB / 0.4913 GB, free: 13.64 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007023/0.1628, allocations: 0.5298 MB / 0.4918 GB, free: 13.09 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.731e-05/0.1629, allocations: 37.7 kB / 0.4919 GB, free: 13.05 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003218/0.1632, allocations: 358.9 kB / 0.4922 GB, free: 12.7 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001697/0.1633, allocations: 146.9 kB / 0.4923 GB, free: 12.55 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002198/0.1636, allocations: 127.9 kB / 0.4925 GB, free: 12.42 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003457/0.1639, allocations: 0.5508 MB / 0.493 GB, free: 11.86 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004412/0.1644, allocations: 198.9 kB / 0.4932 GB, free: 11.66 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006283/0.165, allocations: 391.3 kB / 0.4936 GB, free: 11.2 MB / 410.7 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) Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: veins.mass = veins.tm_start (veins.m_start[1] + veins.massOffset = veins.tm_start) Notification: Performance of analyzeInitialSystem (initialization): time 0.003968/0.169, allocations: 1.45 MB / 0.495 GB, free: 9.645 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.208e-06/0.169, allocations: 0 / 0.495 GB, free: 9.645 MB / 410.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001489/0.1704, allocations: 0.6765 MB / 0.4956 GB, free: 8.945 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.922e-05/0.1705, allocations: 37.69 kB / 0.4957 GB, free: 8.902 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.003e-05/0.1705, allocations: 4 kB / 0.4957 GB, free: 8.898 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001777/0.1707, allocations: 40.17 kB / 0.4957 GB, free: 8.855 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005335/0.1712, allocations: 123.8 kB / 0.4958 GB, free: 8.734 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006863/0.1719, allocations: 0.8312 MB / 0.4966 GB, free: 7.871 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004953/0.1724, allocations: 59.61 kB / 0.4967 GB, free: 7.812 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.061e-05/0.1725, allocations: 23.98 kB / 0.4967 GB, free: 7.789 MB / 410.7 MB Warning: The initial conditions are over specified. The following 2 initial equations are redundant, so they are removed from the initialization system: arteries.mass = arteries.tm_start veins.mass = veins.tm_start. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 5 ($PRE.pulse.count,$PRE.pulse.T_start,pulse.count,pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (63): * Single equations (assignments): 59 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0003176/0.1728, allocations: 228.3 kB / 0.4969 GB, free: 7.555 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001194/0.1729, allocations: 59.67 kB / 0.497 GB, free: 7.496 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00121/0.1741, allocations: 497.5 kB / 0.4975 GB, free: 7 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.266e-05/0.1741, allocations: 7.984 kB / 0.4975 GB, free: 6.992 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.677e-06/0.1741, allocations: 0 / 0.4975 GB, free: 6.992 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.386e-06/0.1741, allocations: 3.938 kB / 0.4975 GB, free: 6.988 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000666/0.1748, allocations: 432.2 kB / 0.4979 GB, free: 6.531 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.354e-06/0.1748, allocations: 0 / 0.4979 GB, free: 6.531 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003501/0.1751, allocations: 67.84 kB / 0.498 GB, free: 6.465 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001173/0.1753, allocations: 47.66 kB / 0.498 GB, free: 6.414 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.327e-05/0.1753, allocations: 7.984 kB / 0.498 GB, free: 6.406 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006422/0.1759, allocations: 0.8272 MB / 0.4988 GB, free: 5.547 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.1759, allocations: 0 / 0.4988 GB, free: 5.547 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001527/0.1775, allocations: 0.6906 MB / 0.4995 GB, free: 4.828 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000258/0.1777, allocations: 107.5 kB / 0.4996 GB, free: 4.723 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.782e-05/0.1778, allocations: 8 kB / 0.4996 GB, free: 4.715 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002938/0.1781, allocations: 15.98 kB / 0.4996 GB, free: 4.699 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001256/0.1782, allocations: 47.86 kB / 0.4997 GB, free: 4.652 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.339e-05/0.1783, allocations: 8 kB / 0.4997 GB, free: 4.645 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0004496/0.1787, allocations: 355 kB / 0.5 GB, free: 4.301 MB / 410.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1787, allocations: 0 / 0.5 GB, free: 4.301 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001374/0.1801, allocations: 0.5101 MB / 0.5005 GB, free: 3.789 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (arteries.enthalpy,arteries.substanceMasses[1],veins.enthalpy,veins.substanceMasses[1]) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (37): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001489/0.1816, allocations: 0.7588 MB / 0.5013 GB, free: 3.02 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001482/0.1831, allocations: 0.5283 MB / 0.5018 GB, free: 2.469 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.1831, allocations: 0 / 0.5018 GB, free: 2.469 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005158/0.1836, allocations: 221.5 kB / 0.502 GB, free: 2.25 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001113/0.1847, allocations: 237.4 kB / 0.5022 GB, free: 2.016 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002132/0.1868, allocations: 1.053 MB / 0.5032 GB, free: 0.9336 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002867/0.1871, allocations: 258.2 kB / 0.5035 GB, free: 0.6523 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0003992/0.1875, allocations: 120.3 kB / 0.5036 GB, free: 0.5312 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001671/0.1877, allocations: 56.47 kB / 0.5036 GB, free: 488 kB / 410.7 MB Notification: Performance of SimCode: time 7.61e-07/0.1877, allocations: 0 / 0.5036 GB, free: 488 kB / 410.7 MB Notification: Performance of Templates: time 0.175/0.3626, allocations: 17.82 MB / 0.5211 GB, free: 140.9 MB / 426.7 MB " [Timeout remaining time 660] make -j1 -f Physiolibrary_Physiolibrary.Fluid.Examples.MinimalCirculation.makefile [Timeout 660] (rm -f Physiolibrary_Physiolibrary.Fluid.Examples.MinimalCirculation.pipe ; mkfifo Physiolibrary_Physiolibrary.Fluid.Examples.MinimalCirculation.pipe ; head -c 1048576 < Physiolibrary_Physiolibrary.Fluid.Examples.MinimalCirculation.pipe >> ../files/Physiolibrary_Physiolibrary.Fluid.Examples.MinimalCirculation.sim & ./Physiolibrary_Physiolibrary.Fluid.Examples.MinimalCirculation -abortSlowSimulation -alarm=240 -lv LOG_STATS > Physiolibrary_Physiolibrary.Fluid.Examples.MinimalCirculation.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 6.039615064044483]