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: translateModel(PlanarMechanics.Examples.FreeBody,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.FreeBody") translateModel(PlanarMechanics.Examples.FreeBody,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.FreeBody") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001089/0.001089, allocations: 183.2 kB / 15.98 MB, free: 5.77 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.224/1.224, allocations: 222.9 MB / 239.7 MB, free: 10.99 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.001056/0.001056, allocations: 115.2 kB / 289.9 MB, free: 10.92 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.06192/0.06192, allocations: 8.946 MB / 349 MB, free: 24 kB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000922/0.0009221, allocations: 50.95 kB / 411.1 MB, free: 57.07 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07992/0.08086, allocations: 51.4 MB / 462.5 MB, free: 5.723 MB / 298.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.FreeBody): time 0.00747/0.08838, allocations: 9.593 MB / 472.1 MB, free: 12.08 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.004665/0.09308, allocations: 2.741 MB / 474.8 MB, free: 9.328 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001009/0.09411, allocations: 31.94 kB / 474.9 MB, free: 9.297 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005709/0.09474, allocations: 231 kB / 475.1 MB, free: 9.07 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001874/0.09663, allocations: 1.039 MB / 476.1 MB, free: 8.031 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001053/0.09675, allocations: 31.95 kB / 476.2 MB, free: 8 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.00218/0.09894, allocations: 2.709 MB / 478.9 MB, free: 5.289 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002096/0.09916, allocations: 154.7 kB / 479 MB, free: 5.121 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004918/0.09966, allocations: 0.5288 MB / 479.6 MB, free: 4.59 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001018/0.1007, allocations: 0.9964 MB / 480.6 MB, free: 3.59 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001757/0.1009, allocations: 100 kB / 480.6 MB, free: 3.492 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001011/0.1019, allocations: 0.6903 MB / 481.3 MB, free: 2.801 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006336/0.1025, allocations: 0.8763 MB / 482.2 MB, free: 1.922 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008008/0.1033, allocations: 1.118 MB / 483.3 MB, free: 0.7969 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.1841/0.2874, allocations: 3.748 MB / 487.1 MB, free: 14.21 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.58e-06/0.2874, allocations: 0 / 487.1 MB, free: 14.21 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.194e-06/0.2875, allocations: 0 / 487.1 MB, free: 14.21 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.462e-05/0.2875, allocations: 1.156 kB / 487.1 MB, free: 14.21 MB / 314.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.005411/0.293, allocations: 2.567 MB / 489.6 MB, free: 13.07 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.205e-05/0.293, allocations: 8.812 kB / 489.7 MB, free: 13.07 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006506/0.2995, allocations: 1.672 MB / 491.3 MB, free: 12.92 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00236/0.3019, allocations: 1.086 MB / 492.4 MB, free: 12.56 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.207e-05/0.302, allocations: 100.8 kB / 492.5 MB, free: 12.55 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000291/0.3023, allocations: 132.3 kB / 492.6 MB, free: 12.55 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01162/0.3139, allocations: 6.496 MB / 499.1 MB, free: 10.42 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.89e-05/0.314, allocations: 21.69 kB / 499.2 MB, free: 10.41 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000221/0.3142, allocations: 61.69 kB / 499.2 MB, free: 10.39 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002652/0.3169, allocations: 1.623 MB / 0.4891 GB, free: 10.07 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009423/0.3263, allocations: 6.044 MB / 0.495 GB, free: 7.914 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02027/0.3466, allocations: 18.22 MB / 0.5128 GB, free: 7.617 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002234/0.3489, allocations: 1.553 MB / 0.5143 GB, free: 5.945 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000729/0.3496, allocations: 0.5304 MB / 0.5148 GB, free: 5.414 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003416/0.3531, allocations: 2.14 MB / 0.5169 GB, free: 3.164 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.348e-05/0.3531, allocations: 39 kB / 0.517 GB, free: 3.117 MB / 330.7 MB Notification: Performance of pre-optimization done (n=80): time 2.846e-06/0.3531, allocations: 4 kB / 0.517 GB, free: 3.113 MB / 330.7 MB Notification: Performance of matching and sorting (n=80): time 0.002749/0.3559, allocations: 1.494 MB / 0.5184 GB, free: 1.613 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.406e-05/0.3559, allocations: 55.84 kB / 0.5185 GB, free: 1.547 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002525/0.3584, allocations: 2.015 MB / 0.5204 GB, free: 15.52 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.424e-05/0.3585, allocations: 33.7 kB / 0.5205 GB, free: 15.48 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009127/0.3594, allocations: 1.644 MB / 0.5221 GB, free: 13.84 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002371/0.3597, allocations: 330.8 kB / 0.5224 GB, free: 13.52 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000705/0.3604, allocations: 0.5635 MB / 0.5229 GB, free: 12.95 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001332/0.3605, allocations: 357.9 kB / 0.5233 GB, free: 12.59 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001333/0.3619, allocations: 0.9227 MB / 0.5242 GB, free: 11.67 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002245/0.3641, allocations: 2.575 MB / 0.5267 GB, free: 8.293 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003615/0.3677, allocations: 3.737 MB / 0.5304 GB, free: 3.984 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.388e-05/0.3678, allocations: 16 kB / 0.5304 GB, free: 3.969 MB / 346.7 MB Notification: Performance of matching and sorting (n=360) (initialization): time 0.005027/0.3728, allocations: 3.419 MB / 0.5337 GB, free: 0.75 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.786e-05/0.3729, allocations: 32 kB / 0.5337 GB, free: 0.7188 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.061e-05/0.3729, allocations: 56.91 kB / 0.5338 GB, free: 0.6641 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.189e-05/0.373, allocations: 80 kB / 0.5339 GB, free: 0.5859 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001591/0.3746, allocations: 0.6201 MB / 0.5345 GB, free: 15.96 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.434e-05/0.3747, allocations: 119.5 kB / 0.5346 GB, free: 15.85 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001795/0.3765, allocations: 414.3 kB / 0.535 GB, free: 15.44 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002008/0.3767, allocations: 168 kB / 0.5351 GB, free: 15.28 MB / 362.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 () * 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.001919/0.3786, allocations: 1.307 MB / 0.5364 GB, free: 13.96 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002161/0.3789, allocations: 154 kB / 0.5366 GB, free: 13.81 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001697/0.3806, allocations: 1.06 MB / 0.5376 GB, free: 12.74 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.114e-05/0.3807, allocations: 22.19 kB / 0.5376 GB, free: 12.72 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.999e-06/0.3807, allocations: 7.922 kB / 0.5376 GB, free: 12.71 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.683e-06/0.3807, allocations: 4 kB / 0.5376 GB, free: 12.71 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005933/0.3866, allocations: 3.58 MB / 0.5411 GB, free: 9.066 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.308e-06/0.3867, allocations: 0 / 0.5411 GB, free: 9.066 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004667/0.3871, allocations: 111.8 kB / 0.5412 GB, free: 8.957 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.214e-05/0.3872, allocations: 4.125 kB / 0.5412 GB, free: 8.953 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.752e-05/0.3872, allocations: 18.62 kB / 0.5413 GB, free: 8.938 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.222e-06/0.3872, allocations: 4 kB / 0.5413 GB, free: 8.934 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.951e-06/0.3872, allocations: 7.984 kB / 0.5413 GB, free: 8.926 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00538/0.3926, allocations: 4.486 MB / 0.5457 GB, free: 4.285 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003063/0.3929, allocations: 243 kB / 0.5459 GB, free: 4.027 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001465/0.3931, allocations: 22.34 kB / 0.5459 GB, free: 4.008 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005085/0.3936, allocations: 36.81 kB / 0.5459 GB, free: 3.973 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.728e-05/0.3937, allocations: 36.39 kB / 0.546 GB, free: 3.938 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.827e-05/0.3938, allocations: 27.36 kB / 0.546 GB, free: 3.914 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.00172/0.3955, allocations: 1.313 MB / 0.5473 GB, free: 2.605 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3955, allocations: 0 / 0.5473 GB, free: 2.605 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002542/0.398, allocations: 0.7357 MB / 0.548 GB, free: 1.867 MB / 362.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 () * 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.0002752/0.3983, allocations: 146.3 kB / 0.5481 GB, free: 1.719 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.00303/0.4014, allocations: 2.005 MB / 0.5501 GB, free: 15.73 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.4014, allocations: 4.062 kB / 0.5501 GB, free: 15.72 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006036/0.402, allocations: 474.8 kB / 0.5506 GB, free: 15.26 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00129/0.4033, allocations: 275.4 kB / 0.5508 GB, free: 15 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009238/0.4125, allocations: 6.709 MB / 0.5574 GB, free: 8.246 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002215/0.4148, allocations: 2.193 MB / 0.5595 GB, free: 6.02 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.002262/0.4171, allocations: 0.893 MB / 0.5604 GB, free: 5.121 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000308/0.4174, allocations: 123.4 kB / 0.5605 GB, free: 5 MB / 378.7 MB Notification: Performance of SimCode: time 6.41e-07/0.4174, allocations: 0 / 0.5605 GB, free: 5 MB / 378.7 MB Notification: Performance of Templates: time 0.03097/0.4484, allocations: 17.13 MB / 0.5772 GB, free: 3.992 MB / 394.7 MB make -j1 -f PlanarMechanics_PlanarMechanics.Examples.FreeBody.makefile (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 & ./PlanarMechanics_PlanarMechanics.Examples.FreeBody -abortSlowSimulation -alarm=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.FreeBody.pipe 2>&1)