Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaByExample_ModelicaByExample.Components.LotkaVolterra.Examples.ClassicLotkaVolterra.conf.json 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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo", uses=false) Using package ModelicaByExample with version 0.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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) Running command: "" <> buildModelFMU(ModelicaByExample.Components.LotkaVolterra.Examples.ClassicLotkaVolterra,fileNamePrefix="ModelicaByExample_ModelicaByExample_Components_LotkaVolterra_Examples_ClassicLotkaVolterra",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaByExample.Components.LotkaVolterra.Examples.ClassicLotkaVolterra,fileNamePrefix="ModelicaByExample_ModelicaByExample_Components_LotkaVolterra_Examples_ClassicLotkaVolterra",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001673/0.001673, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001402/0.001403, allocations: 194.4 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.387/1.387, allocations: 205.1 MB / 222.4 MB, free: 4.602 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.04094/0.04094, allocations: 8.118 MB / 277.9 MB, free: 13.18 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ModelicaByExample requested package Modelica of version 3.2.2. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001413/0.001413, allocations: 63.91 kB / 337.3 MB, free: 26.44 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08508/0.08651, allocations: 48.3 MB / 385.6 MB, free: 10.09 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.LotkaVolterra.Examples.ClassicLotkaVolterra): time 0.002052/0.0886, allocations: 0.5572 MB / 386.2 MB, free: 9.531 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003583/0.08898, allocations: 119.5 kB / 386.3 MB, free: 9.414 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.466e-05/0.08907, allocations: 3.938 kB / 386.3 MB, free: 9.41 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 4.612e-05/0.08914, allocations: 11.88 kB / 386.3 MB, free: 9.398 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 7.791e-05/0.08923, allocations: 3.938 kB / 386.3 MB, free: 9.395 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001619/0.08939, allocations: 35.89 kB / 386.3 MB, free: 9.359 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001446/0.08955, allocations: 67.84 kB / 386.4 MB, free: 9.293 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001516/0.0897, allocations: 39.97 kB / 386.4 MB, free: 9.254 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.418e-05/0.08976, allocations: 31.86 kB / 386.5 MB, free: 9.223 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.046e-05/0.08983, allocations: 39.84 kB / 386.5 MB, free: 9.184 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.124e-05/0.08986, allocations: 8 kB / 386.5 MB, free: 9.176 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.661e-05/0.08988, allocations: 8 kB / 386.5 MB, free: 9.168 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.933e-05/0.08992, allocations: 23.91 kB / 386.5 MB, free: 9.145 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.831e-05/0.08997, allocations: 39.8 kB / 386.6 MB, free: 9.105 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001222/0.0901, allocations: 91.66 kB / 386.7 MB, free: 9.016 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.898e-06/0.09011, allocations: 0 / 386.7 MB, free: 9.016 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.09012, allocations: 0 / 386.7 MB, free: 9.016 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.983e-06/0.09013, allocations: 0 / 386.7 MB, free: 9.016 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.0005234/0.09066, allocations: 391.7 kB / 387.1 MB, free: 8.582 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.863e-05/0.09071, allocations: 12.03 kB / 387.1 MB, free: 8.57 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.794e-05/0.09076, allocations: 42.73 kB / 387.1 MB, free: 8.52 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.482e-05/0.09081, allocations: 20.75 kB / 387.1 MB, free: 8.5 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000222/0.09104, allocations: 184.3 kB / 387.3 MB, free: 8.281 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.439e-05/0.09106, allocations: 8.562 kB / 387.3 MB, free: 8.273 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.482e-05/0.0911, allocations: 8.375 kB / 387.3 MB, free: 8.266 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002228/0.09133, allocations: 97.73 kB / 387.4 MB, free: 8.164 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.4e-05/0.09136, allocations: 0 / 387.4 MB, free: 8.164 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.516e-05/0.09138, allocations: 8 kB / 387.4 MB, free: 8.156 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.901e-06/0.09139, allocations: 0 / 387.4 MB, free: 8.156 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001073/0.0915, allocations: 51.97 kB / 387.5 MB, free: 8.105 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006728/0.09218, allocations: 400.6 kB / 387.9 MB, free: 7.664 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001833/0.09238, allocations: 94.48 kB / 388 MB, free: 7.562 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.99e-05/0.09246, allocations: 44.84 kB / 388 MB, free: 7.516 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.072e-05/0.09248, allocations: 3.938 kB / 388 MB, free: 7.512 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.633e-05/0.09252, allocations: 30.56 kB / 388 MB, free: 7.473 MB / 286.1 MB Notification: Performance of pre-optimization done (n=8): time 1.042e-06/0.09252, allocations: 0 / 388 MB, free: 7.473 MB / 286.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002708/0.0928, allocations: 101.6 kB / 388.1 MB, free: 7.367 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.19e-05/0.09285, allocations: 55.41 kB / 388.2 MB, free: 7.301 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.669e-05/0.09295, allocations: 114.1 kB / 388.3 MB, free: 7.18 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.106e-05/0.09298, allocations: 25.7 kB / 388.3 MB, free: 7.148 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.799e-05/0.09305, allocations: 107.9 kB / 388.4 MB, free: 7.039 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.213e-05/0.0931, allocations: 27.56 kB / 388.5 MB, free: 7.012 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.798e-05/0.09316, allocations: 29.64 kB / 388.5 MB, free: 6.977 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001489/0.09332, allocations: 314.8 kB / 388.8 MB, free: 6.66 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.108e-05/0.09338, allocations: 27.92 kB / 388.8 MB, free: 6.633 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.364e-05/0.09342, allocations: 16 kB / 388.8 MB, free: 6.617 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001008/0.09353, allocations: 60.84 kB / 388.9 MB, free: 6.555 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.09354, allocations: 0 / 388.9 MB, free: 6.555 MB / 286.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001606/0.0937, allocations: 89.62 kB / 389 MB, free: 6.461 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.048e-05/0.09373, allocations: 6.5 kB / 389 MB, free: 6.457 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.703e-06/0.09374, allocations: 0 / 389 MB, free: 6.457 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.326e-05/0.09377, allocations: 0 / 389 MB, free: 6.457 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001286/0.0939, allocations: 19.98 kB / 389 MB, free: 6.438 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.647e-06/0.09392, allocations: 4.25 kB / 389 MB, free: 6.434 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.385e-05/0.09396, allocations: 7.844 kB / 389 MB, free: 6.426 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.029e-05/0.09398, allocations: 7.938 kB / 389 MB, free: 6.418 MB / 286.1 MB 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 (10): * Single equations (assignments): 10 * 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.0001159/0.0941, allocations: 125.8 kB / 389.2 MB, free: 6.285 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.52e-05/0.09414, allocations: 4 kB / 389.2 MB, free: 6.281 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.834e-05/0.09419, allocations: 8.375 kB / 389.2 MB, free: 6.27 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.703e-06/0.09419, allocations: 0 / 389.2 MB, free: 6.27 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.884e-06/0.09421, allocations: 3.938 kB / 389.2 MB, free: 6.266 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.981e-06/0.09422, allocations: 0 / 389.2 MB, free: 6.266 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000299/0.09453, allocations: 213.7 kB / 389.4 MB, free: 6.008 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.136e-06/0.09454, allocations: 0 / 389.4 MB, free: 6.008 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001136/0.09466, allocations: 19.98 kB / 389.4 MB, free: 5.988 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.377e-06/0.09468, allocations: 4.281 kB / 389.4 MB, free: 5.984 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.332e-05/0.0947, allocations: 4 kB / 389.4 MB, free: 5.98 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.144e-06/0.09471, allocations: 0 / 389.4 MB, free: 5.98 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.407e-06/0.09473, allocations: 11.86 kB / 389.4 MB, free: 5.969 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003342/0.09507, allocations: 215.3 kB / 389.6 MB, free: 5.742 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.794e-05/0.09515, allocations: 77.11 kB / 389.7 MB, free: 5.648 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.88e-05/0.09517, allocations: 0 / 389.7 MB, free: 5.648 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.242e-05/0.09525, allocations: 4 kB / 389.7 MB, free: 5.645 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.951e-05/0.09529, allocations: 11.98 kB / 389.7 MB, free: 5.633 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.168e-05/0.09531, allocations: 8 kB / 389.7 MB, free: 5.625 MB / 286.1 MB Notification: Performance of sorting global known variables: time 6.907e-05/0.09538, allocations: 79.28 kB / 389.8 MB, free: 5.547 MB / 286.1 MB Notification: Performance of sort global known variables: time 1e-07/0.09539, allocations: 0 / 389.8 MB, free: 5.547 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002418/0.09563, allocations: 23.84 kB / 389.8 MB, free: 5.523 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (rabbits.population,foxes.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 (8): * Single equations (assignments): 8 * 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.0007009/0.09634, allocations: 0.7515 MB / 390.6 MB, free: 4.742 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.000192/0.09654, allocations: 59.92 kB / 390.6 MB, free: 4.684 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 4.899e-06/0.09656, allocations: 0 / 390.6 MB, free: 4.684 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 4.993e-05/0.09661, allocations: 28 kB / 390.7 MB, free: 4.656 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004551/0.09708, allocations: 19.86 kB / 390.7 MB, free: 4.637 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001862/0.09895, allocations: 1.422 MB / 392.1 MB, free: 3.133 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003737/0.09934, allocations: 0.7004 MB / 392.8 MB, free: 2.406 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 4.83e-05/0.0994, allocations: 7.781 kB / 392.8 MB, free: 2.398 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.683e-05/0.09946, allocations: 26.94 kB / 392.8 MB, free: 2.379 MB / 286.1 MB Notification: Performance of SimCode: time 2.3e-07/0.09947, allocations: 3.938 kB / 392.8 MB, free: 2.375 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02488/0.1244, allocations: 1.824 MB / 394.7 MB, free: 0.6211 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.417/7.542, allocations: 20.11 kB / 394.7 MB, free: 0.6016 MB / 286.1 MB (rm -f ModelicaByExample_ModelicaByExample.Components.LotkaVolterra.Examples.ClassicLotkaVolterra.pipe ; mkfifo ModelicaByExample_ModelicaByExample.Components.LotkaVolterra.Examples.ClassicLotkaVolterra.pipe ; head -c 1048576 < ModelicaByExample_ModelicaByExample.Components.LotkaVolterra.Examples.ClassicLotkaVolterra.pipe >> ../files/ModelicaByExample_ModelicaByExample.Components.LotkaVolterra.Examples.ClassicLotkaVolterra.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ModelicaByExample_ModelicaByExample_Components_LotkaVolterra_Examples_ClassicLotkaVolterra_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 ModelicaByExample_ModelicaByExample_Components_LotkaVolterra_Examples_ClassicLotkaVolterra.fmu > ModelicaByExample_ModelicaByExample.Components.LotkaVolterra.Examples.ClassicLotkaVolterra.pipe 2>&1)