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.08842/0.08842, allocations: 11.16 MB / 30.51 MB, free: 4.918 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.001583/0.001583, allocations: 99.77 kB / 38.14 MB, free: 7.195 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.001641/0.001641, allocations: 156.5 kB / 45.85 MB, free: 10.6 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.427/1.427, allocations: 177.2 MB / 230.6 MB, free: 4.77 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.148/0.148, allocations: 17.62 MB / 309.1 MB, free: 8.805 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.693e-06/1.693e-06, allocations: 0.5469 kB / 390.4 MB, free: 46.56 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.07e-05/2.239e-05, allocations: 5.375 kB / 390.4 MB, free: 46.56 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.06853/0.06855, allocations: 71.1 MB / 461.5 MB, free: 7.613 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.02098/0.08953, allocations: 13.72 MB / 475.2 MB, free: 9.844 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000832/0.09036, allocations: 27.81 kB / 475.3 MB, free: 9.816 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00082/0.09118, allocations: 254 kB / 475.5 MB, free: 9.566 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004438/0.09562, allocations: 1.634 MB / 477.1 MB, free: 7.922 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006291/0.1019, allocations: 2.259 MB / 479.4 MB, free: 5.648 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.002169/0.1041, allocations: 1.527 MB / 480.9 MB, free: 4.117 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007633/0.1048, allocations: 356.2 kB / 481.3 MB, free: 3.766 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003066/0.1079, allocations: 1.354 MB / 482.6 MB, free: 2.406 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001013/0.1089, allocations: 0.5063 MB / 483.1 MB, free: 1.898 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001009/0.109, allocations: 56 kB / 483.2 MB, free: 1.844 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003277/0.1123, allocations: 1.301 MB / 484.5 MB, free: 0.5391 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002454/0.1125, allocations: 183.3 kB / 484.7 MB, free: 368 kB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003936/0.1129, allocations: 255.4 kB / 484.9 MB, free: 112 kB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004062/0.117, allocations: 2.11 MB / 487 MB, free: 13.99 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.117, allocations: 4 kB / 487 MB, free: 13.99 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.082e-06/0.117, allocations: 0 / 487 MB, free: 13.99 MB / 394.7 MB Notification: Performance of Transformations before backend: time 8.095e-06/0.117, allocations: 0 / 487 MB, free: 13.99 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.002293/0.1193, allocations: 1.09 MB / 488.1 MB, free: 12.86 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.815e-05/0.1193, allocations: 8.031 kB / 488.1 MB, free: 12.85 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002259/0.1196, allocations: 103.6 kB / 488.2 MB, free: 12.75 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007875/0.1204, allocations: 417.7 kB / 488.6 MB, free: 12.31 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.1e-05/0.1204, allocations: 44.92 kB / 488.7 MB, free: 12.27 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001002/0.1205, allocations: 51.95 kB / 488.7 MB, free: 12.22 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001227/0.1217, allocations: 0.604 MB / 489.3 MB, free: 11.57 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.807e-05/0.1218, allocations: 0 / 489.3 MB, free: 11.57 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.687e-05/0.1218, allocations: 20 kB / 489.4 MB, free: 11.55 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.058e-05/0.1218, allocations: 15.98 kB / 489.4 MB, free: 11.54 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00125/0.1231, allocations: 495.5 kB / 489.9 MB, free: 11.05 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.003181/0.1263, allocations: 1.736 MB / 491.6 MB, free: 9.262 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001025/0.1273, allocations: 427.2 kB / 492 MB, free: 8.836 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006216/0.1279, allocations: 244.7 kB / 492.3 MB, free: 8.594 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001672/0.1296, allocations: 0.769 MB / 493 MB, free: 7.805 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000675/0.1303, allocations: 318.8 kB / 493.3 MB, free: 7.469 MB / 394.7 MB Notification: Performance of pre-optimization done (n=38): time 1.964e-06/0.1303, allocations: 4 kB / 493.3 MB, free: 7.465 MB / 394.7 MB Notification: Performance of matching and sorting (n=38): time 0.001878/0.1321, allocations: 0.6618 MB / 494 MB, free: 6.793 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.65e-05/0.1322, allocations: 63.39 kB / 494.1 MB, free: 6.719 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006188/0.1328, allocations: 445.7 kB / 494.5 MB, free: 6.273 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 4.771e-05/0.1329, allocations: 33.7 kB / 494.5 MB, free: 6.234 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002631/0.1331, allocations: 296.2 kB / 494.8 MB, free: 5.941 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001531/0.1333, allocations: 138.8 kB / 495 MB, free: 5.805 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002143/0.1335, allocations: 110.3 kB / 495.1 MB, free: 5.691 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002127/0.1337, allocations: 354.8 kB / 495.4 MB, free: 5.336 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005493/0.1342, allocations: 242.9 kB / 495.7 MB, free: 5.094 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006973/0.1349, allocations: 371.1 kB / 496 MB, free: 4.668 MB / 394.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.004565/0.1395, allocations: 1.619 MB / 497.6 MB, free: 2.973 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.539e-06/0.1395, allocations: 0 / 497.6 MB, free: 2.973 MB / 394.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.00171/0.1412, allocations: 0.7562 MB / 498.4 MB, free: 2.191 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.244e-05/0.1413, allocations: 33.77 kB / 498.4 MB, free: 2.152 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.367e-06/0.1413, allocations: 4 kB / 498.4 MB, free: 2.148 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001749/0.1415, allocations: 44.83 kB / 498.5 MB, free: 2.102 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005643/0.142, allocations: 115.8 kB / 498.6 MB, free: 1.988 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005348/0.1426, allocations: 0.564 MB / 499.1 MB, free: 1.398 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005261/0.1431, allocations: 67.7 kB / 499.2 MB, free: 1.332 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.09e-05/0.1431, allocations: 23.98 kB / 499.2 MB, free: 1.309 MB / 394.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.0003013/0.1434, allocations: 189.6 kB / 499.4 MB, free: 1.113 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001214/0.1436, allocations: 55.72 kB / 499.5 MB, free: 1.059 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001392/0.145, allocations: 0.553 MB / 0.4883 GB, free: 0.4961 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.574e-05/0.145, allocations: 7.984 kB / 0.4883 GB, free: 500 kB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.688e-06/0.145, allocations: 0 / 0.4883 GB, free: 500 kB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.774e-06/0.145, allocations: 3.938 kB / 0.4883 GB, free: 496 kB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005855/0.1456, allocations: 384.8 kB / 0.4887 GB, free: 80 kB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.525e-06/0.1456, allocations: 0 / 0.4887 GB, free: 80 kB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003985/0.146, allocations: 71.88 kB / 0.4888 GB, free: 8 kB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001315/0.1461, allocations: 40.84 kB / 0.4888 GB, free: 15.96 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.873e-05/0.1461, allocations: 15.98 kB / 0.4888 GB, free: 15.95 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004963/0.1466, allocations: 0.5562 MB / 0.4894 GB, free: 15.37 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.1466, allocations: 0 / 0.4894 GB, free: 15.37 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001823/0.1485, allocations: 0.7743 MB / 0.4901 GB, free: 14.57 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002419/0.1487, allocations: 111.6 kB / 0.4902 GB, free: 14.46 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.064e-05/0.1488, allocations: 7.984 kB / 0.4902 GB, free: 14.45 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003478/0.1491, allocations: 19.98 kB / 0.4902 GB, free: 14.43 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001264/0.1493, allocations: 39.92 kB / 0.4903 GB, free: 14.39 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.652e-05/0.1493, allocations: 12 kB / 0.4903 GB, free: 14.38 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0004071/0.1497, allocations: 303.1 kB / 0.4906 GB, free: 14.09 MB / 410.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1497, allocations: 0 / 0.4906 GB, free: 14.09 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001296/0.151, allocations: 0.5062 MB / 0.4911 GB, free: 13.58 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.001438/0.1524, allocations: 0.7627 MB / 0.4918 GB, free: 12.8 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001485/0.1539, allocations: 0.5569 MB / 0.4924 GB, free: 12.23 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.1539, allocations: 1 kB / 0.4924 GB, free: 12.23 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005946/0.1545, allocations: 230.4 kB / 0.4926 GB, free: 12 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001119/0.1556, allocations: 246.6 kB / 0.4928 GB, free: 11.77 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002285/0.1579, allocations: 1.078 MB / 0.4939 GB, free: 10.66 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003249/0.1582, allocations: 274.2 kB / 0.4941 GB, free: 10.37 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0004102/0.1587, allocations: 116.4 kB / 0.4942 GB, free: 10.26 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001818/0.1588, allocations: 60.41 kB / 0.4943 GB, free: 10.2 MB / 410.7 MB Notification: Performance of SimCode: time 7.02e-07/0.1588, allocations: 4 kB / 0.4943 GB, free: 10.2 MB / 410.7 MB Notification: Performance of Templates: time 0.03191/0.1907, allocations: 17.82 MB / 0.5117 GB, free: 8.574 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=480 -lv LOG_STATS > Physiolibrary_Physiolibrary.Fluid.Examples.MinimalCirculation.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.621767764911056]