Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Physiolibrary_Physiolibrary.Population.Examples.PredatorPrey.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/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-master/package.mo) Running command: translateModel(Physiolibrary.Population.Examples.PredatorPrey,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Population.Examples.PredatorPrey") translateModel(Physiolibrary.Population.Examples.PredatorPrey,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Population.Examples.PredatorPrey") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo): time 0.1291/0.1291, allocations: 15.27 MB / 30.51 MB, free: 4.344 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.001317/0.001317, allocations: 109.5 kB / 35.48 MB, free: 3.395 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.001771/0.001771, allocations: 200.5 kB / 40.58 MB, free: 7.453 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.393/1.393, allocations: 222.9 MB / 268.4 MB, free: 7.555 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1364/0.1364, allocations: 23.34 MB / 346.1 MB, free: 0.793 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00188/0.001881, allocations: 107.8 kB / 417.7 MB, free: 30.79 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1064/0.1083, allocations: 59.37 MB / 477 MB, free: 3.367 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Physiolibrary.Population.Examples.PredatorPrey): time 0.003475/0.1118, allocations: 2.372 MB / 479.4 MB, free: 0.9766 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002891/0.1121, allocations: 143.4 kB / 479.5 MB, free: 0.8359 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.52e-05/0.1122, allocations: 4 kB / 479.5 MB, free: 0.832 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000122/0.1123, allocations: 15.86 kB / 479.6 MB, free: 0.8164 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.881e-05/0.1124, allocations: 47.61 kB / 479.6 MB, free: 0.7695 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001186/0.1125, allocations: 35.97 kB / 479.6 MB, free: 0.7344 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001818/0.1127, allocations: 175.1 kB / 479.8 MB, free: 0.5625 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001542/0.1129, allocations: 69.91 kB / 479.9 MB, free: 0.4961 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.035e-05/0.113, allocations: 63.73 kB / 479.9 MB, free: 444 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001005/0.1131, allocations: 67.7 kB / 480 MB, free: 376 kB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.02e-05/0.1131, allocations: 8 kB / 480 MB, free: 368 kB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.446e-05/0.1131, allocations: 12 kB / 480 MB, free: 356 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.516e-05/0.1132, allocations: 23.92 kB / 480 MB, free: 332 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.201e-05/0.1132, allocations: 83.55 kB / 480.1 MB, free: 248 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001489/0.1134, allocations: 155.7 kB / 480.3 MB, free: 92 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.067e-06/0.1134, allocations: 0 / 480.3 MB, free: 92 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.1134, allocations: 4 kB / 480.3 MB, free: 88 kB / 334.1 MB Notification: Performance of Transformations before backend: time 5.26e-06/0.1134, allocations: 0 / 480.3 MB, free: 88 kB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.0004815/0.1139, allocations: 435 kB / 480.7 MB, free: 15.61 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.886e-05/0.1139, allocations: 16.02 kB / 480.7 MB, free: 15.59 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.187e-05/0.114, allocations: 16.75 kB / 480.7 MB, free: 15.58 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001812/0.1142, allocations: 208 kB / 480.9 MB, free: 15.34 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.61e-05/0.1142, allocations: 12.38 kB / 481 MB, free: 15.32 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.421e-05/0.1142, allocations: 16.38 kB / 481 MB, free: 15.31 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002057/0.1144, allocations: 114.7 kB / 481.1 MB, free: 15.19 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.132e-05/0.1145, allocations: 4.188 kB / 481.1 MB, free: 15.19 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.551e-05/0.1145, allocations: 7.938 kB / 481.1 MB, free: 15.18 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.951e-06/0.1145, allocations: 4 kB / 481.1 MB, free: 15.18 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001379/0.1146, allocations: 67.97 kB / 481.2 MB, free: 15.11 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005576/0.1152, allocations: 452.3 kB / 481.6 MB, free: 14.62 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001812/0.1154, allocations: 114.6 kB / 481.7 MB, free: 14.5 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.687e-05/0.1155, allocations: 44.84 kB / 481.8 MB, free: 14.45 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.112e-05/0.1155, allocations: 7.938 kB / 481.8 MB, free: 14.44 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.236e-05/0.1155, allocations: 38.5 kB / 481.8 MB, free: 14.39 MB / 350.1 MB Notification: Performance of pre-optimization done (n=12): time 1.212e-06/0.1155, allocations: 0 / 481.8 MB, free: 14.39 MB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.0002517/0.1158, allocations: 141.3 kB / 481.9 MB, free: 14.25 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.994e-05/0.1158, allocations: 55.41 kB / 482 MB, free: 14.18 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001173/0.1159, allocations: 153.3 kB / 482.1 MB, free: 14.02 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.317e-05/0.116, allocations: 25.7 kB / 482.2 MB, free: 13.99 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.791e-05/0.116, allocations: 119.7 kB / 482.3 MB, free: 13.87 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.323e-05/0.1161, allocations: 51.34 kB / 482.3 MB, free: 13.82 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.714e-05/0.1161, allocations: 33.7 kB / 482.4 MB, free: 13.78 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.664e-05/0.1162, allocations: 326.8 kB / 482.7 MB, free: 13.45 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.022e-05/0.1163, allocations: 24 kB / 482.7 MB, free: 13.43 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.948e-05/0.1163, allocations: 31.98 kB / 482.7 MB, free: 13.4 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003728/0.1167, allocations: 156.7 kB / 482.9 MB, free: 13.24 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.1167, allocations: 0 / 482.9 MB, free: 13.24 MB / 350.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0001836/0.1169, allocations: 152.2 kB / 483 MB, free: 13.09 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.524e-05/0.1169, allocations: 11.94 kB / 483.1 MB, free: 13.08 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.707e-06/0.1169, allocations: 0 / 483.1 MB, free: 13.08 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.062e-05/0.1169, allocations: 0 / 483.1 MB, free: 13.08 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001361/0.1171, allocations: 27.98 kB / 483.1 MB, free: 13.05 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.749e-06/0.1171, allocations: 0 / 483.1 MB, free: 13.05 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.221e-05/0.1172, allocations: 11.91 kB / 483.1 MB, free: 13.04 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.726e-06/0.1172, allocations: 4 kB / 483.1 MB, free: 13.04 MB / 350.1 MB Warning: Assuming fixed start value for the following 2 variables: predator.population:VARIABLE(flow=false min = max(0.0, max(0.0, max(0.0, 0.0))) start = predator.population_start unit = "1" fixed = true nominal = predator.NominalPopulation ) type: Real prey.population:VARIABLE(flow=false min = max(0.0, max(0.0, max(0.0, 0.0))) start = prey.population_start unit = "1" fixed = true nominal = prey.NominalPopulation ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002061/0.1174, allocations: 145.9 kB / 483.2 MB, free: 12.88 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.231e-05/0.1174, allocations: 15.84 kB / 483.3 MB, free: 12.86 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.791e-05/0.1175, allocations: 12.72 kB / 483.3 MB, free: 12.85 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.517e-06/0.1175, allocations: 4 kB / 483.3 MB, free: 12.84 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.1175, allocations: 3.984 kB / 483.3 MB, free: 12.84 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.905e-06/0.1175, allocations: 0 / 483.3 MB, free: 12.84 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002262/0.1177, allocations: 233.4 kB / 483.5 MB, free: 12.56 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.1177, allocations: 4 kB / 483.5 MB, free: 12.56 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000119/0.1179, allocations: 23.98 kB / 483.5 MB, free: 12.54 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.045e-06/0.1179, allocations: 3.938 kB / 483.5 MB, free: 12.53 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.235e-05/0.1179, allocations: 4 kB / 483.5 MB, free: 12.53 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/0.1179, allocations: 3.938 kB / 483.5 MB, free: 12.52 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.01e-07/0.1179, allocations: 0 / 483.5 MB, free: 12.52 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002548/0.1182, allocations: 239.8 kB / 483.8 MB, free: 12.27 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.072e-05/0.1182, allocations: 100.9 kB / 483.9 MB, free: 12.16 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.095e-05/0.1183, allocations: 4.062 kB / 483.9 MB, free: 12.15 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.505e-05/0.1184, allocations: 4 kB / 483.9 MB, free: 12.15 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.778e-05/0.1184, allocations: 11.94 kB / 483.9 MB, free: 12.14 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.913e-06/0.1184, allocations: 7.984 kB / 483.9 MB, free: 12.13 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.027e-05/0.1185, allocations: 113 kB / 484 MB, free: 12.02 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1185, allocations: 0 / 484 MB, free: 12.02 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000257/0.1187, allocations: 39.94 kB / 484.1 MB, free: 11.98 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (predator.population,prey.population) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 7.449e-05/0.1188, allocations: 111.1 kB / 484.2 MB, free: 11.86 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001883/0.119, allocations: 87.92 kB / 484.3 MB, free: 11.78 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.473e-06/0.119, allocations: 0 / 484.3 MB, free: 11.78 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 5.539e-05/0.1191, allocations: 43.92 kB / 484.3 MB, free: 11.73 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002796/0.1194, allocations: 27.08 kB / 484.3 MB, free: 11.71 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006138/0.12, allocations: 434 kB / 484.7 MB, free: 11.26 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002211/0.1202, allocations: 0.7124 MB / 485.5 MB, free: 10.52 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.469e-05/0.1203, allocations: 13.08 kB / 485.5 MB, free: 10.51 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.419e-05/0.1203, allocations: 15.44 kB / 485.5 MB, free: 10.5 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1203, allocations: 0 / 485.5 MB, free: 10.5 MB / 350.1 MB Notification: Performance of Templates: time 0.003304/0.1236, allocations: 1.203 MB / 486.7 MB, free: 9.305 MB / 350.1 MB make -j1 -f Physiolibrary_Physiolibrary.Population.Examples.PredatorPrey.makefile (rm -f Physiolibrary_Physiolibrary.Population.Examples.PredatorPrey.pipe ; mkfifo Physiolibrary_Physiolibrary.Population.Examples.PredatorPrey.pipe ; head -c 1048576 < Physiolibrary_Physiolibrary.Population.Examples.PredatorPrey.pipe >> ../files/Physiolibrary_Physiolibrary.Population.Examples.PredatorPrey.sim & ./Physiolibrary_Physiolibrary.Population.Examples.PredatorPrey -abortSlowSimulation -alarm=480 -lv LOG_STATS > Physiolibrary_Physiolibrary.Population.Examples.PredatorPrey.pipe 2>&1)