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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/PlanarMechanics 1.6.0/package.mo", uses=false) Using package PlanarMechanics with version 1.6.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001104/0.001104, allocations: 103.4 kB / 16.35 MB, free: 5.828 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001142/0.001142, allocations: 190.5 kB / 17.29 MB, free: 5.484 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.335/1.335, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.0431/0.0431, allocations: 9.116 MB / 300.3 MB, free: 5.852 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001351/0.001351, allocations: 59.91 kB / 363.4 MB, free: 6.703 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2327/0.234, allocations: 51.43 MB / 414.8 MB, free: 25.02 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection): time 0.008083/0.2422, allocations: 10.49 MB / 425.3 MB, free: 14.49 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005544/0.2478, allocations: 2.984 MB / 428.3 MB, free: 11.5 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001269/0.2491, allocations: 39.94 kB / 428.3 MB, free: 11.46 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008553/0.25, allocations: 448.8 kB / 428.7 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002978/0.253, allocations: 1.579 MB / 430.3 MB, free: 9.438 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004894/0.2535, allocations: 223.6 kB / 430.5 MB, free: 9.219 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00252/0.256, allocations: 3.026 MB / 433.6 MB, free: 6.184 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009962/0.257, allocations: 1.186 MB / 434.8 MB, free: 4.977 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008178/0.2578, allocations: 1.089 MB / 435.8 MB, free: 3.883 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001212/0.2591, allocations: 1.537 MB / 437.4 MB, free: 2.34 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003101/0.2594, allocations: 284 kB / 437.7 MB, free: 2.062 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001178/0.2606, allocations: 0.8738 MB / 438.5 MB, free: 1.188 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008928/0.2615, allocations: 1.406 MB / 439.9 MB, free: 15.78 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001601/0.2631, allocations: 1.856 MB / 441.8 MB, free: 13.91 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005549/0.2686, allocations: 5.691 MB / 447.5 MB, free: 8.199 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.2687, allocations: 0 / 447.5 MB, free: 8.199 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.913e-06/0.2687, allocations: 0 / 447.5 MB, free: 8.199 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.892e-05/0.2688, allocations: 4 kB / 447.5 MB, free: 8.195 MB / 318.1 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.01201/0.2808, allocations: 5.725 MB / 453.2 MB, free: 2.402 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.081e-05/0.2808, allocations: 12.03 kB / 453.2 MB, free: 2.391 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006233/0.2871, allocations: 1.829 MB / 455.1 MB, free: 0.5547 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003173/0.2903, allocations: 1.564 MB / 456.6 MB, free: 14.95 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001414/0.2904, allocations: 188.6 kB / 456.8 MB, free: 14.76 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004661/0.2909, allocations: 255.7 kB / 457.1 MB, free: 14.51 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01346/0.3044, allocations: 9.311 MB / 466.4 MB, free: 4.707 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.426e-05/0.3045, allocations: 31.66 kB / 466.4 MB, free: 4.676 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003039/0.3048, allocations: 115.8 kB / 466.5 MB, free: 4.562 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003219/0.308, allocations: 2.076 MB / 468.6 MB, free: 2.484 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.017/0.325, allocations: 8.237 MB / 476.8 MB, free: 10.24 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04221/0.3673, allocations: 29.93 MB / 0.4949 GB, free: 11.66 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007248/0.3746, allocations: 3.033 MB / 0.4978 GB, free: 8.512 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001705/0.3763, allocations: 1.116 MB / 0.4989 GB, free: 7.395 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008659/0.385, allocations: 6.28 MB / 0.5051 GB, free: 460 kB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.498e-05/0.385, allocations: 43.88 kB / 0.5051 GB, free: 408 kB / 382.1 MB Notification: Performance of pre-optimization done (n=179): time 3.676e-06/0.385, allocations: 0 / 0.5051 GB, free: 408 kB / 382.1 MB Notification: Performance of matching and sorting (n=239): time 0.2031/0.5881, allocations: 12.32 MB / 0.5171 GB, free: 85.5 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.006372/0.5945, allocations: 6.941 MB / 0.5239 GB, free: 80.73 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003423/0.598, allocations: 3.067 MB / 0.5269 GB, free: 78.72 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002514/0.5982, allocations: 56.98 kB / 0.527 GB, free: 78.66 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009166/0.5992, allocations: 2.428 MB / 0.5293 GB, free: 76.49 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005188/0.5997, allocations: 0.8629 MB / 0.5302 GB, free: 75.73 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009635/0.6007, allocations: 1.002 MB / 0.5312 GB, free: 74.77 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.248e-05/0.6007, allocations: 301.1 kB / 0.5314 GB, free: 74.47 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002017/0.6028, allocations: 1.708 MB / 0.5331 GB, free: 72.75 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00287/0.6056, allocations: 4.341 MB / 0.5373 GB, free: 67.16 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005145/0.6108, allocations: 6.527 MB / 0.5437 GB, free: 59.38 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.515e-05/0.6108, allocations: 24 kB / 0.5437 GB, free: 59.36 MB / 382.1 MB Notification: Performance of matching and sorting (n=668) (initialization): time 0.008682/0.6195, allocations: 6.679 MB / 0.5503 GB, free: 52.67 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.527e-05/0.6196, allocations: 47.98 kB / 0.5503 GB, free: 52.62 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.304e-05/0.6197, allocations: 92 kB / 0.5504 GB, free: 52.53 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001413/0.6211, allocations: 0.7027 MB / 0.5511 GB, free: 51.82 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002736/0.6239, allocations: 1.068 MB / 0.5521 GB, free: 50.75 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00963/0.6335, allocations: 12.19 MB / 0.564 GB, free: 38.02 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004175/0.6377, allocations: 295.8 kB / 0.5643 GB, free: 37.73 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000582/0.6383, allocations: 296 kB / 0.5646 GB, free: 37.44 MB / 382.1 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 (590): * Single equations (assignments): 579 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,8,100.0%), (2,17,100.0%), (2,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,10)} Notification: Performance of prepare postOptimizeDAE: time 0.002203/0.6405, allocations: 1.792 MB / 0.5663 GB, free: 35.63 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003777/0.6409, allocations: 288.3 kB / 0.5666 GB, free: 35.35 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004736/0.6456, allocations: 3.495 MB / 0.57 GB, free: 31.82 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004088/0.6498, allocations: 3.036 MB / 0.573 GB, free: 28.77 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.23e-05/0.6498, allocations: 11.94 kB / 0.573 GB, free: 28.76 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.698e-05/0.6498, allocations: 7.969 kB / 0.573 GB, free: 28.75 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01462/0.6644, allocations: 10.59 MB / 0.5834 GB, free: 18.02 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.377e-06/0.6645, allocations: 7.922 kB / 0.5834 GB, free: 18.02 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008943/0.6654, allocations: 272 kB / 0.5836 GB, free: 17.75 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001565/0.6669, allocations: 0.7921 MB / 0.5844 GB, free: 16.95 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001072/0.6671, allocations: 51.97 kB / 0.5844 GB, free: 16.89 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009785/0.6769, allocations: 12.01 MB / 0.5962 GB, free: 4.348 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.005496/0.6824, allocations: 6.008 MB / 0.602 GB, free: 14.06 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007543/0.69, allocations: 5.097 MB / 0.607 GB, free: 8.887 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001007/0.691, allocations: 361.5 kB / 0.6074 GB, free: 8.512 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003492/0.6914, allocations: 40 kB / 0.6074 GB, free: 8.473 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001114/0.6925, allocations: 119.2 kB / 0.6075 GB, free: 8.359 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003972/0.6929, allocations: 165.5 kB / 0.6077 GB, free: 8.199 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001313/0.693, allocations: 64.17 kB / 0.6077 GB, free: 8.137 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.003015/0.696, allocations: 1.964 MB / 0.6096 GB, free: 6.168 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.6961, allocations: 7.938 kB / 0.6097 GB, free: 6.16 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.004663/0.7007, allocations: 0.9948 MB / 0.6106 GB, free: 5.168 MB / 398.1 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 (not torn): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,6,100.0%), (2,15,100.0%), (4,12,87.5%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,17)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005021/0.7012, allocations: 192.1 kB / 0.6108 GB, free: 4.977 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.008345/0.7096, allocations: 4.865 MB / 0.6156 GB, free: 56 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.882e-06/0.7096, allocations: 4.25 kB / 0.6156 GB, free: 52 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003373/0.713, allocations: 2.222 MB / 0.6177 GB, free: 13.77 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002542/0.7156, allocations: 470.4 kB / 0.6182 GB, free: 13.33 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01336/0.7289, allocations: 8.23 MB / 0.6262 GB, free: 5.023 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003244/0.7322, allocations: 2.957 MB / 0.6291 GB, free: 2.035 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.003147/0.7354, allocations: 1.386 MB / 0.6305 GB, free: 0.6445 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005517/0.736, allocations: 219.4 kB / 0.6307 GB, free: 440 kB / 414.1 MB Notification: Performance of SimCode: time 5.41e-07/0.736, allocations: 0 / 0.6307 GB, free: 440 kB / 414.1 MB Notification: Performance of Templates: time 0.06557/0.8015, allocations: 34.82 MB / 0.6647 GB, free: 13.87 MB / 462.1 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 -s cvode -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection.pipe 2>&1)