Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.FreeBody.conf.json 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo", uses=false) Using package PlanarMechanics with version 1.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/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 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) Running command: "" <> buildModelFMU(PlanarMechanics.Examples.FreeBody,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_FreeBody",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.FreeBody,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_FreeBody",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001413/0.001413, allocations: 173.6 kB / 12.73 MB, free: 2.586 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.484/1.484, allocations: 221.4 MB / 234.6 MB, free: 14.45 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009851/0.0009852, allocations: 89.3 kB / 285.6 MB, free: 12.99 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.04066/0.04066, allocations: 8.828 MB / 345.3 MB, free: 1.301 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.017e-05/3.027e-05, allocations: 4 kB / 405.7 MB, free: 61.3 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1045/0.1045, allocations: 52.4 MB / 458.1 MB, free: 8.953 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3904/0.4949, allocations: 83.35 MB / 0.5287 GB, free: 2.434 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002122/0.4952, allocations: 74.78 kB / 0.5288 GB, free: 2.402 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1151/0.6103, allocations: 47.5 MB / 0.5752 GB, free: 9.117 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.433e-06/0.6104, allocations: 0 / 0.5752 GB, free: 9.117 MB / 394.7 MB Notification: Performance of Transformations before backend: time 6.878e-05/0.6104, allocations: 40 kB / 0.5752 GB, free: 9.078 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 902 * Number of variables: 902 Notification: Performance of Generate backend data structure: time 0.006501/0.6169, allocations: 2.178 MB / 0.5773 GB, free: 6.844 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.004e-05/0.617, allocations: 8.031 kB / 0.5773 GB, free: 6.836 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001427/0.6185, allocations: 469 kB / 0.5778 GB, free: 6.367 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008826/0.6273, allocations: 1.841 MB / 0.5796 GB, free: 4.52 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004302/0.6317, allocations: 1.415 MB / 0.581 GB, free: 3.066 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002176/0.6319, allocations: 168.3 kB / 0.5811 GB, free: 2.898 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001419/0.6333, allocations: 215.9 kB / 0.5813 GB, free: 2.688 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01391/0.6473, allocations: 6.034 MB / 0.5872 GB, free: 12.4 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.25e-05/0.6474, allocations: 15.92 kB / 0.5872 GB, free: 12.39 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005479/0.648, allocations: 95.92 kB / 0.5873 GB, free: 12.29 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00114/0.6491, allocations: 0.7113 MB / 0.588 GB, free: 11.58 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01254/0.6617, allocations: 5.841 MB / 0.5937 GB, free: 5.723 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02795/0.6897, allocations: 18.17 MB / 0.6115 GB, free: 3.211 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002437/0.6922, allocations: 1.515 MB / 0.613 GB, free: 1.574 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006917/0.6929, allocations: 0.5066 MB / 0.6135 GB, free: 1.062 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003594/0.6965, allocations: 2.143 MB / 0.6156 GB, free: 14.79 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.006e-05/0.6965, allocations: 39 kB / 0.6156 GB, free: 14.75 MB / 442.7 MB Notification: Performance of pre-optimization done (n=80): time 3.316e-06/0.6965, allocations: 0 / 0.6156 GB, free: 14.75 MB / 442.7 MB Notification: Performance of matching and sorting (n=80): time 0.002215/0.6988, allocations: 1.062 MB / 0.6166 GB, free: 13.68 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.582e-05/0.6988, allocations: 63.77 kB / 0.6167 GB, free: 13.6 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002926/0.7018, allocations: 1.788 MB / 0.6184 GB, free: 11.81 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 9.634e-05/0.7019, allocations: 45.69 kB / 0.6185 GB, free: 11.76 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001406/0.7033, allocations: 1.643 MB / 0.6201 GB, free: 10.09 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003537/0.7037, allocations: 319.9 kB / 0.6204 GB, free: 9.773 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001187/0.7038, allocations: 52 kB / 0.6204 GB, free: 9.723 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0003232/0.7041, allocations: 488.5 kB / 0.6209 GB, free: 9.238 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001297/0.7054, allocations: 0.8683 MB / 0.6218 GB, free: 8.367 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00227/0.7077, allocations: 2.511 MB / 0.6242 GB, free: 5.027 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002162/0.7099, allocations: 1.536 MB / 0.6257 GB, free: 3.496 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.319e-05/0.7099, allocations: 16 kB / 0.6257 GB, free: 3.48 MB / 442.7 MB Notification: Performance of matching and sorting (n=360) (initialization): time 0.005474/0.7154, allocations: 3.306 MB / 0.6289 GB, free: 172 kB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.829e-05/0.7155, allocations: 28.19 kB / 0.629 GB, free: 144 kB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.999e-05/0.7156, allocations: 67.94 kB / 0.629 GB, free: 76 kB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001028/0.7157, allocations: 84.05 kB / 0.6291 GB, free: 15.99 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001769/0.7174, allocations: 0.616 MB / 0.6297 GB, free: 15.38 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.687e-05/0.7175, allocations: 115.5 kB / 0.6298 GB, free: 15.26 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00195/0.7195, allocations: 411.7 kB / 0.6302 GB, free: 14.85 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000237/0.7197, allocations: 168 kB / 0.6304 GB, free: 14.69 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 266 * Number of states: 0 () * Number of discrete variables: 3 (body.sphereColor[3],body.sphereColor[2],body.sphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (334): * Single equations (assignments): 330 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003265/0.7201, allocations: 311.4 kB / 0.6307 GB, free: 14.38 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001972/0.7203, allocations: 150 kB / 0.6308 GB, free: 14.23 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001575/0.7219, allocations: 1.01 MB / 0.6318 GB, free: 13.2 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001046/0.722, allocations: 23.92 kB / 0.6318 GB, free: 13.18 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.414e-06/0.722, allocations: 4 kB / 0.6318 GB, free: 13.18 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.995e-06/0.722, allocations: 3.984 kB / 0.6318 GB, free: 13.17 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005873/0.7279, allocations: 3.531 MB / 0.6353 GB, free: 9.566 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.841e-06/0.7279, allocations: 0 / 0.6353 GB, free: 9.566 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005081/0.7284, allocations: 103.8 kB / 0.6354 GB, free: 9.465 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.047e-06/0.7285, allocations: 0 / 0.6354 GB, free: 9.465 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.167e-05/0.7285, allocations: 24.11 kB / 0.6354 GB, free: 9.441 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.356e-06/0.7285, allocations: 7.953 kB / 0.6354 GB, free: 9.434 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.7286, allocations: 0 / 0.6354 GB, free: 9.434 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002052/0.7306, allocations: 1.717 MB / 0.6371 GB, free: 7.66 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005516/0.7312, allocations: 259 kB / 0.6373 GB, free: 7.387 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000167/0.7314, allocations: 15.98 kB / 0.6374 GB, free: 7.371 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005422/0.7319, allocations: 31.97 kB / 0.6374 GB, free: 7.34 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.27e-05/0.732, allocations: 32.38 kB / 0.6374 GB, free: 7.309 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.429e-05/0.7321, allocations: 35.94 kB / 0.6375 GB, free: 7.273 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.00213/0.7342, allocations: 1.278 MB / 0.6387 GB, free: 6 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.5e-07/0.7342, allocations: 0 / 0.6387 GB, free: 6 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002507/0.7367, allocations: 0.6379 MB / 0.6393 GB, free: 5.359 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (body.r[1],body.r[2],body.v[1],body.v[2],body.phi,body.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 50 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002708/0.7395, allocations: 2.612 MB / 0.6419 GB, free: 2.691 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.003325/0.7428, allocations: 1.927 MB / 0.6438 GB, free: 0.7812 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 4.699e-06/0.7428, allocations: 3.938 kB / 0.6438 GB, free: 0.7773 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005679/0.7434, allocations: 451 kB / 0.6442 GB, free: 340 kB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001494/0.7449, allocations: 270.6 kB / 0.6444 GB, free: 76 kB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2484/0.9933, allocations: 4.85 MB / 0.6492 GB, free: 136.1 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002725/0.9961, allocations: 2.211 MB / 0.6513 GB, free: 135.3 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002871/0.999, allocations: 0.8896 MB / 0.6522 GB, free: 135.3 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001448/1, allocations: 0.9298 MB / 0.6531 GB, free: 135.3 MB / 458.7 MB Notification: Performance of SimCode: time 1.393e-06/1, allocations: 0 / 0.6531 GB, free: 135.3 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06721/1.068, allocations: 38.09 MB / 0.6903 GB, free: 125.3 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001611/1.068, allocations: 143 kB / 0.6905 GB, free: 125.1 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.87/3.937, allocations: 4 kB / 0.6905 GB, free: 125.1 MB / 458.7 MB (rm -f PlanarMechanics_PlanarMechanics.Examples.FreeBody.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.FreeBody.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.FreeBody.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.FreeBody.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_Examples_FreeBody_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_FreeBody.fmu > PlanarMechanics_PlanarMechanics.Examples.FreeBody.pipe 2>&1)