Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.MeasureDemo.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.MeasureDemo,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.MeasureDemo") translateModel(PlanarMechanics.Examples.MeasureDemo,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.MeasureDemo") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.007248/0.007248, allocations: 169.3 kB / 15.11 MB, free: 5.582 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.492/1.492, allocations: 223.2 MB / 239 MB, free: 1.793 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.0009567/0.0009568, allocations: 95.11 kB / 290.2 MB, free: 13.94 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.04081/0.04081, allocations: 8.942 MB / 350.3 MB, free: 2.07 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004954/0.0004954, allocations: 8.125 kB / 413.1 MB, free: 88.72 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09831/0.09884, allocations: 52.4 MB / 465.5 MB, free: 41.72 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3352/0.4341, allocations: 95.94 MB / 0.5483 GB, free: 16.42 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002652/0.4344, allocations: 81.06 kB / 0.5484 GB, free: 16.42 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1162/0.5507, allocations: 51.11 MB / 0.5983 GB, free: 15.9 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.547e-06/0.5507, allocations: 4 kB / 0.5983 GB, free: 15.89 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002006/0.5509, allocations: 62.53 kB / 0.5984 GB, free: 15.89 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: 869 * Number of variables: 869 Notification: Performance of Generate backend data structure: time 0.01332/0.5643, allocations: 3.029 MB / 0.6013 GB, free: 13.49 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.876e-05/0.5643, allocations: 8.031 kB / 0.6013 GB, free: 13.48 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001482/0.5658, allocations: 304.9 kB / 0.6016 GB, free: 13.18 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003297/0.5691, allocations: 1.195 MB / 0.6028 GB, free: 12.24 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000232/0.5694, allocations: 217.9 kB / 0.603 GB, free: 12.11 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001043/0.5704, allocations: 307.9 kB / 0.6033 GB, free: 11.91 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01183/0.5823, allocations: 4.839 MB / 0.608 GB, free: 7.883 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002059/0.5826, allocations: 43.42 kB / 0.608 GB, free: 7.844 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006583/0.5832, allocations: 132.3 kB / 0.6082 GB, free: 7.801 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005454/0.5838, allocations: 352 kB / 0.6085 GB, free: 7.496 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008628/0.5924, allocations: 3.628 MB / 0.612 GB, free: 4.906 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02911/0.6216, allocations: 21.75 MB / 0.6333 GB, free: 316 kB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005003/0.6266, allocations: 1.889 MB / 0.6351 GB, free: 14.31 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007158/0.6338, allocations: 5.506 MB / 0.6405 GB, free: 8.281 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.481e-05/0.6339, allocations: 43.56 kB / 0.6406 GB, free: 8.23 MB / 410.7 MB Notification: Performance of pre-optimization done (n=104): time 3.276e-06/0.6339, allocations: 0 / 0.6406 GB, free: 8.23 MB / 410.7 MB Notification: Performance of matching and sorting (n=142): time 0.02173/0.6556, allocations: 9.303 MB / 0.6496 GB, free: 14.83 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.466e-05/0.6557, allocations: 68.72 kB / 0.6497 GB, free: 14.75 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002424/0.6582, allocations: 1.575 MB / 0.6512 GB, free: 13.18 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001124/0.6583, allocations: 49.7 kB / 0.6513 GB, free: 13.13 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001209/0.6595, allocations: 1.736 MB / 0.653 GB, free: 11.37 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005542/0.6601, allocations: 0.5399 MB / 0.6535 GB, free: 10.82 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001478/0.6602, allocations: 79.94 kB / 0.6536 GB, free: 10.74 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003424/0.6606, allocations: 0.4989 MB / 0.6541 GB, free: 10.23 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001783/0.6624, allocations: 1.186 MB / 0.6552 GB, free: 9.047 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00317/0.6656, allocations: 3.367 MB / 0.6585 GB, free: 4.598 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002641/0.6682, allocations: 1.864 MB / 0.6603 GB, free: 2.734 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.083e-05/0.6683, allocations: 24 kB / 0.6604 GB, free: 2.711 MB / 426.7 MB Notification: Performance of matching and sorting (n=487) (initialization): time 0.00746/0.6757, allocations: 4.747 MB / 0.665 GB, free: 13.95 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.046e-05/0.6758, allocations: 37.88 kB / 0.665 GB, free: 13.92 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.67e-05/0.6759, allocations: 76 kB / 0.6651 GB, free: 13.84 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009151/0.6768, allocations: 372.8 kB / 0.6655 GB, free: 13.48 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002973/0.6798, allocations: 0.9006 MB / 0.6663 GB, free: 12.57 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005447/0.6853, allocations: 3.967 MB / 0.6702 GB, free: 8.465 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003227/0.6886, allocations: 207.7 kB / 0.6704 GB, free: 8.262 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004882/0.6891, allocations: 232 kB / 0.6706 GB, free: 8.035 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 352 * Number of states: 0 () * Number of discrete variables: 18 (revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (466): * Single equations (assignments): 465 * Array equations: 0 * 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%) 20} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001902/0.691, allocations: 0.9353 MB / 0.6716 GB, free: 7.09 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003582/0.6913, allocations: 189.6 kB / 0.6717 GB, free: 6.902 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004056/0.6954, allocations: 2.591 MB / 0.6743 GB, free: 4.293 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.163e-05/0.6954, allocations: 16 kB / 0.6743 GB, free: 4.277 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.584e-06/0.6954, allocations: 4 kB / 0.6743 GB, free: 4.273 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.323e-05/0.6955, allocations: 7.969 kB / 0.6743 GB, free: 4.266 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01214/0.7076, allocations: 6.343 MB / 0.6805 GB, free: 13.8 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.167e-05/0.7077, allocations: 4 kB / 0.6805 GB, free: 13.8 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001081/0.7088, allocations: 267.6 kB / 0.6807 GB, free: 13.54 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007035/0.7095, allocations: 259.4 kB / 0.681 GB, free: 13.28 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001179/0.7096, allocations: 32.16 kB / 0.681 GB, free: 13.25 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004038/0.7137, allocations: 3.28 MB / 0.6842 GB, free: 9.84 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.581e-06/0.7137, allocations: 4 kB / 0.6842 GB, free: 9.836 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005698/0.7194, allocations: 4.144 MB / 0.6883 GB, free: 5.543 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007236/0.7202, allocations: 242.7 kB / 0.6885 GB, free: 5.285 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004507/0.7206, allocations: 32 kB / 0.6885 GB, free: 5.254 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001089/0.7217, allocations: 107.8 kB / 0.6886 GB, free: 5.148 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002129/0.7219, allocations: 93.12 kB / 0.6887 GB, free: 5.055 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000103/0.7221, allocations: 36 kB / 0.6888 GB, free: 5.02 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002165/0.7242, allocations: 1.073 MB / 0.6898 GB, free: 3.957 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.5e-07/0.7242, allocations: 3.938 kB / 0.6898 GB, free: 3.953 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.003323/0.7276, allocations: 0.6406 MB / 0.6904 GB, free: 3.312 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 4 (revolute1.phi,revolute1.w,revolute2.phi,revolute2.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 (123): * Single equations (assignments): 122 * Array equations: 0 * 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%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003425/0.7279, allocations: 151 kB / 0.6906 GB, free: 3.156 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.2319/0.9598, allocations: 3.253 MB / 0.6938 GB, free: 118.7 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.303e-05/0.9599, allocations: 1.812 kB / 0.6938 GB, free: 118.7 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002226/0.9621, allocations: 1.27 MB / 0.695 GB, free: 118.6 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001984/0.9641, allocations: 374.9 kB / 0.6954 GB, free: 118.6 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009081/0.9732, allocations: 6.027 MB / 0.7012 GB, free: 116.1 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00158/0.9748, allocations: 1.878 MB / 0.7031 GB, free: 115.4 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002373/0.9772, allocations: 0.8648 MB / 0.7039 GB, free: 115.3 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004922/0.9777, allocations: 154.7 kB / 0.7041 GB, free: 115.3 MB / 458.7 MB Notification: Performance of SimCode: time 1.573e-06/0.9777, allocations: 0 / 0.7041 GB, free: 115.3 MB / 458.7 MB Notification: Performance of Templates: time 0.04789/1.026, allocations: 24.24 MB / 0.7277 GB, free: 114.1 MB / 458.7 MB make -j1 -f PlanarMechanics_PlanarMechanics.Examples.MeasureDemo.makefile (rm -f PlanarMechanics_PlanarMechanics.Examples.MeasureDemo.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.MeasureDemo.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.MeasureDemo.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.MeasureDemo.sim & ./PlanarMechanics_PlanarMechanics.Examples.MeasureDemo -abortSlowSimulation -alarm=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.MeasureDemo.pipe 2>&1)