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.09578/0.09578, allocations: 15.27 MB / 30.91 MB, free: 4.273 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.001271/0.001271, allocations: 101.1 kB / 35.91 MB, free: 3.16 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.001676/0.001676, allocations: 195.6 kB / 41.02 MB, free: 7.18 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.489/1.489, allocations: 222.9 MB / 268.9 MB, free: 6.887 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1424/0.1424, allocations: 23.34 MB / 346.6 MB, free: 0.6953 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003187/0.003187, allocations: 112.2 kB / 478.3 MB, free: 2.371 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2915/0.2947, allocations: 59.36 MB / 0.5251 GB, free: 7.836 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Physiolibrary.Population.Examples.PredatorPrey): time 0.002914/0.2977, allocations: 2.309 MB / 0.5274 GB, free: 6.207 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003994/0.2981, allocations: 156.5 kB / 0.5275 GB, free: 6.09 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.824e-05/0.2982, allocations: 2.344 kB / 0.5275 GB, free: 6.09 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001123/0.2983, allocations: 27.88 kB / 0.5275 GB, free: 6.07 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 8.796e-05/0.2984, allocations: 49.95 kB / 0.5276 GB, free: 6.035 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001226/0.2985, allocations: 32.56 kB / 0.5276 GB, free: 6.02 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001846/0.2987, allocations: 181.5 kB / 0.5278 GB, free: 5.926 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001453/0.2989, allocations: 71.17 kB / 0.5279 GB, free: 5.891 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.827e-05/0.299, allocations: 64.44 kB / 0.5279 GB, free: 5.859 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001077/0.2991, allocations: 65.33 kB / 0.528 GB, free: 5.828 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.315e-05/0.2991, allocations: 10.69 kB / 0.528 GB, free: 5.828 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.955e-05/0.2991, allocations: 11.97 kB / 0.528 GB, free: 5.828 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.735e-05/0.2992, allocations: 28.44 kB / 0.528 GB, free: 5.809 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 7.035e-05/0.2992, allocations: 75 kB / 0.5281 GB, free: 5.766 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002019/0.2994, allocations: 162.7 kB / 0.5282 GB, free: 5.699 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.2995, allocations: 1.125 kB / 0.5283 GB, free: 5.699 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.2995, allocations: 0 / 0.5283 GB, free: 5.699 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.014e-05/0.2995, allocations: 0 / 0.5283 GB, free: 5.699 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.0004155/0.2999, allocations: 449.8 kB / 0.5287 GB, free: 5.27 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.712e-05/0.3, allocations: 9.75 kB / 0.5287 GB, free: 5.27 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.359e-05/0.3, allocations: 45.64 kB / 0.5287 GB, free: 5.223 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.34e-05/0.3, allocations: 16.53 kB / 0.5287 GB, free: 5.215 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001774/0.3002, allocations: 214.8 kB / 0.529 GB, free: 4.992 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.724e-05/0.3002, allocations: 9.938 kB / 0.529 GB, free: 4.988 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.685e-05/0.3003, allocations: 16.22 kB / 0.529 GB, free: 4.98 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002004/0.3005, allocations: 113.1 kB / 0.5291 GB, free: 4.918 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.362e-05/0.3005, allocations: 4.547 kB / 0.5291 GB, free: 4.914 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.262e-05/0.3005, allocations: 9.344 kB / 0.5291 GB, free: 4.906 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.741e-06/0.3005, allocations: 2.438 kB / 0.5291 GB, free: 4.906 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001367/0.3007, allocations: 80.58 kB / 0.5292 GB, free: 4.875 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005067/0.3012, allocations: 451 kB / 0.5296 GB, free: 4.516 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002221/0.3014, allocations: 110.9 kB / 0.5297 GB, free: 4.457 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001319/0.3016, allocations: 47.58 kB / 0.5298 GB, free: 4.434 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.538e-05/0.3016, allocations: 1.984 kB / 0.5298 GB, free: 4.434 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.57e-05/0.3016, allocations: 35.69 kB / 0.5298 GB, free: 4.391 MB / 382.1 MB Notification: Performance of pre-optimization done (n=12): time 1.202e-06/0.3016, allocations: 0 / 0.5298 GB, free: 4.391 MB / 382.1 MB Notification: Performance of matching and sorting (n=12): time 0.0002557/0.3019, allocations: 138.9 kB / 0.5299 GB, free: 4.312 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.733e-05/0.3019, allocations: 56.84 kB / 0.53 GB, free: 4.246 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001014/0.302, allocations: 151.7 kB / 0.5301 GB, free: 4.133 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.235e-06/0.302, allocations: 25.7 kB / 0.5302 GB, free: 4.102 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.334e-05/0.3021, allocations: 129.5 kB / 0.5303 GB, free: 3.984 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.678e-05/0.3021, allocations: 47.3 kB / 0.5303 GB, free: 3.945 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.357e-05/0.3022, allocations: 30.73 kB / 0.5303 GB, free: 3.922 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.914e-05/0.3022, allocations: 325.5 kB / 0.5307 GB, free: 3.602 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.826e-05/0.3023, allocations: 29.03 kB / 0.5307 GB, free: 3.594 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.255e-05/0.3023, allocations: 38.84 kB / 0.5307 GB, free: 3.578 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003736/0.3027, allocations: 159.5 kB / 0.5309 GB, free: 3.508 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.3027, allocations: 0 / 0.5309 GB, free: 3.508 MB / 382.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0001768/0.3029, allocations: 139.1 kB / 0.531 GB, free: 3.43 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.201e-05/0.3029, allocations: 6.828 kB / 0.531 GB, free: 3.43 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.737e-06/0.3029, allocations: 0 / 0.531 GB, free: 3.43 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.224e-05/0.303, allocations: 1.094 kB / 0.531 GB, free: 3.43 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001365/0.3031, allocations: 33.66 kB / 0.531 GB, free: 3.422 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.42e-06/0.3031, allocations: 1.094 kB / 0.531 GB, free: 3.422 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.259e-05/0.3032, allocations: 14.89 kB / 0.5311 GB, free: 3.41 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.246e-06/0.3032, allocations: 7.625 kB / 0.5311 GB, free: 3.406 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.0001207/0.3033, allocations: 132.7 kB / 0.5312 GB, free: 3.281 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.271e-05/0.3034, allocations: 17.58 kB / 0.5312 GB, free: 3.27 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.415e-05/0.3034, allocations: 17.84 kB / 0.5312 GB, free: 3.258 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.284e-06/0.3034, allocations: 1.156 kB / 0.5312 GB, free: 3.258 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.818e-06/0.3034, allocations: 0 / 0.5312 GB, free: 3.258 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.228e-06/0.3034, allocations: 6.578 kB / 0.5312 GB, free: 3.254 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003061/0.3037, allocations: 230.6 kB / 0.5315 GB, free: 3.035 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.253e-06/0.3037, allocations: 3.938 kB / 0.5315 GB, free: 3.031 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001154/0.3039, allocations: 30.52 kB / 0.5315 GB, free: 3.02 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.565e-06/0.3039, allocations: 1.875 kB / 0.5315 GB, free: 3.02 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.388e-06/0.3039, allocations: 1.344 kB / 0.5315 GB, free: 3.02 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.3039, allocations: 0 / 0.5315 GB, free: 3.02 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-06/0.3039, allocations: 2.016 kB / 0.5315 GB, free: 3.02 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002552/0.3042, allocations: 246.4 kB / 0.5317 GB, free: 2.836 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.919e-05/0.3042, allocations: 90.16 kB / 0.5318 GB, free: 2.734 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.194e-05/0.3042, allocations: 5.219 kB / 0.5318 GB, free: 2.73 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.942e-05/0.3043, allocations: 0 / 0.5318 GB, free: 2.73 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.354e-05/0.3043, allocations: 10.38 kB / 0.5318 GB, free: 2.727 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.031e-06/0.3043, allocations: 3.562 kB / 0.5318 GB, free: 2.727 MB / 382.1 MB Notification: Performance of sorting global known variables: time 6.079e-05/0.3044, allocations: 120.2 kB / 0.532 GB, free: 2.637 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3044, allocations: 0 / 0.532 GB, free: 2.637 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002539/0.3047, allocations: 44.05 kB / 0.532 GB, free: 2.625 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.0003442/0.305, allocations: 0.7829 MB / 0.5328 GB, free: 1.906 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001785/0.3052, allocations: 89.83 kB / 0.5328 GB, free: 1.875 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.673e-06/0.3052, allocations: 0 / 0.5328 GB, free: 1.875 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 6.553e-05/0.3053, allocations: 46.05 kB / 0.5329 GB, free: 1.859 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002749/0.3056, allocations: 28.78 kB / 0.5329 GB, free: 1.84 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001513/0.3071, allocations: 1.759 MB / 0.5346 GB, free: 392 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002474/0.3074, allocations: 0.716 MB / 0.5353 GB, free: 15.68 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 4.912e-05/0.3074, allocations: 8.578 kB / 0.5353 GB, free: 15.68 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.596e-05/0.3075, allocations: 41.75 kB / 0.5354 GB, free: 15.65 MB / 398.1 MB Notification: Performance of SimCode: time 3.31e-07/0.3075, allocations: 0 / 0.5354 GB, free: 15.65 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02597/0.3335, allocations: 2.913 MB / 0.5382 GB, free: 15.13 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.885/8.219, allocations: 1.938 kB / 0.5382 GB, free: 15.13 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)