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.001103/0.001103, allocations: 104.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.001125/0.001125, allocations: 193.2 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.376/1.376, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.04411/0.04411, allocations: 9.11 MB / 300.3 MB, free: 5.863 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002513/0.002513, allocations: 59.91 kB / 363.4 MB, free: 6.711 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2314/0.2339, allocations: 51.42 MB / 414.8 MB, free: 24.86 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection): time 0.00801/0.2419, allocations: 10.49 MB / 425.3 MB, free: 14.34 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005219/0.2472, allocations: 2.976 MB / 428.3 MB, free: 11.36 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001201/0.2484, allocations: 43.94 kB / 428.3 MB, free: 11.32 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000784/0.2492, allocations: 452.8 kB / 428.7 MB, free: 10.87 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002705/0.252, allocations: 1.579 MB / 430.3 MB, free: 9.285 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004213/0.2524, allocations: 223.6 kB / 430.5 MB, free: 9.066 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002126/0.2545, allocations: 3.026 MB / 433.6 MB, free: 6.035 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009569/0.2555, allocations: 1.178 MB / 434.7 MB, free: 4.836 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008305/0.2563, allocations: 1.101 MB / 435.8 MB, free: 3.73 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00114/0.2575, allocations: 1.541 MB / 437.4 MB, free: 2.184 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002725/0.2578, allocations: 283.9 kB / 437.7 MB, free: 1.906 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001012/0.2588, allocations: 0.8739 MB / 438.5 MB, free: 1.031 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007612/0.2596, allocations: 1.394 MB / 439.9 MB, free: 15.63 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001425/0.261, allocations: 1.864 MB / 441.8 MB, free: 13.76 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005121/0.2661, allocations: 5.683 MB / 447.5 MB, free: 8.059 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.2661, allocations: 0 / 447.5 MB, free: 8.059 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.2662, allocations: 0 / 447.5 MB, free: 8.059 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001334/0.2663, allocations: 0 / 447.5 MB, free: 8.059 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.01227/0.2786, allocations: 5.737 MB / 453.2 MB, free: 2.254 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.439e-05/0.2786, allocations: 8.031 kB / 453.2 MB, free: 2.246 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006245/0.2849, allocations: 1.829 MB / 455.1 MB, free: 420 kB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003236/0.2881, allocations: 1.572 MB / 456.6 MB, free: 14.79 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001523/0.2883, allocations: 184.6 kB / 456.8 MB, free: 14.61 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004754/0.2888, allocations: 251.8 kB / 457.1 MB, free: 14.36 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01301/0.3018, allocations: 9.303 MB / 466.4 MB, free: 4.57 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.132e-05/0.3019, allocations: 31.66 kB / 466.4 MB, free: 4.539 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002936/0.3022, allocations: 115.8 kB / 466.5 MB, free: 4.426 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002796/0.305, allocations: 2.076 MB / 468.6 MB, free: 2.348 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0134/0.3184, allocations: 8.249 MB / 476.8 MB, free: 10.09 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03583/0.3543, allocations: 29.92 MB / 0.4949 GB, free: 11.52 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007391/0.3617, allocations: 3.037 MB / 0.4978 GB, free: 8.363 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001614/0.3634, allocations: 1.112 MB / 0.4989 GB, free: 7.25 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008034/0.3714, allocations: 6.284 MB / 0.5051 GB, free: 308 kB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.174e-05/0.3715, allocations: 47.88 kB / 0.5051 GB, free: 252 kB / 382.1 MB Notification: Performance of pre-optimization done (n=179): time 3.145e-06/0.3715, allocations: 4 kB / 0.5051 GB, free: 248 kB / 382.1 MB Notification: Performance of matching and sorting (n=239): time 0.2262/0.5977, allocations: 12.32 MB / 0.5171 GB, free: 86 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.006601/0.6044, allocations: 6.936 MB / 0.5239 GB, free: 81.23 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003846/0.6082, allocations: 3.067 MB / 0.5269 GB, free: 79.26 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003186/0.6086, allocations: 57.7 kB / 0.527 GB, free: 79.2 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001099/0.6097, allocations: 2.426 MB / 0.5293 GB, free: 77.03 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006133/0.6103, allocations: 0.8634 MB / 0.5302 GB, free: 76.27 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001028/0.6113, allocations: 1.002 MB / 0.5312 GB, free: 75.32 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.352e-05/0.6114, allocations: 305.1 kB / 0.5314 GB, free: 75.03 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002101/0.6135, allocations: 1.708 MB / 0.5331 GB, free: 73.31 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002986/0.6165, allocations: 4.333 MB / 0.5373 GB, free: 67.73 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005376/0.6219, allocations: 6.533 MB / 0.5437 GB, free: 59.94 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.321e-05/0.6219, allocations: 28 kB / 0.5438 GB, free: 59.91 MB / 382.1 MB Notification: Performance of matching and sorting (n=668) (initialization): time 0.008885/0.6308, allocations: 6.681 MB / 0.5503 GB, free: 53.22 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.861e-05/0.6309, allocations: 44 kB / 0.5503 GB, free: 53.18 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.06e-05/0.631, allocations: 88 kB / 0.5504 GB, free: 53.09 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001507/0.6325, allocations: 0.7062 MB / 0.5511 GB, free: 52.38 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002803/0.6353, allocations: 1.076 MB / 0.5521 GB, free: 51.3 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01027/0.6456, allocations: 12.18 MB / 0.564 GB, free: 38.57 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003939/0.6495, allocations: 295.8 kB / 0.5643 GB, free: 38.29 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003947/0.65, allocations: 303.3 kB / 0.5646 GB, free: 37.99 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.002567/0.6525, allocations: 1.792 MB / 0.5664 GB, free: 36.19 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003842/0.6529, allocations: 280.3 kB / 0.5666 GB, free: 35.91 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004906/0.6578, allocations: 3.498 MB / 0.57 GB, free: 32.38 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004094/0.6619, allocations: 3.032 MB / 0.573 GB, free: 29.33 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.099e-05/0.662, allocations: 4.109 kB / 0.573 GB, free: 29.33 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.626e-05/0.662, allocations: 19.89 kB / 0.573 GB, free: 29.31 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01529/0.6773, allocations: 10.59 MB / 0.5834 GB, free: 18.58 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.017e-05/0.6773, allocations: 4 kB / 0.5834 GB, free: 18.57 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009161/0.6783, allocations: 271.5 kB / 0.5836 GB, free: 18.31 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0017/0.68, allocations: 0.8014 MB / 0.5844 GB, free: 17.5 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001178/0.6801, allocations: 39.98 kB / 0.5844 GB, free: 17.46 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01033/0.6904, allocations: 12 MB / 0.5962 GB, free: 4.914 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.005431/0.6959, allocations: 6.013 MB / 0.602 GB, free: 14.62 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007883/0.7038, allocations: 5.097 MB / 0.607 GB, free: 9.449 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009988/0.7048, allocations: 361.5 kB / 0.6074 GB, free: 9.074 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003464/0.7052, allocations: 40 kB / 0.6074 GB, free: 9.035 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001124/0.7063, allocations: 115.8 kB / 0.6075 GB, free: 8.922 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003556/0.7067, allocations: 169.5 kB / 0.6077 GB, free: 8.758 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001428/0.7068, allocations: 71.27 kB / 0.6077 GB, free: 8.691 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002894/0.7097, allocations: 1.961 MB / 0.6097 GB, free: 6.727 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.693e-06/0.7097, allocations: 0 / 0.6097 GB, free: 6.727 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.004268/0.714, allocations: 1.004 MB / 0.6106 GB, free: 5.723 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.0004485/0.7145, allocations: 186.8 kB / 0.6108 GB, free: 5.531 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.007911/0.7224, allocations: 4.873 MB / 0.6156 GB, free: 0.5977 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 7.113e-06/0.7224, allocations: 0 / 0.6156 GB, free: 0.5977 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003293/0.7257, allocations: 2.223 MB / 0.6177 GB, free: 14.31 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002289/0.728, allocations: 470.4 kB / 0.6182 GB, free: 13.88 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01351/0.7416, allocations: 8.23 MB / 0.6262 GB, free: 5.562 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003291/0.7449, allocations: 2.961 MB / 0.6291 GB, free: 2.57 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.003196/0.7481, allocations: 1.374 MB / 0.6305 GB, free: 1.191 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005621/0.7487, allocations: 227.3 kB / 0.6307 GB, free: 0.9688 MB / 414.1 MB Notification: Performance of SimCode: time 7.21e-07/0.7487, allocations: 0 / 0.6307 GB, free: 0.9688 MB / 414.1 MB Notification: Performance of Templates: time 0.06833/0.817, allocations: 34.81 MB / 0.6647 GB, free: 14.43 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 gbode -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection.pipe 2>&1)