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/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/PlanarMechanics 1.6.0/package.mo", uses=false) Using package PlanarMechanics with version 1.6.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.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) 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001856/0.001856, allocations: 108 kB / 15.61 MB, free: 152 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.002006/0.002006, allocations: 195.5 kB / 16.53 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 3.594/3.594, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.2216/0.2216, allocations: 9.096 MB / 299.5 MB, free: 1.754 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001275/0.001275, allocations: 63.91 kB / 362 MB, free: 12.92 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1031/0.1044, allocations: 51.43 MB / 413.5 MB, free: 9.457 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.FreeBody): time 0.00757/0.112, allocations: 5.85 MB / 419.3 MB, free: 3.57 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004107/0.1161, allocations: 2.025 MB / 421.4 MB, free: 1.535 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001408/0.1176, allocations: 23.94 kB / 421.4 MB, free: 1.512 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001093/0.1187, allocations: 254.5 kB / 421.6 MB, free: 1.262 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002896/0.1217, allocations: 1.113 MB / 422.7 MB, free: 148 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002258/0.1219, allocations: 39.83 kB / 422.8 MB, free: 108 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.2294/0.3513, allocations: 1.878 MB / 424.7 MB, free: 36.54 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005647/0.3519, allocations: 141.4 kB / 424.8 MB, free: 36.5 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001407/0.3533, allocations: 0.644 MB / 425.4 MB, free: 36.43 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002043/0.3554, allocations: 0.9909 MB / 426.4 MB, free: 36.3 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007083/0.3561, allocations: 181.7 kB / 426.6 MB, free: 36.3 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00214/0.3583, allocations: 0.7416 MB / 427.3 MB, free: 36.3 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001275/0.3596, allocations: 0.9456 MB / 428.3 MB, free: 36.2 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002184/0.3618, allocations: 1.189 MB / 429.5 MB, free: 35.77 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003923/0.3658, allocations: 3.861 MB / 433.3 MB, free: 34.98 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/0.3658, allocations: 4.844 kB / 433.3 MB, free: 34.98 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.764e-06/0.3658, allocations: 0 / 433.3 MB, free: 34.98 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001425/0.3659, allocations: 0.5312 kB / 433.3 MB, free: 34.98 MB / 350.1 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.006752/0.3727, allocations: 2.573 MB / 435.9 MB, free: 33.45 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.97e-05/0.3728, allocations: 9.719 kB / 435.9 MB, free: 33.45 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001077/0.3738, allocations: 436 kB / 436.4 MB, free: 33.26 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006461/0.3803, allocations: 1.672 MB / 438 MB, free: 33.03 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002166/0.3825, allocations: 1.081 MB / 439.1 MB, free: 32.41 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.286e-05/0.3826, allocations: 97.02 kB / 439.2 MB, free: 32.39 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00033/0.383, allocations: 135.3 kB / 439.3 MB, free: 32.37 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007959/0.3909, allocations: 6.499 MB / 445.8 MB, free: 29.67 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.669e-05/0.391, allocations: 22.59 kB / 445.9 MB, free: 29.66 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002281/0.3913, allocations: 62.28 kB / 445.9 MB, free: 29.65 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002876/0.3941, allocations: 1.625 MB / 447.5 MB, free: 29.32 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01075/0.4049, allocations: 6.04 MB / 453.6 MB, free: 27.27 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02676/0.4317, allocations: 18.21 MB / 471.8 MB, free: 16.22 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002504/0.4343, allocations: 1.551 MB / 473.3 MB, free: 15.29 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007915/0.4351, allocations: 0.5326 MB / 473.9 MB, free: 15.09 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003627/0.4387, allocations: 2.136 MB / 476 MB, free: 13.78 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.794e-05/0.4388, allocations: 38.39 kB / 476 MB, free: 13.74 MB / 350.1 MB Notification: Performance of pre-optimization done (n=80): time 3.125e-06/0.4388, allocations: 0 / 476 MB, free: 13.74 MB / 350.1 MB Notification: Performance of matching and sorting (n=80): time 0.003195/0.442, allocations: 1.495 MB / 477.5 MB, free: 13.24 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.001e-05/0.442, allocations: 65.41 kB / 477.6 MB, free: 13.17 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0031/0.4451, allocations: 2.011 MB / 479.6 MB, free: 12.39 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.287e-05/0.4452, allocations: 32.48 kB / 479.6 MB, free: 12.36 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009073/0.4461, allocations: 1.65 MB / 481.3 MB, free: 11.08 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002419/0.4464, allocations: 322.8 kB / 481.6 MB, free: 10.86 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007485/0.4471, allocations: 0.5644 MB / 482.2 MB, free: 10.57 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001141/0.4473, allocations: 358.6 kB / 482.5 MB, free: 10.25 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001339/0.4486, allocations: 0.9303 MB / 483.5 MB, free: 9.938 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001779/0.4504, allocations: 2.569 MB / 486 MB, free: 7.348 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00349/0.4539, allocations: 3.727 MB / 489.8 MB, free: 4.152 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-05/0.4539, allocations: 21.03 kB / 489.8 MB, free: 4.152 MB / 350.1 MB Notification: Performance of matching and sorting (n=360) (initialization): time 0.004702/0.4586, allocations: 3.433 MB / 493.2 MB, free: 1.164 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.595e-05/0.4587, allocations: 34.17 kB / 493.2 MB, free: 1.133 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.061e-05/0.4588, allocations: 60 kB / 493.3 MB, free: 1.074 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.298e-05/0.4588, allocations: 76.94 kB / 493.4 MB, free: 1 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001577/0.4604, allocations: 0.6121 MB / 494 MB, free: 396 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.434e-05/0.4605, allocations: 119.5 kB / 494.1 MB, free: 276 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002284/0.4628, allocations: 415 kB / 494.5 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003556/0.4632, allocations: 171.9 kB / 494.7 MB, free: 15.7 MB / 366.1 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 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002497/0.4657, allocations: 1.305 MB / 496 MB, free: 14.38 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002853/0.466, allocations: 150 kB / 496.1 MB, free: 14.23 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001773/0.4677, allocations: 1.069 MB / 497.2 MB, free: 13.15 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.897e-05/0.4678, allocations: 19.98 kB / 497.2 MB, free: 13.13 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.065e-06/0.4679, allocations: 3.938 kB / 497.2 MB, free: 13.12 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.017e-06/0.4679, allocations: 4.594 kB / 497.2 MB, free: 13.12 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00621/0.4741, allocations: 3.581 MB / 0.4891 GB, free: 9.48 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.247e-06/0.4741, allocations: 0 / 0.4891 GB, free: 9.48 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005265/0.4747, allocations: 107.8 kB / 0.4892 GB, free: 9.375 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.157e-05/0.4747, allocations: 4 kB / 0.4892 GB, free: 9.371 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.578e-05/0.4748, allocations: 19.98 kB / 0.4892 GB, free: 9.352 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.715e-06/0.4748, allocations: 4 kB / 0.4892 GB, free: 9.348 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.514e-06/0.4748, allocations: 0 / 0.4892 GB, free: 9.348 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002896/0.4777, allocations: 1.739 MB / 0.4909 GB, free: 7.582 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007017/0.4784, allocations: 248.4 kB / 0.4911 GB, free: 7.32 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001997/0.4786, allocations: 8 kB / 0.4911 GB, free: 7.312 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005405/0.4791, allocations: 38.16 kB / 0.4912 GB, free: 7.277 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000106/0.4793, allocations: 32.39 kB / 0.4912 GB, free: 7.242 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.429e-05/0.4793, allocations: 27.98 kB / 0.4912 GB, free: 7.215 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002104/0.4815, allocations: 1.31 MB / 0.4925 GB, free: 5.91 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.91e-07/0.4815, allocations: 0 / 0.4925 GB, free: 5.91 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002937/0.4844, allocations: 0.6362 MB / 0.4931 GB, free: 5.273 MB / 366.1 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 51 * Array equations: 4 * 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.002913/0.4873, allocations: 2.357 MB / 0.4954 GB, free: 2.883 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004205/0.4916, allocations: 2.438 MB / 0.4978 GB, free: 464 kB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.118e-06/0.4916, allocations: 192 / 0.4978 GB, free: 464 kB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006584/0.4922, allocations: 482.6 kB / 0.4983 GB, free: 15.98 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001704/0.494, allocations: 289 kB / 0.4986 GB, free: 15.72 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.034/0.528, allocations: 20.92 MB / 0.519 GB, free: 8.426 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002906/0.5309, allocations: 2.157 MB / 0.5211 GB, free: 6.238 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.002221/0.5332, allocations: 0.8889 MB / 0.522 GB, free: 5.344 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001385/0.5346, allocations: 0.9327 MB / 0.5229 GB, free: 4.41 MB / 398.1 MB Notification: Performance of SimCode: time 7.32e-07/0.5346, allocations: 0 / 0.5229 GB, free: 4.41 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1307/0.6652, allocations: 32.88 MB / 0.555 GB, free: 3.73 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.821/9.486, allocations: 0 / 0.555 GB, free: 3.73 MB / 430.1 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/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)