Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.PendulumExcited.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.PendulumExcited,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.PendulumExcited") translateModel(PlanarMechanics.Examples.PendulumExcited,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.PendulumExcited") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001163/0.001163, allocations: 183.1 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.236/1.236, allocations: 222.9 MB / 239.7 MB, free: 10.98 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.0008935/0.0008935, allocations: 100.3 kB / 289.9 MB, free: 10.94 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.03957/0.03957, allocations: 8.938 MB / 349 MB, free: 40 kB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009694/0.0009694, allocations: 52.8 kB / 411.1 MB, free: 57.05 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08131/0.08229, allocations: 51.4 MB / 462.5 MB, free: 5.719 MB / 298.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PendulumExcited): time 0.2181/0.3004, allocations: 46.95 MB / 0.4975 GB, free: 2.418 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.02438/0.3248, allocations: 9.92 MB / 0.5072 GB, free: 11.62 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01248/0.3373, allocations: 173.8 kB / 0.5074 GB, free: 11.6 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002573/0.34, allocations: 0.6897 MB / 0.508 GB, free: 11.27 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007033/0.347, allocations: 2.011 MB / 0.51 GB, free: 9.848 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005512/0.3476, allocations: 130.4 kB / 0.5101 GB, free: 9.746 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.007413/0.355, allocations: 6.21 MB / 0.5162 GB, free: 6.191 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002658/0.3577, allocations: 1.983 MB / 0.5181 GB, free: 4.215 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002002/0.3597, allocations: 1.283 MB / 0.5194 GB, free: 2.926 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002808/0.3625, allocations: 2.339 MB / 0.5217 GB, free: 0.5781 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006349/0.3632, allocations: 228 kB / 0.5219 GB, free: 364 kB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001757/0.365, allocations: 0.7995 MB / 0.5227 GB, free: 15.55 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001612/0.3666, allocations: 1.986 MB / 0.5246 GB, free: 13.56 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002207/0.3688, allocations: 2.62 MB / 0.5272 GB, free: 10.93 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007564/0.3764, allocations: 8.092 MB / 0.5351 GB, free: 2.809 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.3764, allocations: 0 / 0.5351 GB, free: 2.809 MB / 346.7 MB Notification: Performance of FrontEnd: time 4.719e-06/0.3764, allocations: 0 / 0.5351 GB, free: 2.809 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0001572/0.3766, allocations: 3.938 kB / 0.5351 GB, free: 2.805 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2108 * Number of variables: 2108 Notification: Performance of Generate backend data structure: time 0.01239/0.389, allocations: 6.465 MB / 0.5414 GB, free: 12.27 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.581e-05/0.389, allocations: 8.031 kB / 0.5414 GB, free: 12.26 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01188/0.4009, allocations: 3.37 MB / 0.5447 GB, free: 8.875 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005155/0.4061, allocations: 2.219 MB / 0.5469 GB, free: 6.605 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002172/0.4063, allocations: 258.1 kB / 0.5471 GB, free: 6.352 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009029/0.4073, allocations: 319.7 kB / 0.5474 GB, free: 6.039 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02205/0.4293, allocations: 14.59 MB / 0.5617 GB, free: 6.629 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.488e-05/0.4295, allocations: 43.56 kB / 0.5617 GB, free: 6.586 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000617/0.4301, allocations: 163.7 kB / 0.5619 GB, free: 6.426 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005542/0.4356, allocations: 3.472 MB / 0.5652 GB, free: 2.941 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0232/0.4589, allocations: 13.09 MB / 0.578 GB, free: 5.844 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06118/0.5201, allocations: 49.89 MB / 0.6267 GB, free: 2.648 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007538/0.5277, allocations: 4.123 MB / 0.6308 GB, free: 14.27 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002051/0.5297, allocations: 1.465 MB / 0.6322 GB, free: 12.79 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009748/0.5395, allocations: 6.693 MB / 0.6387 GB, free: 5.555 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.48e-05/0.5396, allocations: 55.81 kB / 0.6388 GB, free: 5.492 MB / 458.7 MB Notification: Performance of pre-optimization done (n=214): time 3.797e-06/0.5396, allocations: 0 / 0.6388 GB, free: 5.492 MB / 458.7 MB Notification: Performance of matching and sorting (n=228): time 0.1878/0.7274, allocations: 9.446 MB / 0.648 GB, free: 151.6 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.147e-05/0.7275, allocations: 149.5 kB / 0.6482 GB, free: 151.5 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007304/0.7348, allocations: 5.068 MB / 0.6531 GB, free: 149.6 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003234/0.7351, allocations: 52.8 kB / 0.6532 GB, free: 149.6 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002949/0.7381, allocations: 4.048 MB / 0.6571 GB, free: 146.5 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001148/0.7393, allocations: 0.8791 MB / 0.658 GB, free: 145.8 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002274/0.7415, allocations: 1.611 MB / 0.6595 GB, free: 145 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 5.743e-05/0.7416, allocations: 313.5 kB / 0.6598 GB, free: 144.7 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004086/0.7457, allocations: 2.491 MB / 0.6623 GB, free: 143.9 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005503/0.7512, allocations: 7.378 MB / 0.6695 GB, free: 136.5 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009019/0.7603, allocations: 10.7 MB / 0.6799 GB, free: 127 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002292/0.7605, allocations: 48.12 kB / 0.68 GB, free: 127 MB / 458.7 MB Notification: Performance of matching and sorting (n=1031) (initialization): time 0.01434/0.7749, allocations: 9.658 MB / 0.6894 GB, free: 123.2 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.499e-05/0.775, allocations: 82.84 kB / 0.6895 GB, free: 123.2 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001754/0.7752, allocations: 177.6 kB / 0.6897 GB, free: 123.2 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000622/0.7758, allocations: 366 kB / 0.69 GB, free: 123 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004785/0.7806, allocations: 1.795 MB / 0.6918 GB, free: 121.4 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002425/0.7831, allocations: 2.821 MB / 0.6945 GB, free: 118.7 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005879/0.789, allocations: 409.1 kB / 0.6949 GB, free: 118.4 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001233/0.7902, allocations: 491.3 kB / 0.6954 GB, free: 117.9 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 790 * Number of states: 0 () * Number of discrete variables: 29 (cutForce.forceArrow.arrowLine.twoHeadedArrow,cutForce.forceArrow.headAtOrigin,worldForce.color[3],worldForce.color[2],worldForce.color[1],cutForce.forceColor[3],cutForce.forceColor[2],cutForce.forceColor[1],cutForce.world.gravityArrowColor[3],cutForce.world.gravityArrowColor[2],cutForce.world.gravityArrowColor[1],cutForce.world.axisColor_x[3],cutForce.world.axisColor_x[2],cutForce.world.axisColor_x[1],cutForce.world.groundColor[3],cutForce.world.groundColor[2],cutForce.world.groundColor[1],cutForce.world.gravitySphereColor[3],cutForce.world.gravitySphereColor[2],cutForce.world.gravitySphereColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],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 (969): * Single equations (assignments): 961 * Array equations: 7 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.007659/0.7979, allocations: 2.939 MB / 0.6982 GB, free: 115.3 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001452/0.7994, allocations: 410.5 kB / 0.6986 GB, free: 114.9 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005259/0.8046, allocations: 2.562 MB / 0.7011 GB, free: 112.7 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001178/0.8048, allocations: 39.28 kB / 0.7012 GB, free: 112.7 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.737e-05/0.8048, allocations: 4 kB / 0.7012 GB, free: 112.7 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.582e-05/0.8049, allocations: 7.688 kB / 0.7012 GB, free: 112.7 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0179/0.8228, allocations: 8.519 MB / 0.7095 GB, free: 104.5 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.925e-05/0.8228, allocations: 12.03 kB / 0.7095 GB, free: 104.4 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001324/0.8242, allocations: 327.5 kB / 0.7098 GB, free: 104.1 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003548/0.8245, allocations: 132.8 kB / 0.71 GB, free: 104 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001831/0.8247, allocations: 47.05 kB / 0.71 GB, free: 103.9 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00189/0.8266, allocations: 2.294 MB / 0.7122 GB, free: 101.5 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/0.8266, allocations: 4 kB / 0.7122 GB, free: 101.5 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02294/0.8496, allocations: 15.68 MB / 0.7276 GB, free: 85.48 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001253/0.8509, allocations: 467.9 kB / 0.728 GB, free: 85 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001143/0.8521, allocations: 39.98 kB / 0.728 GB, free: 84.96 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002158/0.8542, allocations: 107.2 kB / 0.7281 GB, free: 84.86 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004469/0.8547, allocations: 133.1 kB / 0.7283 GB, free: 84.73 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002414/0.855, allocations: 75.98 kB / 0.7283 GB, free: 84.66 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.005955/0.8609, allocations: 3.195 MB / 0.7315 GB, free: 81.46 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.3e-07/0.8609, allocations: 0 / 0.7315 GB, free: 81.46 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.008152/0.8691, allocations: 1.456 MB / 0.7329 GB, free: 80.02 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 2 (revolute.phi,revolute.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 (171): * Single equations (assignments): 163 * Array equations: 7 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004767/0.8696, allocations: 174.7 kB / 0.733 GB, free: 79.84 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.008171/0.8778, allocations: 5.793 MB / 0.7387 GB, free: 74.08 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 7.585e-06/0.8778, allocations: 0 / 0.7387 GB, free: 74.08 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001788/0.8796, allocations: 1.534 MB / 0.7402 GB, free: 72.54 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003481/0.8831, allocations: 0.55 MB / 0.7407 GB, free: 72 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02244/0.9056, allocations: 15.72 MB / 0.7561 GB, free: 56.18 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006089/0.9117, allocations: 4.204 MB / 0.7602 GB, free: 51.94 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.00581/0.9176, allocations: 2.472 MB / 0.7626 GB, free: 49.46 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007258/0.9183, allocations: 303.4 kB / 0.7629 GB, free: 49.16 MB / 458.7 MB Notification: Performance of SimCode: time 8.22e-07/0.9183, allocations: 4 kB / 0.7629 GB, free: 49.16 MB / 458.7 MB Notification: Performance of Templates: time 0.06664/0.985, allocations: 41.5 MB / 0.8034 GB, free: 7.879 MB / 458.7 MB make -j1 -f PlanarMechanics_PlanarMechanics.Examples.PendulumExcited.makefile (rm -f PlanarMechanics_PlanarMechanics.Examples.PendulumExcited.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.PendulumExcited.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.PendulumExcited.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.PendulumExcited.sim & ./PlanarMechanics_PlanarMechanics.Examples.PendulumExcited -abortSlowSimulation -alarm=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.PendulumExcited.pipe 2>&1)