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-master/package.mo", uses=false) Using package PlanarMechanics with version 1.6.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/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: 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001486/0.001486, 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.002117/0.002117, allocations: 192.4 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.527/1.527, 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-master/package.mo): time 0.2029/0.2029, allocations: 9.113 MB / 299.5 MB, free: 1.762 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001896/0.001897, allocations: 63.89 kB / 361.9 MB, free: 13.01 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1838/0.1857, allocations: 51.44 MB / 413.4 MB, free: 9.531 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.FreeBody): time 0.01064/0.1964, allocations: 5.834 MB / 419.2 MB, free: 3.664 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006399/0.2029, allocations: 2.025 MB / 421.3 MB, free: 1.629 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001601/0.2045, allocations: 23.94 kB / 421.3 MB, free: 1.605 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001188/0.2057, allocations: 266.4 kB / 421.5 MB, free: 1.344 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004709/0.2105, allocations: 1.105 MB / 422.6 MB, free: 240 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002859/0.2109, allocations: 31.97 kB / 422.7 MB, free: 208 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.3672/0.5781, allocations: 1.88 MB / 424.6 MB, free: 36.49 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005113/0.5787, allocations: 152.7 kB / 424.7 MB, free: 36.45 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001703/0.5804, allocations: 0.6426 MB / 425.3 MB, free: 36.38 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002188/0.5826, allocations: 0.9969 MB / 426.3 MB, free: 36.26 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005153/0.5831, allocations: 176.9 kB / 426.5 MB, free: 36.26 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002006/0.5851, allocations: 0.7356 MB / 427.2 MB, free: 36.26 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001218/0.5864, allocations: 0.9507 MB / 428.2 MB, free: 36.15 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001484/0.5879, allocations: 1.192 MB / 429.4 MB, free: 35.72 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006316/0.5942, allocations: 3.863 MB / 433.3 MB, free: 34.98 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.744e-06/0.5943, allocations: 0 / 433.3 MB, free: 34.98 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.484e-06/0.5943, allocations: 1.031 kB / 433.3 MB, free: 34.98 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001426/0.5944, allocations: 0 / 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.009857/0.6043, allocations: 2.574 MB / 435.8 MB, free: 33.45 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.419e-05/0.6044, allocations: 9.969 kB / 435.8 MB, free: 33.45 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01001/0.6144, allocations: 1.678 MB / 437.5 MB, free: 33.21 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003962/0.6184, allocations: 1.076 MB / 438.6 MB, free: 32.59 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001802/0.6186, allocations: 102.6 kB / 438.7 MB, free: 32.57 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008955/0.6195, allocations: 129.7 kB / 438.8 MB, free: 32.55 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01434/0.6339, allocations: 6.496 MB / 445.3 MB, free: 29.86 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.586e-05/0.634, allocations: 20.09 kB / 445.3 MB, free: 29.86 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003182/0.6344, allocations: 60.16 kB / 445.4 MB, free: 29.84 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003871/0.6382, allocations: 1.632 MB / 447 MB, free: 29.52 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01743/0.6557, allocations: 6.047 MB / 453.1 MB, free: 27.46 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04262/0.6983, allocations: 18.2 MB / 471.3 MB, free: 16.41 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00436/0.7028, allocations: 1.552 MB / 472.8 MB, free: 15.48 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001312/0.7041, allocations: 0.5321 MB / 473.4 MB, free: 15.28 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006498/0.7106, allocations: 2.143 MB / 475.5 MB, free: 13.96 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.14e-05/0.7107, allocations: 37.92 kB / 475.5 MB, free: 13.92 MB / 350.1 MB Notification: Performance of pre-optimization done (n=80): time 5.982e-06/0.7108, allocations: 1.188 kB / 475.5 MB, free: 13.92 MB / 350.1 MB Notification: Performance of matching and sorting (n=80): time 0.005331/0.7161, allocations: 1.491 MB / 477 MB, free: 13.42 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.014e-05/0.7162, allocations: 57.92 kB / 477.1 MB, free: 13.36 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005667/0.7219, allocations: 2.015 MB / 479.1 MB, free: 12.57 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001727/0.7221, allocations: 35.17 kB / 479.1 MB, free: 12.54 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001725/0.7238, allocations: 1.644 MB / 480.8 MB, free: 11.27 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005725/0.7244, allocations: 329.2 kB / 481.1 MB, free: 11.04 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001329/0.7257, allocations: 0.5686 MB / 481.7 MB, free: 10.75 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001948/0.7259, allocations: 362 kB / 482 MB, free: 10.42 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002511/0.7285, allocations: 0.9186 MB / 482.9 MB, free: 10.12 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003093/0.7316, allocations: 2.579 MB / 485.5 MB, free: 7.551 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005797/0.7374, allocations: 3.721 MB / 489.2 MB, free: 4.367 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.585e-05/0.7375, allocations: 20.5 kB / 489.3 MB, free: 4.363 MB / 350.1 MB Notification: Performance of matching and sorting (n=360) (initialization): time 0.008803/0.7463, allocations: 3.422 MB / 492.7 MB, free: 1.598 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.442e-05/0.7464, allocations: 32 kB / 492.7 MB, free: 1.566 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.785e-05/0.7465, allocations: 56 kB / 492.8 MB, free: 1.512 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001149/0.7467, allocations: 80.7 kB / 492.8 MB, free: 1.434 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002708/0.7494, allocations: 0.6162 MB / 493.5 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001062/0.7495, allocations: 119.5 kB / 493.6 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003998/0.7535, allocations: 414 kB / 494 MB, free: 324 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003958/0.7539, allocations: 168 kB / 494.1 MB, free: 156 kB / 350.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.003918/0.7579, allocations: 1.311 MB / 495.5 MB, free: 14.83 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006234/0.7585, allocations: 151.1 kB / 495.6 MB, free: 14.68 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002761/0.7613, allocations: 1.067 MB / 496.7 MB, free: 13.61 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001368/0.7614, allocations: 19.98 kB / 496.7 MB, free: 13.59 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.225e-05/0.7615, allocations: 3.938 kB / 496.7 MB, free: 13.58 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.41e-05/0.7615, allocations: 3.984 kB / 496.7 MB, free: 13.58 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01035/0.7718, allocations: 3.583 MB / 0.4886 GB, free: 9.934 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.277e-06/0.7719, allocations: 0 / 0.4886 GB, free: 9.934 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007525/0.7727, allocations: 103.9 kB / 0.4887 GB, free: 9.832 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.36e-05/0.7727, allocations: 4 kB / 0.4887 GB, free: 9.828 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.251e-05/0.7728, allocations: 22.33 kB / 0.4887 GB, free: 9.809 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.516e-06/0.7728, allocations: 4.125 kB / 0.4887 GB, free: 9.805 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.903e-06/0.7728, allocations: 4.156 kB / 0.4887 GB, free: 9.801 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003847/0.7767, allocations: 1.736 MB / 0.4904 GB, free: 8.039 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009413/0.7776, allocations: 247 kB / 0.4906 GB, free: 7.777 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002772/0.7779, allocations: 18.25 kB / 0.4906 GB, free: 7.762 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007814/0.7787, allocations: 24.22 kB / 0.4907 GB, free: 7.738 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001177/0.7788, allocations: 36.39 kB / 0.4907 GB, free: 7.699 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.648e-05/0.7789, allocations: 31.98 kB / 0.4907 GB, free: 7.668 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.003282/0.7822, allocations: 1.31 MB / 0.492 GB, free: 6.363 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.7823, allocations: 4 kB / 0.492 GB, free: 6.359 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.004424/0.7867, allocations: 0.6245 MB / 0.4926 GB, free: 5.734 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.0005527/0.7873, allocations: 152.2 kB / 0.4928 GB, free: 5.582 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.006799/0.7941, allocations: 2.439 MB / 0.4951 GB, free: 3.156 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.151e-06/0.7941, allocations: 0 / 0.4951 GB, free: 3.156 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001014/0.7951, allocations: 481.1 kB / 0.4956 GB, free: 2.691 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002469/0.7976, allocations: 292.4 kB / 0.4959 GB, free: 2.426 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0136/0.8112, allocations: 4.983 MB / 0.5007 GB, free: 13.42 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003414/0.8147, allocations: 2.16 MB / 0.5029 GB, free: 11.23 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.003642/0.8184, allocations: 0.885 MB / 0.5037 GB, free: 10.34 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004631/0.8189, allocations: 127.4 kB / 0.5038 GB, free: 10.22 MB / 382.1 MB Notification: Performance of SimCode: time 1.032e-06/0.8189, allocations: 0 / 0.5038 GB, free: 10.22 MB / 382.1 MB Notification: Performance of Templates: time 0.05314/0.872, allocations: 17.1 MB / 0.5205 GB, free: 9.277 MB / 398.1 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)