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: 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.00119/0.00119, allocations: 102.5 kB / 16.35 MB, free: 5.875 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00123/0.00123, allocations: 191.8 kB / 17.29 MB, free: 5.516 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.347/1.347, allocations: 222.9 MB / 241 MB, free: 14.99 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.06495/0.06495, allocations: 9.119 MB / 300.3 MB, free: 5.805 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00121/0.00121, allocations: 59.91 kB / 363.4 MB, free: 6.656 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1956/0.1968, allocations: 51.42 MB / 414.8 MB, free: 24.84 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.FreeBody): time 0.005167/0.202, allocations: 5.84 MB / 420.6 MB, free: 18.99 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002747/0.2048, allocations: 2.034 MB / 422.7 MB, free: 16.95 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003737/0.2052, allocations: 20 kB / 422.7 MB, free: 16.93 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005215/0.2057, allocations: 266.4 kB / 423 MB, free: 16.66 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001659/0.2074, allocations: 1.098 MB / 424.1 MB, free: 15.56 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001044/0.2076, allocations: 27.91 kB / 424.1 MB, free: 15.54 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001217/0.2088, allocations: 1.884 MB / 426 MB, free: 13.65 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001817/0.209, allocations: 146.8 kB / 426.1 MB, free: 13.49 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004264/0.2094, allocations: 0.6459 MB / 426.8 MB, free: 12.84 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007881/0.2102, allocations: 0.9966 MB / 427.8 MB, free: 11.84 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001906/0.2104, allocations: 183.9 kB / 427.9 MB, free: 11.66 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008264/0.2112, allocations: 0.7333 MB / 428.7 MB, free: 10.93 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000502/0.2117, allocations: 0.9467 MB / 429.6 MB, free: 9.977 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006734/0.2124, allocations: 1.192 MB / 430.8 MB, free: 8.777 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002328/0.2148, allocations: 4.045 MB / 434.8 MB, free: 4.723 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.2148, allocations: 3.938 kB / 434.9 MB, free: 4.719 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.355e-06/0.2148, allocations: 0 / 434.9 MB, free: 4.719 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.254e-05/0.2148, allocations: 7.938 kB / 434.9 MB, free: 4.711 MB / 302.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.003343/0.2182, allocations: 2.567 MB / 437.4 MB, free: 2.086 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.345e-05/0.2182, allocations: 12.02 kB / 437.4 MB, free: 2.074 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005181/0.2234, allocations: 1.671 MB / 439.1 MB, free: 408 kB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001998/0.2254, allocations: 1.085 MB / 440.2 MB, free: 15.27 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.632e-05/0.2255, allocations: 98.78 kB / 440.3 MB, free: 15.17 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003132/0.2258, allocations: 132.3 kB / 440.4 MB, free: 15.04 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008582/0.2344, allocations: 6.509 MB / 446.9 MB, free: 8.301 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.121e-05/0.2345, allocations: 15.88 kB / 446.9 MB, free: 8.285 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002031/0.2347, allocations: 67.88 kB / 447 MB, free: 8.219 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002423/0.2371, allocations: 1.621 MB / 448.6 MB, free: 6.594 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009414/0.2466, allocations: 6.047 MB / 454.7 MB, free: 0.5312 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02218/0.2688, allocations: 18.14 MB / 472.8 MB, free: 14.05 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002378/0.2712, allocations: 1.558 MB / 474.4 MB, free: 12.37 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007342/0.2719, allocations: 0.5343 MB / 474.9 MB, free: 11.83 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003533/0.2755, allocations: 2.14 MB / 477 MB, free: 9.57 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.336e-05/0.2755, allocations: 38.94 kB / 477.1 MB, free: 9.523 MB / 350.1 MB Notification: Performance of pre-optimization done (n=80): time 2.194e-06/0.2755, allocations: 0 / 477.1 MB, free: 9.523 MB / 350.1 MB Notification: Performance of matching and sorting (n=80): time 0.002807/0.2783, allocations: 1.498 MB / 478.6 MB, free: 8.02 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.5e-05/0.2784, allocations: 59.78 kB / 478.6 MB, free: 7.949 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002519/0.2809, allocations: 2.011 MB / 480.7 MB, free: 5.93 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.593e-05/0.281, allocations: 33.7 kB / 480.7 MB, free: 5.891 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001003/0.282, allocations: 1.65 MB / 482.3 MB, free: 4.215 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002487/0.2822, allocations: 327.8 kB / 482.7 MB, free: 3.891 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006809/0.2829, allocations: 0.5674 MB / 483.2 MB, free: 3.316 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001724/0.2831, allocations: 357.9 kB / 483.6 MB, free: 2.961 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001452/0.2846, allocations: 0.9266 MB / 484.5 MB, free: 2.031 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002514/0.2871, allocations: 2.57 MB / 487.1 MB, free: 14.63 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0043/0.2914, allocations: 3.728 MB / 490.8 MB, free: 10.1 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.045e-05/0.2914, allocations: 16 kB / 490.8 MB, free: 10.08 MB / 366.1 MB Notification: Performance of matching and sorting (n=360) (initialization): time 0.005927/0.2974, allocations: 3.417 MB / 494.2 MB, free: 6.656 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.321e-05/0.2974, allocations: 31.98 kB / 494.3 MB, free: 6.625 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.003e-05/0.2975, allocations: 60 kB / 494.3 MB, free: 6.566 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.808e-05/0.2976, allocations: 76.72 kB / 494.4 MB, free: 6.492 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001649/0.2992, allocations: 0.616 MB / 495 MB, free: 5.875 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.453e-05/0.2993, allocations: 119.5 kB / 495.1 MB, free: 5.758 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002073/0.3014, allocations: 419.6 kB / 495.5 MB, free: 5.344 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002267/0.3016, allocations: 168 kB / 495.7 MB, free: 5.18 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.001948/0.3036, allocations: 1.313 MB / 497 MB, free: 3.855 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002702/0.3039, allocations: 150 kB / 497.2 MB, free: 3.707 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001723/0.3056, allocations: 1.056 MB / 498.2 MB, free: 2.637 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.235e-05/0.3057, allocations: 24.11 kB / 498.2 MB, free: 2.613 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.936e-06/0.3057, allocations: 7.938 kB / 498.2 MB, free: 2.605 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.486e-06/0.3057, allocations: 3.984 kB / 498.2 MB, free: 2.602 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006097/0.3118, allocations: 3.584 MB / 0.4901 GB, free: 14.94 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.213e-06/0.3119, allocations: 4 kB / 0.4901 GB, free: 14.93 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004697/0.3124, allocations: 99.88 kB / 0.4902 GB, free: 14.84 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.173e-06/0.3124, allocations: 7.938 kB / 0.4902 GB, free: 14.83 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.909e-05/0.3124, allocations: 19.98 kB / 0.4902 GB, free: 14.81 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.971e-06/0.3124, allocations: 4 kB / 0.4902 GB, free: 14.8 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.684e-06/0.3124, allocations: 0 / 0.4902 GB, free: 14.8 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002249/0.3147, allocations: 1.736 MB / 0.4919 GB, free: 13.04 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004603/0.3152, allocations: 251 kB / 0.4921 GB, free: 12.78 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001638/0.3153, allocations: 16 kB / 0.4922 GB, free: 12.76 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004987/0.3159, allocations: 31.97 kB / 0.4922 GB, free: 12.73 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.174e-05/0.3159, allocations: 32.67 kB / 0.4922 GB, free: 12.7 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.548e-05/0.316, allocations: 27.98 kB / 0.4922 GB, free: 12.67 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001949/0.3179, allocations: 1.306 MB / 0.4935 GB, free: 11.37 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.318, allocations: 7.938 kB / 0.4935 GB, free: 11.36 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002093/0.3201, allocations: 0.6379 MB / 0.4941 GB, free: 10.72 MB / 382.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.0002588/0.3203, allocations: 139 kB / 0.4943 GB, free: 10.58 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002931/0.3233, allocations: 2.017 MB / 0.4962 GB, free: 8.574 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.3233, allocations: 4.062 kB / 0.4963 GB, free: 8.57 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006154/0.3239, allocations: 474.5 kB / 0.4967 GB, free: 8.102 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001223/0.3251, allocations: 291.2 kB / 0.497 GB, free: 7.836 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007219/0.3324, allocations: 4.929 MB / 0.5018 GB, free: 2.863 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002193/0.3346, allocations: 2.16 MB / 0.5039 GB, free: 0.6719 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.152/0.4866, allocations: 0.8778 MB / 0.5048 GB, free: 86.93 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000459/0.4871, allocations: 121.6 kB / 0.5049 GB, free: 86.92 MB / 382.1 MB Notification: Performance of SimCode: time 1.052e-06/0.4871, allocations: 0.5 kB / 0.5049 GB, free: 86.92 MB / 382.1 MB Notification: Performance of Templates: time 0.02986/0.517, allocations: 17.11 MB / 0.5216 GB, free: 80.2 MB / 382.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 -s cvode -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.FreeBody.pipe 2>&1)