Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab.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.ControlledCraneCrab,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab") translateModel(PlanarMechanics.Examples.ControlledCraneCrab,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.004874/0.004874, allocations: 170.4 kB / 15.11 MB, free: 6.039 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.609/1.609, allocations: 223.2 MB / 239 MB, free: 1.758 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.0009267/0.0009267, allocations: 106.9 kB / 290.2 MB, free: 13.92 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.04045/0.04045, allocations: 8.937 MB / 350.3 MB, free: 2.062 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003429/0.0003429, allocations: 7.219 kB / 413.1 MB, free: 88.61 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.108/0.1083, allocations: 52.39 MB / 465.5 MB, free: 41.7 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4016/0.51, allocations: 89.94 MB / 0.5424 GB, free: 16.27 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002127/0.5103, allocations: 80.44 kB / 0.5425 GB, free: 16.27 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1465/0.6568, allocations: 63.82 MB / 0.6048 GB, free: 11.07 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.076e-06/0.6568, allocations: 0 / 0.6048 GB, free: 11.07 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001114/0.6569, allocations: 52 kB / 0.6049 GB, free: 11.02 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1165 * Number of variables: 1165 Notification: Performance of Generate backend data structure: time 0.01251/0.6694, allocations: 3.202 MB / 0.608 GB, free: 8.004 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.472e-05/0.6695, allocations: 8.031 kB / 0.608 GB, free: 7.996 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009904/0.6794, allocations: 1.946 MB / 0.6099 GB, free: 6.043 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006451/0.6859, allocations: 1.762 MB / 0.6116 GB, free: 4.699 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002685/0.6862, allocations: 226.4 kB / 0.6119 GB, free: 4.547 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00203/0.6883, allocations: 297.8 kB / 0.6121 GB, free: 4.332 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01843/0.7067, allocations: 7.575 MB / 0.6195 GB, free: 14.66 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001163/0.7069, allocations: 25.84 kB / 0.6196 GB, free: 14.63 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004982/0.7074, allocations: 135.9 kB / 0.6197 GB, free: 14.57 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001479/0.7089, allocations: 0.8729 MB / 0.6206 GB, free: 13.73 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01718/0.7261, allocations: 7.063 MB / 0.6275 GB, free: 6.652 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04048/0.7666, allocations: 24.36 MB / 0.6512 GB, free: 13.79 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005364/0.772, allocations: 2.386 MB / 0.6536 GB, free: 11.3 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008196/0.7803, allocations: 4.648 MB / 0.6581 GB, free: 6.266 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.464e-05/0.7804, allocations: 51.48 kB / 0.6582 GB, free: 6.207 MB / 426.7 MB Notification: Performance of pre-optimization done (n=131): time 4.738e-06/0.7804, allocations: 4 kB / 0.6582 GB, free: 6.203 MB / 426.7 MB Notification: Performance of matching and sorting (n=153): time 0.01411/0.7945, allocations: 7.144 MB / 0.6651 GB, free: 14.9 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.158e-05/0.7946, allocations: 64.72 kB / 0.6652 GB, free: 14.82 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004078/0.7987, allocations: 2.351 MB / 0.6675 GB, free: 12.45 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001378/0.7988, allocations: 49.69 kB / 0.6675 GB, free: 12.39 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001514/0.8004, allocations: 2.101 MB / 0.6696 GB, free: 10.26 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000623/0.801, allocations: 0.5667 MB / 0.6701 GB, free: 9.688 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001715/0.8012, allocations: 79.94 kB / 0.6702 GB, free: 9.609 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.000302/0.8015, allocations: 482.6 kB / 0.6707 GB, free: 9.129 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002109/0.8036, allocations: 1.257 MB / 0.6719 GB, free: 7.867 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00355/0.8072, allocations: 3.385 MB / 0.6752 GB, free: 3.422 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00334/0.8105, allocations: 2.075 MB / 0.6772 GB, free: 1.348 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.13e-05/0.8106, allocations: 20 kB / 0.6773 GB, free: 1.328 MB / 442.7 MB Notification: Performance of matching and sorting (n=514) (initialization): time 0.008626/0.8192, allocations: 4.829 MB / 0.682 GB, free: 12.49 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.62e-05/0.8193, allocations: 37.88 kB / 0.682 GB, free: 12.45 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.925e-05/0.8194, allocations: 76 kB / 0.6821 GB, free: 12.38 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007577/0.8201, allocations: 308.6 kB / 0.6824 GB, free: 12.07 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002798/0.823, allocations: 0.8577 MB / 0.6832 GB, free: 11.21 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004634/0.8276, allocations: 3.419 MB / 0.6866 GB, free: 7.656 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004323/0.832, allocations: 192 kB / 0.6867 GB, free: 7.469 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006746/0.8327, allocations: 236 kB / 0.687 GB, free: 7.238 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 340 * Number of states: 0 () * Number of discrete variables: 16 (revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],PID.I.local_reset,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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (470): * Single equations (assignments): 465 * Array equations: 4 * 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%) 17} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003756/0.8364, allocations: 1.561 MB / 0.6885 GB, free: 5.664 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004947/0.8369, allocations: 225.1 kB / 0.6887 GB, free: 5.441 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003694/0.8406, allocations: 1.994 MB / 0.6907 GB, free: 3.438 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000114/0.8408, allocations: 23.98 kB / 0.6907 GB, free: 3.414 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.918e-06/0.8408, allocations: 4 kB / 0.6907 GB, free: 3.41 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.37e-05/0.8408, allocations: 12.19 kB / 0.6907 GB, free: 3.398 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2826/1.123, allocations: 5.665 MB / 0.6962 GB, free: 113.8 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.277e-06/1.123, allocations: 1.062 kB / 0.6962 GB, free: 113.8 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000831/1.124, allocations: 203.5 kB / 0.6964 GB, free: 113.8 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005559/1.125, allocations: 200.6 kB / 0.6966 GB, free: 113.8 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.774e-05/1.125, allocations: 28.06 kB / 0.6966 GB, free: 113.8 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002778/1.128, allocations: 2.792 MB / 0.6994 GB, free: 112.6 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.498e-06/1.128, allocations: 7.578 kB / 0.6994 GB, free: 112.6 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004078/1.132, allocations: 3.227 MB / 0.7025 GB, free: 112.1 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001264/1.133, allocations: 472.3 kB / 0.703 GB, free: 112 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002879/1.133, allocations: 22.3 kB / 0.703 GB, free: 112 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008132/1.134, allocations: 60.25 kB / 0.7031 GB, free: 112 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001679/1.134, allocations: 95.42 kB / 0.7031 GB, free: 112 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.628e-05/1.135, allocations: 45.52 kB / 0.7032 GB, free: 112 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.00277/1.137, allocations: 1.673 MB / 0.7048 GB, free: 111.8 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.01e-07/1.137, allocations: 0 / 0.7048 GB, free: 111.8 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.003584/1.141, allocations: 0.6919 MB / 0.7055 GB, free: 111.8 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 6 (PID.I.y,PID.D.x,prismatic.s,prismatic.v,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 (112): * Single equations (assignments): 107 * Array equations: 4 * 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.0004236/1.141, allocations: 170.4 kB / 0.7057 GB, free: 111.8 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.005524/1.147, allocations: 3.11 MB / 0.7087 GB, free: 111.6 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 4.839e-06/1.147, allocations: 0 / 0.7087 GB, free: 111.6 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001281/1.148, allocations: 1.021 MB / 0.7097 GB, free: 111.5 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001896/1.15, allocations: 359.1 kB / 0.71 GB, free: 111.5 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01314/1.163, allocations: 7.826 MB / 0.7177 GB, free: 108.3 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002819/1.166, allocations: 2.656 MB / 0.7203 GB, free: 107.6 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.003122/1.169, allocations: 1.177 MB / 0.7214 GB, free: 107.5 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005238/1.17, allocations: 169.2 kB / 0.7216 GB, free: 107.5 MB / 458.7 MB Notification: Performance of SimCode: time 1.393e-06/1.17, allocations: 0 / 0.7216 GB, free: 107.5 MB / 458.7 MB Notification: Performance of Templates: time 0.04381/1.214, allocations: 24.21 MB / 0.7452 GB, free: 106.3 MB / 458.7 MB make -j1 -f PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab.makefile (rm -f PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab.sim & ./PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab -abortSlowSimulation -alarm=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab.pipe 2>&1)