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.09479/0.09479, allocations: 15.27 MB / 30.91 MB, free: 4.266 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.001218/0.001218, allocations: 107.9 kB / 35.92 MB, free: 3.145 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.001376/0.001376, allocations: 193.1 kB / 41.03 MB, free: 7.16 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.515/1.515, allocations: 222.9 MB / 268.9 MB, free: 6.852 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1556/0.1556, allocations: 23.36 MB / 346.6 MB, free: 0.6562 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003224/0.003224, allocations: 119.8 kB / 478.3 MB, free: 2.328 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3725/0.3757, allocations: 59.35 MB / 0.5251 GB, free: 7.805 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Physiolibrary.Population.Examples.PredatorPrey): time 0.003257/0.379, allocations: 2.315 MB / 0.5274 GB, free: 6.176 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.000312/0.3793, allocations: 153.1 kB / 0.5275 GB, free: 6.062 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000101/0.3794, allocations: 2.438 kB / 0.5275 GB, free: 6.062 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001359/0.3796, allocations: 28.69 kB / 0.5275 GB, free: 6.043 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 9.588e-05/0.3796, allocations: 50.34 kB / 0.5276 GB, free: 6.008 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001503/0.3798, allocations: 41.05 kB / 0.5276 GB, free: 5.984 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002195/0.38, allocations: 172 kB / 0.5278 GB, free: 5.898 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001517/0.3802, allocations: 49.91 kB / 0.5278 GB, free: 5.875 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.063e-05/0.3802, allocations: 59.27 kB / 0.5279 GB, free: 5.848 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001347/0.3804, allocations: 74.56 kB / 0.528 GB, free: 5.809 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.074e-05/0.3804, allocations: 10.5 kB / 0.528 GB, free: 5.809 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.234e-05/0.3804, allocations: 11.75 kB / 0.528 GB, free: 5.809 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.366e-05/0.3805, allocations: 27.67 kB / 0.528 GB, free: 5.789 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 7.565e-05/0.3805, allocations: 75.7 kB / 0.5281 GB, free: 5.746 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002334/0.3808, allocations: 159.1 kB / 0.5282 GB, free: 5.684 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.661e-06/0.3808, allocations: 4.516 kB / 0.5282 GB, free: 5.68 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.223e-06/0.3808, allocations: 0 / 0.5282 GB, free: 5.68 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.128e-05/0.3808, allocations: 1.281 kB / 0.5282 GB, free: 5.68 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.000474/0.3813, allocations: 441.3 kB / 0.5287 GB, free: 5.258 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.936e-05/0.3813, allocations: 8.844 kB / 0.5287 GB, free: 5.258 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.659e-05/0.3813, allocations: 46.02 kB / 0.5287 GB, free: 5.211 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.23e-05/0.3814, allocations: 16.22 kB / 0.5287 GB, free: 5.203 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002166/0.3816, allocations: 223.1 kB / 0.5289 GB, free: 4.973 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.579e-05/0.3816, allocations: 9.406 kB / 0.5289 GB, free: 4.969 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.005e-05/0.3816, allocations: 13.12 kB / 0.529 GB, free: 4.965 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002351/0.3819, allocations: 117.1 kB / 0.5291 GB, free: 4.898 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.499e-05/0.3819, allocations: 7.875 kB / 0.5291 GB, free: 4.891 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.361e-05/0.3819, allocations: 5.25 kB / 0.5291 GB, free: 4.887 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.753e-06/0.3819, allocations: 3.5 kB / 0.5291 GB, free: 4.887 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001478/0.3821, allocations: 79.98 kB / 0.5292 GB, free: 4.855 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005949/0.3827, allocations: 453.9 kB / 0.5296 GB, free: 4.492 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002012/0.3829, allocations: 107.8 kB / 0.5297 GB, free: 4.434 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.146e-05/0.3829, allocations: 44.55 kB / 0.5297 GB, free: 4.41 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.794e-05/0.3829, allocations: 1.703 kB / 0.5297 GB, free: 4.41 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.362e-05/0.383, allocations: 36.66 kB / 0.5298 GB, free: 4.367 MB / 382.1 MB Notification: Performance of pre-optimization done (n=12): time 1.212e-06/0.383, allocations: 4 kB / 0.5298 GB, free: 4.363 MB / 382.1 MB Notification: Performance of matching and sorting (n=12): time 0.0002816/0.3832, allocations: 138 kB / 0.5299 GB, free: 4.285 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.332e-05/0.3833, allocations: 53.75 kB / 0.53 GB, free: 4.223 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001251/0.3834, allocations: 150.9 kB / 0.5301 GB, free: 4.109 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.608e-06/0.3834, allocations: 29.7 kB / 0.5301 GB, free: 4.074 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.472e-05/0.3835, allocations: 129.3 kB / 0.5303 GB, free: 3.957 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.334e-05/0.3835, allocations: 40.66 kB / 0.5303 GB, free: 3.926 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.695e-05/0.3835, allocations: 29.67 kB / 0.5303 GB, free: 3.902 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.183e-05/0.3836, allocations: 330.4 kB / 0.5306 GB, free: 3.578 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.828e-05/0.3836, allocations: 27.09 kB / 0.5307 GB, free: 3.57 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.513e-05/0.3837, allocations: 35.88 kB / 0.5307 GB, free: 3.559 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003888/0.3841, allocations: 158.3 kB / 0.5309 GB, free: 3.488 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.3841, allocations: 1.094 kB / 0.5309 GB, free: 3.488 MB / 382.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002003/0.3843, allocations: 140.1 kB / 0.531 GB, free: 3.41 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.512e-05/0.3843, allocations: 5.062 kB / 0.531 GB, free: 3.41 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.227e-06/0.3843, allocations: 0 / 0.531 GB, free: 3.41 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.78e-05/0.3843, allocations: 1.281 kB / 0.531 GB, free: 3.41 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001431/0.3845, allocations: 32.94 kB / 0.531 GB, free: 3.402 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.361e-06/0.3845, allocations: 1.094 kB / 0.531 GB, free: 3.402 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.101e-05/0.3845, allocations: 14.48 kB / 0.531 GB, free: 3.391 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.067e-05/0.3846, allocations: 3.562 kB / 0.531 GB, free: 3.391 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.0001584/0.3847, allocations: 134.8 kB / 0.5312 GB, free: 3.266 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.28e-05/0.3847, allocations: 17.19 kB / 0.5312 GB, free: 3.254 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.918e-05/0.3848, allocations: 19.62 kB / 0.5312 GB, free: 3.238 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.865e-06/0.3848, allocations: 1.344 kB / 0.5312 GB, free: 3.238 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.83e-06/0.3848, allocations: 0 / 0.5312 GB, free: 3.238 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.938e-06/0.3848, allocations: 2.203 kB / 0.5312 GB, free: 3.238 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002127/0.385, allocations: 243.2 kB / 0.5314 GB, free: 3.008 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.385, allocations: 0 / 0.5314 GB, free: 3.008 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001218/0.3851, allocations: 26.64 kB / 0.5315 GB, free: 3 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.885e-06/0.3851, allocations: 1.25 kB / 0.5315 GB, free: 3 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.212e-05/0.3851, allocations: 1.188 kB / 0.5315 GB, free: 3 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.3851, allocations: 0 / 0.5315 GB, free: 3 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.3851, allocations: 5.344 kB / 0.5315 GB, free: 2.996 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002688/0.3854, allocations: 241.1 kB / 0.5317 GB, free: 2.82 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.236e-05/0.3855, allocations: 92.41 kB / 0.5318 GB, free: 2.715 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.083e-05/0.3855, allocations: 5.078 kB / 0.5318 GB, free: 2.711 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.922e-05/0.3856, allocations: 8.938 kB / 0.5318 GB, free: 2.703 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.788e-05/0.3856, allocations: 6.562 kB / 0.5318 GB, free: 2.703 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.893e-06/0.3856, allocations: 10.66 kB / 0.5318 GB, free: 2.695 MB / 382.1 MB Notification: Performance of sorting global known variables: time 7.916e-05/0.3857, allocations: 119.7 kB / 0.5319 GB, free: 2.605 MB / 382.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3857, allocations: 4 kB / 0.5319 GB, free: 2.602 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002546/0.3859, allocations: 44.05 kB / 0.532 GB, free: 2.59 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.0004128/0.3864, allocations: 0.7718 MB / 0.5327 GB, free: 1.879 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001982/0.3865, allocations: 86.5 kB / 0.5328 GB, free: 1.848 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.3866, allocations: 64 / 0.5328 GB, free: 1.848 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 5.983e-05/0.3866, allocations: 42.52 kB / 0.5329 GB, free: 1.832 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002931/0.3869, allocations: 18.39 kB / 0.5329 GB, free: 1.824 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001688/0.3886, allocations: 1.764 MB / 0.5346 GB, free: 372 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000297/0.3889, allocations: 0.7123 MB / 0.5353 GB, free: 15.66 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.302e-05/0.3889, allocations: 13.62 kB / 0.5353 GB, free: 15.66 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.208e-05/0.389, allocations: 37.19 kB / 0.5353 GB, free: 15.64 MB / 398.1 MB Notification: Performance of SimCode: time 3.81e-07/0.389, allocations: 0 / 0.5353 GB, free: 15.64 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02616/0.4152, allocations: 2.934 MB / 0.5382 GB, free: 15.1 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.99/8.405, allocations: 8.766 kB / 0.5382 GB, free: 15.09 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)