Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection.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.KinematicLoop_DynamicStateSelection,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection") translateModel(PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001106/0.001106, allocations: 180.8 kB / 16.12 MB, free: 5.684 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.365/1.365, allocations: 223.3 MB / 240.1 MB, free: 11.69 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.0008958/0.0008961, allocations: 98.69 kB / 291.3 MB, free: 10.78 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.04102/0.04102, allocations: 8.943 MB / 351.4 MB, free: 14.91 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003493/0.0003493, allocations: 8 kB / 414.4 MB, free: 56.75 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0825/0.08287, allocations: 52.4 MB / 466.8 MB, free: 4.414 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2718/0.3547, allocations: 88.61 MB / 0.5424 GB, free: 12.89 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002012/0.3549, allocations: 78.14 kB / 0.5425 GB, free: 12.85 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1811/0.5361, allocations: 73.61 MB / 0.6143 GB, free: 5.043 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.295e-06/0.5361, allocations: 0 / 0.6143 GB, free: 5.043 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001627/0.5363, allocations: 64 kB / 0.6144 GB, free: 4.98 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1368 * Number of variables: 1368 Notification: Performance of Generate backend data structure: time 0.01517/0.5515, allocations: 3.874 MB / 0.6182 GB, free: 1.043 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.435e-05/0.5515, allocations: 15.97 kB / 0.6182 GB, free: 1.027 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009917/0.5615, allocations: 2.012 MB / 0.6202 GB, free: 15.01 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00546/0.567, allocations: 1.951 MB / 0.6221 GB, free: 13.01 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003355/0.5673, allocations: 266.9 kB / 0.6223 GB, free: 12.75 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002009/0.5694, allocations: 355.8 kB / 0.6227 GB, free: 12.4 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02053/0.5899, allocations: 8.855 MB / 0.6313 GB, free: 3.07 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001878/0.5901, allocations: 39.64 kB / 0.6314 GB, free: 3.031 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001482/0.5916, allocations: 159.9 kB / 0.6315 GB, free: 2.875 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0017/0.5934, allocations: 1.034 MB / 0.6325 GB, free: 1.84 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01657/0.6099, allocations: 8.104 MB / 0.6404 GB, free: 9.723 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2778/0.8878, allocations: 29.93 MB / 0.6697 GB, free: 95.48 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009133/0.897, allocations: 3.037 MB / 0.6726 GB, free: 94.88 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002099/0.8992, allocations: 1.096 MB / 0.6737 GB, free: 94.86 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008394/0.9076, allocations: 6.287 MB / 0.6798 GB, free: 91.21 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.362e-05/0.9077, allocations: 50.38 kB / 0.6799 GB, free: 91.18 MB / 458.7 MB Notification: Performance of pre-optimization done (n=179): time 5.32e-06/0.9077, allocations: 0 / 0.6799 GB, free: 91.18 MB / 458.7 MB Notification: Performance of matching and sorting (n=239): time 0.02737/0.9351, allocations: 11.99 MB / 0.6916 GB, free: 89.56 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.006317/0.9414, allocations: 6.441 MB / 0.6979 GB, free: 86.46 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00407/0.9455, allocations: 2.997 MB / 0.7008 GB, free: 86.17 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004275/0.946, allocations: 59.45 kB / 0.7009 GB, free: 86.14 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001481/0.9475, allocations: 2.416 MB / 0.7032 GB, free: 84.77 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007231/0.9482, allocations: 0.8645 MB / 0.7041 GB, free: 84.13 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001886/0.9484, allocations: 98.92 kB / 0.7042 GB, free: 84.05 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.000219/0.9486, allocations: 0.5216 MB / 0.7047 GB, free: 83.66 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002269/0.9509, allocations: 1.654 MB / 0.7063 GB, free: 83.11 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003175/0.9541, allocations: 4.265 MB / 0.7105 GB, free: 79.12 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005939/0.9601, allocations: 6.447 MB / 0.7167 GB, free: 74.37 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.195e-05/0.9601, allocations: 25.28 kB / 0.7168 GB, free: 74.37 MB / 458.7 MB Notification: Performance of matching and sorting (n=666) (initialization): time 0.01138/0.9715, allocations: 6.538 MB / 0.7232 GB, free: 71.88 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.752e-05/0.9717, allocations: 44.06 kB / 0.7232 GB, free: 71.88 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001378/0.9718, allocations: 91.34 kB / 0.7233 GB, free: 71.88 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001528/0.9733, allocations: 0.689 MB / 0.724 GB, free: 71.71 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00354/0.9769, allocations: 1.059 MB / 0.725 GB, free: 71.58 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01049/0.9874, allocations: 12.4 MB / 0.7371 GB, free: 62.48 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003615/0.9911, allocations: 286 kB / 0.7374 GB, free: 62.4 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006391/0.9917, allocations: 297.3 kB / 0.7377 GB, free: 62.36 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 413 * Number of states: 0 () * Number of discrete variables: 27 (fixedTranslation3.color[3],fixedTranslation3.color[2],fixedTranslation3.color[1],fixedTranslation2.color[3],fixedTranslation2.color[2],fixedTranslation2.color[1],fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],prismatic1.boxColor[3],prismatic1.boxColor[2],prismatic1.boxColor[1],revolute4.cylinderColor[3],revolute4.cylinderColor[2],revolute4.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (588): * Single equations (assignments): 577 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 9,(2,100.0%) 17,(1,100.0%) 1,(2,100.0%) 10} * Non-linear torn systems: 1 {2 10} Notification: Performance of prepare postOptimizeDAE: time 0.002819/0.9945, allocations: 1.795 MB / 0.7394 GB, free: 61.45 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004437/0.995, allocations: 282.6 kB / 0.7397 GB, free: 61.3 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004968/1, allocations: 3.39 MB / 0.743 GB, free: 60.03 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004114/1.004, allocations: 2.929 MB / 0.7459 GB, free: 59.02 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.407e-05/1.004, allocations: 7.219 kB / 0.7459 GB, free: 59.02 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.877e-05/1.004, allocations: 11.11 kB / 0.7459 GB, free: 59.02 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01602/1.02, allocations: 10.54 MB / 0.7562 GB, free: 50.81 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.118e-05/1.02, allocations: 4 kB / 0.7562 GB, free: 50.81 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009012/1.021, allocations: 268.9 kB / 0.7564 GB, free: 50.59 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001512/1.023, allocations: 0.727 MB / 0.7571 GB, free: 50.01 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001189/1.023, allocations: 44.55 kB / 0.7572 GB, free: 49.98 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01022/1.033, allocations: 12.27 MB / 0.7692 GB, free: 38.15 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.00489/1.038, allocations: 5.681 MB / 0.7747 GB, free: 32.73 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006215/1.044, allocations: 4.963 MB / 0.7796 GB, free: 28.34 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007653/1.045, allocations: 370.3 kB / 0.7799 GB, free: 27.97 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002891/1.045, allocations: 47.03 kB / 0.7799 GB, free: 27.93 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001005/1.046, allocations: 105.9 kB / 0.7801 GB, free: 27.86 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003081/1.047, allocations: 161.5 kB / 0.7802 GB, free: 27.77 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000114/1.047, allocations: 68.36 kB / 0.7803 GB, free: 27.7 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002452/1.049, allocations: 1.902 MB / 0.7821 GB, free: 26.11 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.7e-07/1.049, allocations: 4 kB / 0.7821 GB, free: 26.11 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.003778/1.053, allocations: 0.9919 MB / 0.7831 GB, free: 25.13 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 4 ($STATESET2.x,$STATESET1.x[2],$STATESET1.x[1],revolute4.phi) * 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 (158): * Single equations (assignments): 149 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 7,(2,100.0%) 15,(1,100.0%) 1,(3,88.9%) 13} * Non-linear torn systems: 1 {2 17} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003696/1.053, allocations: 181.8 kB / 0.7833 GB, free: 24.96 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.005756/1.059, allocations: 4.781 MB / 0.7879 GB, free: 20.66 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.576e-06/1.059, allocations: 0 / 0.7879 GB, free: 20.66 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002293/1.062, allocations: 2.152 MB / 0.79 GB, free: 18.68 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00299/1.065, allocations: 448.5 kB / 0.7905 GB, free: 18.32 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01169/1.076, allocations: 9.704 MB / 0.7999 GB, free: 8.688 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002591/1.079, allocations: 2.964 MB / 0.8028 GB, free: 5.707 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.003339/1.082, allocations: 1.393 MB / 0.8042 GB, free: 4.316 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005938/1.083, allocations: 223.4 kB / 0.8044 GB, free: 4.098 MB / 458.7 MB Notification: Performance of SimCode: time 9.02e-07/1.083, allocations: 0 / 0.8044 GB, free: 4.098 MB / 458.7 MB Notification: Performance of Templates: time 0.2619/1.345, allocations: 36.22 MB / 0.8398 GB, free: 110 MB / 474.7 MB make -j1 -f PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection.makefile (rm -f PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection.sim & ./PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection -abortSlowSimulation -alarm=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection.pipe 2>&1)