Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo.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.PowerDistanceDemo,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo") translateModel(PlanarMechanics.Examples.PowerDistanceDemo,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009817/0.0009817, allocations: 176.1 kB / 7.643 MB, free: 1.414 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.384/1.384, allocations: 221.5 MB / 229.6 MB, free: 7.57 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008792/0.0008792, allocations: 94.36 kB / 280.5 MB, free: 5.32 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.03737/0.03737, allocations: 8.829 MB / 340.1 MB, free: 6.41 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.578e-05/1.582e-05, allocations: 2.219 kB / 398.7 MB, free: 47.54 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1027/0.1027, allocations: 52.39 MB / 451.1 MB, free: 4.539 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4236/0.5263, allocations: 95.7 MB / 0.534 GB, free: 23.93 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002351/0.5266, allocations: 78.38 kB / 0.534 GB, free: 23.93 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2442/0.7708, allocations: 106.7 MB / 0.6382 GB, free: 10.5 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.864e-06/0.7708, allocations: 0 / 0.6382 GB, free: 10.5 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0003192/0.7712, allocations: 88 kB / 0.6383 GB, free: 10.41 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2088 * Number of variables: 2088 Notification: Performance of Generate backend data structure: time 0.01912/0.7903, allocations: 4.763 MB / 0.6429 GB, free: 5.59 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.784e-05/0.7904, allocations: 16.02 kB / 0.6429 GB, free: 5.574 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01759/0.808, allocations: 3.71 MB / 0.6466 GB, free: 1.852 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008899/0.8169, allocations: 2.844 MB / 0.6493 GB, free: 14.97 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004446/0.8174, allocations: 172 kB / 0.6495 GB, free: 14.8 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00375/0.8212, allocations: 303.9 kB / 0.6498 GB, free: 14.51 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02003/0.8412, allocations: 8.996 MB / 0.6586 GB, free: 5.504 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02847/0.8697, allocations: 13.07 MB / 0.6713 GB, free: 7.254 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002163/0.87, allocations: 67.44 kB / 0.6714 GB, free: 7.184 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001469/0.8715, allocations: 36 kB / 0.6714 GB, free: 7.148 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002326/0.8738, allocations: 1.583 MB / 0.673 GB, free: 5.57 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3466/1.22, allocations: 56.19 MB / 0.7279 GB, free: 65.45 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005485/1.226, allocations: 3.642 MB / 0.7314 GB, free: 64.21 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001765/1.228, allocations: 1.239 MB / 0.7326 GB, free: 64.18 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009529/1.237, allocations: 5.537 MB / 0.738 GB, free: 61.89 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.637e-05/1.237, allocations: 52.38 kB / 0.7381 GB, free: 61.85 MB / 458.7 MB Notification: Performance of pre-optimization done (n=202): time 5.561e-06/1.237, allocations: 2.625 kB / 0.7381 GB, free: 61.85 MB / 458.7 MB Notification: Performance of matching and sorting (n=224): time 0.01563/1.253, allocations: 9.84 MB / 0.7477 GB, free: 58.35 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.44e-05/1.253, allocations: 151.6 kB / 0.7478 GB, free: 58.2 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004914/1.258, allocations: 3.984 MB / 0.7517 GB, free: 57.78 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002002/1.258, allocations: 28.64 kB / 0.7518 GB, free: 57.75 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001768/1.26, allocations: 4.214 MB / 0.7559 GB, free: 55.3 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006645/1.261, allocations: 0.8627 MB / 0.7567 GB, free: 54.82 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002614/1.261, allocations: 0 / 0.7567 GB, free: 54.82 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.000341/1.261, allocations: 0.6717 MB / 0.7574 GB, free: 54.49 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002713/1.264, allocations: 2.345 MB / 0.7597 GB, free: 54.47 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005111/1.269, allocations: 7.693 MB / 0.7672 GB, free: 47.48 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005724/1.275, allocations: 4.357 MB / 0.7714 GB, free: 47.43 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000128/1.275, allocations: 57.5 kB / 0.7715 GB, free: 47.43 MB / 458.7 MB Notification: Performance of matching and sorting (n=1126) (initialization): time 0.016/1.291, allocations: 8.952 MB / 0.7802 GB, free: 44.96 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001141/1.291, allocations: 89.5 kB / 0.7803 GB, free: 44.96 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000208/1.291, allocations: 195 kB / 0.7805 GB, free: 44.96 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007867/1.292, allocations: 492.8 kB / 0.781 GB, free: 44.9 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005716/1.298, allocations: 1.934 MB / 0.7828 GB, free: 44.66 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003815/1.302, allocations: 3.46 MB / 0.7862 GB, free: 42.55 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007747/1.31, allocations: 254.6 kB / 0.7865 GB, free: 42.54 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002334/1.312, allocations: 0.5232 MB / 0.787 GB, free: 42.47 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 880 * Number of states: 0 () * Number of discrete variables: 44 (distance.arrow.arrowLine.twoHeadedArrow,distance.arrow.headAtOrigin,distance.arrowColor[3],distance.arrowColor[2],distance.arrowColor[1],distance.world.gravityArrowColor[3],distance.world.gravityArrowColor[2],distance.world.gravityArrowColor[1],distance.world.axisColor_x[3],distance.world.axisColor_x[2],distance.world.axisColor_x[1],distance.world.groundColor[3],distance.world.groundColor[2],distance.world.groundColor[1],distance.world.gravitySphereColor[3],distance.world.gravitySphereColor[2],distance.world.gravitySphereColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],damper.color_b[3],damper.color_b[2],damper.color_b[1],damper.color_a[3],damper.color_a[2],damper.color_a[1],damper.colorConnector_b[3],damper.colorConnector_b[2],damper.colorConnector_b[1],damper.colorConnector_a[3],damper.colorConnector_a[2],damper.colorConnector_a[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1057): * Single equations (assignments): 1048 * Array equations: 8 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,88.9%) 16} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001694/1.314, allocations: 0.5674 MB / 0.7875 GB, free: 42 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008489/1.314, allocations: 381 kB / 0.7879 GB, free: 41.79 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003352/1.318, allocations: 2.204 MB / 0.7901 GB, free: 40.98 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001367/1.318, allocations: 39.45 kB / 0.7901 GB, free: 40.98 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.094e-05/1.318, allocations: 7.75 kB / 0.7901 GB, free: 40.98 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.686e-05/1.318, allocations: 11 kB / 0.7901 GB, free: 40.98 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01171/1.33, allocations: 6.541 MB / 0.7965 GB, free: 38.53 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.183e-05/1.33, allocations: 3.438 kB / 0.7965 GB, free: 38.53 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001163/1.331, allocations: 286.8 kB / 0.7968 GB, free: 38.5 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005/1.331, allocations: 205.5 kB / 0.797 GB, free: 38.46 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001243/1.332, allocations: 15.42 kB / 0.797 GB, free: 38.45 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002648/1.334, allocations: 2.606 MB / 0.7995 GB, free: 36.7 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.29e-06/1.334, allocations: 3.312 kB / 0.7995 GB, free: 36.7 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005404/1.34, allocations: 4.871 MB / 0.8043 GB, free: 32.84 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001163/1.341, allocations: 442 kB / 0.8047 GB, free: 32.4 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004306/1.341, allocations: 4 kB / 0.8047 GB, free: 32.4 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001239/1.343, allocations: 64.59 kB / 0.8048 GB, free: 32.36 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001933/1.343, allocations: 113.1 kB / 0.8049 GB, free: 32.29 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001242/1.343, allocations: 64.14 kB / 0.8049 GB, free: 32.23 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.004135/1.347, allocations: 2.609 MB / 0.8075 GB, free: 29.94 MB / 458.7 MB Notification: Performance of sort global known variables: time 4.91e-07/1.347, allocations: 0 / 0.8075 GB, free: 29.94 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.006814/1.354, allocations: 1.026 MB / 0.8085 GB, free: 28.92 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 4 (revolute.phi,revolute.w,prismatic.s,prismatic.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (158): * Single equations (assignments): 149 * Array equations: 8 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 15} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004489/1.354, allocations: 153.7 kB / 0.8086 GB, free: 28.77 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.007753/1.362, allocations: 5.474 MB / 0.814 GB, free: 23.79 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 5.62e-06/1.362, allocations: 0.875 kB / 0.814 GB, free: 23.79 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001471/1.364, allocations: 1.357 MB / 0.8153 GB, free: 22.54 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001875/1.366, allocations: 369.3 kB / 0.8157 GB, free: 22.23 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01688/1.382, allocations: 9.129 MB / 0.8246 GB, free: 13.99 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003836/1.386, allocations: 4.168 MB / 0.8287 GB, free: 10.81 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.005671/1.392, allocations: 2.572 MB / 0.8312 GB, free: 9.23 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006277/1.393, allocations: 289.3 kB / 0.8314 GB, free: 8.961 MB / 458.7 MB Notification: Performance of SimCode: time 1.052e-06/1.393, allocations: 3.562 kB / 0.8314 GB, free: 8.961 MB / 458.7 MB Notification: Performance of Templates: time 0.06165/1.454, allocations: 31.76 MB / 0.8625 GB, free: 1.848 MB / 474.7 MB make -j1 -f PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo.makefile (rm -f PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo.sim & ./PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo -abortSlowSimulation -alarm=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo.pipe 2>&1)