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/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: "" <> buildModelFMU(Physiolibrary.Population.Examples.PredatorPrey,fileNamePrefix="Physiolibrary_Physiolibrary_Population_Examples_PredatorPrey",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Physiolibrary.Population.Examples.PredatorPrey,fileNamePrefix="Physiolibrary_Physiolibrary_Population_Examples_PredatorPrey",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo): time 0.0931/0.0931, allocations: 15.27 MB / 30.91 MB, free: 4.133 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.001017/0.001017, allocations: 106.5 kB / 35.91 MB, free: 3.191 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.001296/0.001296, allocations: 193.1 kB / 41.02 MB, free: 7.133 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.422/1.422, allocations: 222.9 MB / 268.9 MB, free: 6.836 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.145/0.145, allocations: 23.35 MB / 346.6 MB, free: 0.6172 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002087/0.002087, allocations: 108 kB / 478.3 MB, free: 2.289 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3631/0.3652, allocations: 59.35 MB / 0.5251 GB, free: 7.766 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Physiolibrary.Population.Examples.PredatorPrey): time 0.003205/0.3684, allocations: 2.318 MB / 0.5274 GB, free: 6.129 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.000302/0.3687, allocations: 145 kB / 0.5275 GB, free: 6.023 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.252e-05/0.3688, allocations: 6.312 kB / 0.5275 GB, free: 6.02 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001361/0.369, allocations: 24.28 kB / 0.5275 GB, free: 6.004 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 9.034e-05/0.3691, allocations: 53.67 kB / 0.5276 GB, free: 5.965 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001359/0.3692, allocations: 37.25 kB / 0.5276 GB, free: 5.945 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001861/0.3694, allocations: 173.1 kB / 0.5278 GB, free: 5.859 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001688/0.3696, allocations: 73.34 kB / 0.5278 GB, free: 5.824 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.296e-05/0.3697, allocations: 59.28 kB / 0.5279 GB, free: 5.797 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001165/0.3698, allocations: 70.52 kB / 0.528 GB, free: 5.762 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.6e-05/0.3698, allocations: 10.84 kB / 0.528 GB, free: 5.762 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.845e-05/0.3699, allocations: 11.78 kB / 0.528 GB, free: 5.762 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.965e-05/0.3699, allocations: 27.66 kB / 0.528 GB, free: 5.742 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 7.815e-05/0.37, allocations: 79.64 kB / 0.5281 GB, free: 5.695 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000216/0.3702, allocations: 159.3 kB / 0.5282 GB, free: 5.629 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.548e-06/0.3702, allocations: 0 / 0.5282 GB, free: 5.629 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.484e-06/0.3702, allocations: 1.922 kB / 0.5282 GB, free: 5.629 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.35e-06/0.3702, allocations: 0 / 0.5282 GB, free: 5.629 MB / 382.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.0004348/0.3707, allocations: 441.9 kB / 0.5287 GB, free: 5.207 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.8e-05/0.3707, allocations: 9.594 kB / 0.5287 GB, free: 5.207 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.448e-05/0.3707, allocations: 45.98 kB / 0.5287 GB, free: 5.16 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.33e-05/0.3708, allocations: 16.88 kB / 0.5287 GB, free: 5.152 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002057/0.371, allocations: 216 kB / 0.5289 GB, free: 4.93 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.55e-05/0.371, allocations: 8.438 kB / 0.5289 GB, free: 4.926 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.587e-05/0.371, allocations: 13.84 kB / 0.529 GB, free: 4.922 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001965/0.3713, allocations: 113.7 kB / 0.5291 GB, free: 4.855 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.331e-05/0.3713, allocations: 9.094 kB / 0.5291 GB, free: 4.848 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.388e-05/0.3713, allocations: 4.938 kB / 0.5291 GB, free: 4.844 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.464e-06/0.3713, allocations: 4.516 kB / 0.5291 GB, free: 4.844 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001331/0.3714, allocations: 80.5 kB / 0.5292 GB, free: 4.812 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005587/0.372, allocations: 440.9 kB / 0.5296 GB, free: 4.461 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001973/0.3722, allocations: 123.4 kB / 0.5297 GB, free: 4.391 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.427e-05/0.3723, allocations: 51.28 kB / 0.5297 GB, free: 4.363 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.624e-05/0.3723, allocations: 1.734 kB / 0.5298 GB, free: 4.363 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.299e-05/0.3723, allocations: 36.91 kB / 0.5298 GB, free: 4.32 MB / 382.1 MB Notification: Performance of pre-optimization done (n=12): time 1.202e-06/0.3724, allocations: 0 / 0.5298 GB, free: 4.32 MB / 382.1 MB Notification: Performance of matching and sorting (n=12): time 0.0002612/0.3726, allocations: 130.3 kB / 0.5299 GB, free: 4.25 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.046e-05/0.3726, allocations: 57.17 kB / 0.53 GB, free: 4.184 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001111/0.3728, allocations: 154.4 kB / 0.5301 GB, free: 4.066 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.023e-05/0.3728, allocations: 26.77 kB / 0.5301 GB, free: 4.035 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.177e-05/0.3728, allocations: 120.2 kB / 0.5303 GB, free: 3.926 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.071e-05/0.3729, allocations: 48.86 kB / 0.5303 GB, free: 3.887 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.645e-05/0.3729, allocations: 29.91 kB / 0.5303 GB, free: 3.863 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.899e-05/0.373, allocations: 321.7 kB / 0.5306 GB, free: 3.547 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.781e-05/0.373, allocations: 35.08 kB / 0.5307 GB, free: 3.531 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.197e-05/0.3731, allocations: 39.73 kB / 0.5307 GB, free: 3.516 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003586/0.3735, allocations: 151.6 kB / 0.5309 GB, free: 3.453 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.3735, allocations: 0 / 0.5309 GB, free: 3.453 MB / 382.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0001728/0.3737, allocations: 142.6 kB / 0.531 GB, free: 3.371 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.555e-05/0.3737, allocations: 8.469 kB / 0.531 GB, free: 3.371 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.298e-06/0.3737, allocations: 1.25 kB / 0.531 GB, free: 3.371 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.484e-05/0.3737, allocations: 0 / 0.531 GB, free: 3.371 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001357/0.3738, allocations: 34.53 kB / 0.531 GB, free: 3.363 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.801e-06/0.3739, allocations: 1.188 kB / 0.531 GB, free: 3.363 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.493e-05/0.3739, allocations: 10.28 kB / 0.531 GB, free: 3.355 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.528e-06/0.3739, allocations: 6.781 kB / 0.531 GB, free: 3.352 MB / 382.1 MB Warning: Assuming fixed start value for the following 2 variables: predator.population:VARIABLE(flow=false min = 0.0 start = predator.population_start unit = "1" fixed = true nominal = predator.NominalPopulation ) type: Real prey.population:VARIABLE(flow=false min = 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.0001514/0.3741, allocations: 133.5 kB / 0.5312 GB, free: 3.223 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.355e-05/0.3741, allocations: 16.38 kB / 0.5312 GB, free: 3.215 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.521e-05/0.3742, allocations: 14.84 kB / 0.5312 GB, free: 3.203 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.254e-06/0.3742, allocations: 6 kB / 0.5312 GB, free: 3.199 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.3742, allocations: 0 / 0.5312 GB, free: 3.199 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.429e-06/0.3742, allocations: 4.25 kB / 0.5312 GB, free: 3.199 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000196/0.3744, allocations: 236.1 kB / 0.5314 GB, free: 2.973 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.3744, allocations: 1.062 kB / 0.5314 GB, free: 2.973 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000113/0.3745, allocations: 22.77 kB / 0.5315 GB, free: 2.969 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.745e-06/0.3745, allocations: 5.781 kB / 0.5315 GB, free: 2.965 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.658e-06/0.3745, allocations: 4 kB / 0.5315 GB, free: 2.961 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.913e-06/0.3745, allocations: 1.844 kB / 0.5315 GB, free: 2.961 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.3745, allocations: 0 / 0.5315 GB, free: 2.961 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002366/0.3748, allocations: 238 kB / 0.5317 GB, free: 2.785 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.29e-05/0.3748, allocations: 102.9 kB / 0.5318 GB, free: 2.672 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.207e-05/0.3749, allocations: 5.188 kB / 0.5318 GB, free: 2.668 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.432e-05/0.3749, allocations: 1.375 kB / 0.5318 GB, free: 2.668 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.126e-05/0.375, allocations: 4.719 kB / 0.5318 GB, free: 2.668 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.44e-06/0.375, allocations: 2.781 kB / 0.5318 GB, free: 2.668 MB / 382.1 MB Notification: Performance of sorting global known variables: time 6.118e-05/0.375, allocations: 121.4 kB / 0.5319 GB, free: 2.578 MB / 382.1 MB Notification: Performance of sort global known variables: time 7.82e-07/0.375, allocations: 0 / 0.5319 GB, free: 2.578 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002504/0.3753, allocations: 40.09 kB / 0.532 GB, free: 2.57 MB / 382.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 0.000388/0.3757, allocations: 0.7835 MB / 0.5327 GB, free: 1.848 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001843/0.3759, allocations: 87.06 kB / 0.5328 GB, free: 1.82 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.784e-06/0.3759, allocations: 0 / 0.5328 GB, free: 1.82 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 5.705e-05/0.376, allocations: 39.11 kB / 0.5328 GB, free: 1.809 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002978/0.3763, allocations: 24.39 kB / 0.5329 GB, free: 1.797 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001566/0.3778, allocations: 1.771 MB / 0.5346 GB, free: 340 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002664/0.3781, allocations: 0.7162 MB / 0.5353 GB, free: 15.63 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.514e-05/0.3782, allocations: 8.375 kB / 0.5353 GB, free: 15.63 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.454e-05/0.3783, allocations: 37.7 kB / 0.5353 GB, free: 15.61 MB / 398.1 MB Notification: Performance of SimCode: time 2.61e-07/0.3783, allocations: 4 kB / 0.5353 GB, free: 15.6 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02189/0.4002, allocations: 2.982 MB / 0.5383 GB, free: 15.06 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.56/7.96, allocations: 1.938 kB / 0.5383 GB, free: 15.06 MB / 398.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Physiolibrary_Physiolibrary_Population_Examples_PredatorPrey_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 Physiolibrary_Physiolibrary_Population_Examples_PredatorPrey.fmu > Physiolibrary_Physiolibrary.Population.Examples.PredatorPrey.pipe 2>&1)