Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.KinematicLoop.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0006974/0.0006974, allocations: 77.06 kB / 9.98 MB, free: 0.7031 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009638/0.001661, allocations: 444 kB / 10.41 MB, free: 276 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0007006/0.0007006, allocations: 157.1 kB / 11.33 MB, free: 2.84 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009384/0.001639, allocations: 475.6 kB / 11.79 MB, free: 2.371 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8941/0.8941, allocations: 177.2 MB / 189.7 MB, free: 5.234 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08299/0.9771, allocations: 53.66 MB / 243.4 MB, free: 15.5 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.7.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.7.0/package.mo): time 0.03838/0.03838, allocations: 7.183 MB / 251.3 MB, free: 7.766 MB / 250.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.007829/0.04621, allocations: 2.561 MB / 253.9 MB, free: 5.195 MB / 250.7 MB " [Timeout remaining time 180] Using package PlanarMechanics with version 1.7.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.7.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(PlanarMechanics.Examples.KinematicLoop,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.KinematicLoop") translateModel(PlanarMechanics.Examples.KinematicLoop,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.KinematicLoop") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.403e-06/1.403e-06, allocations: 0 / 255.2 MB, free: 3.91 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.062e-05/1.202e-05, allocations: 5.828 kB / 255.2 MB, free: 3.906 MB / 250.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.KinematicLoop): time 0.02139/0.0214, allocations: 10.12 MB / 265.3 MB, free: 9.738 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.007328/0.02873, allocations: 3.102 MB / 268.4 MB, free: 6.625 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004734/0.03347, allocations: 51.81 kB / 268.4 MB, free: 6.574 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007633/0.03423, allocations: 492.5 kB / 268.9 MB, free: 6.09 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005572/0.0398, allocations: 1.691 MB / 270.6 MB, free: 4.391 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003685/0.04017, allocations: 199.6 kB / 270.8 MB, free: 4.195 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002597/0.04277, allocations: 3.112 MB / 273.9 MB, free: 1.074 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1094/0.1522, allocations: 1.052 MB / 275 MB, free: 2.449 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002871/0.1551, allocations: 1.773 MB / 276.7 MB, free: 2.43 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002647/0.1577, allocations: 1.459 MB / 278.2 MB, free: 2.43 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008867/0.1586, allocations: 278.6 kB / 278.5 MB, free: 2.43 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001685/0.1603, allocations: 0.885 MB / 279.4 MB, free: 2.43 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001148/0.1614, allocations: 1.302 MB / 280.7 MB, free: 2.43 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001326/0.1627, allocations: 0.8309 MB / 281.5 MB, free: 2.285 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00369/0.1664, allocations: 3.534 MB / 285 MB, free: 1.676 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.012e-05/0.1664, allocations: 1.062 kB / 285 MB, free: 1.676 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.463e-06/0.1664, allocations: 0 / 285 MB, free: 1.676 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001425/0.1666, allocations: 0 / 285 MB, free: 1.676 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1376 * Number of variables: 1376 Notification: Performance of Generate backend data structure: time 0.007157/0.1737, allocations: 5.277 MB / 290.3 MB, free: 15.98 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.718e-05/0.1738, allocations: 12.14 kB / 290.3 MB, free: 15.98 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002726/0.1765, allocations: 1.094 MB / 291.4 MB, free: 15.95 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001326/0.1778, allocations: 1.149 MB / 292.6 MB, free: 15.55 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.925e-05/0.1779, allocations: 192 kB / 292.7 MB, free: 15.54 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002739/0.1782, allocations: 252.6 kB / 293 MB, free: 15.54 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004069/0.1823, allocations: 4.229 MB / 297.2 MB, free: 13.36 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.462e-05/0.1823, allocations: 34.03 kB / 297.3 MB, free: 13.34 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002233/0.1825, allocations: 115.8 kB / 297.4 MB, free: 13.26 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001517/0.1841, allocations: 1.79 MB / 299.2 MB, free: 11.48 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00383/0.1879, allocations: 2.363 MB / 301.5 MB, free: 9.273 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01569/0.2036, allocations: 22.68 MB / 324.2 MB, free: 2.953 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003059/0.2066, allocations: 1.498 MB / 325.7 MB, free: 1.508 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004375/0.2071, allocations: 369.2 kB / 326.1 MB, free: 1.152 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002891/0.21, allocations: 2.752 MB / 328.8 MB, free: 14.45 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.033e-05/0.21, allocations: 51.81 kB / 328.9 MB, free: 14.39 MB / 314.7 MB Notification: Performance of pre-optimization done (n=184): time 3.116e-06/0.21, allocations: 1.375 kB / 328.9 MB, free: 14.39 MB / 314.7 MB Notification: Performance of matching and sorting (n=238): time 0.008587/0.2186, allocations: 4.879 MB / 333.7 MB, free: 9.637 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.763e-05/0.2186, allocations: 73.41 kB / 333.8 MB, free: 9.551 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001422/0.22, allocations: 2.059 MB / 335.9 MB, free: 7.828 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 7.891e-05/0.2201, allocations: 61.7 kB / 335.9 MB, free: 7.762 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008974/0.221, allocations: 2.462 MB / 338.4 MB, free: 5.398 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004235/0.2214, allocations: 0.8861 MB / 339.3 MB, free: 4.559 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007696/0.2222, allocations: 0.9546 MB / 340.2 MB, free: 3.707 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.078e-05/0.2223, allocations: 355.9 kB / 340.6 MB, free: 3.379 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006354/0.2229, allocations: 0.5264 MB / 341.1 MB, free: 2.848 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001945/0.2249, allocations: 3.07 MB / 344.2 MB, free: 14.66 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004107/0.229, allocations: 4.609 MB / 348.8 MB, free: 8.957 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.139e-05/0.229, allocations: 24.56 kB / 348.8 MB, free: 8.934 MB / 330.7 MB Notification: Performance of matching and sorting (n=672) (initialization): time 0.004826/0.2339, allocations: 3.515 MB / 352.3 MB, free: 5.379 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.118e-05/0.2339, allocations: 44 kB / 352.4 MB, free: 5.336 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.692e-05/0.234, allocations: 96 kB / 352.5 MB, free: 5.242 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001171/0.2352, allocations: 0.505 MB / 353 MB, free: 4.727 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002499/0.2377, allocations: 1.174 MB / 354.1 MB, free: 3.551 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006411/0.2441, allocations: 8.036 MB / 362.2 MB, free: 11.22 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00194/0.246, allocations: 196.5 kB / 362.4 MB, free: 11.03 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003089/0.2463, allocations: 252 kB / 362.6 MB, free: 10.79 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 418 * 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 (596): * Single equations (assignments): 587 * 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,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.001386/0.2477, allocations: 0.5049 MB / 363.1 MB, free: 10.27 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002965/0.248, allocations: 210.8 kB / 363.3 MB, free: 10.07 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002042/0.2501, allocations: 1.301 MB / 364.6 MB, free: 8.742 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.257e-05/0.2501, allocations: 24 kB / 364.7 MB, free: 8.719 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.026e-05/0.2501, allocations: 8 kB / 364.7 MB, free: 8.711 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.667e-05/0.2501, allocations: 11.95 kB / 364.7 MB, free: 8.699 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006379/0.2565, allocations: 3.974 MB / 368.6 MB, free: 4.871 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.321e-05/0.2565, allocations: 12 kB / 368.7 MB, free: 4.859 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008886/0.2574, allocations: 319.6 kB / 369 MB, free: 4.547 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002697/0.2577, allocations: 228.5 kB / 369.2 MB, free: 4.328 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00107/0.2588, allocations: 463.6 kB / 369.6 MB, free: 3.863 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001003/0.2589, allocations: 39.98 kB / 369.7 MB, free: 3.824 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004766/0.2636, allocations: 6.653 MB / 376.3 MB, free: 12.86 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.264e-06/0.2636, allocations: 7.938 kB / 376.3 MB, free: 12.86 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002492/0.2661, allocations: 1.872 MB / 378.2 MB, free: 10.89 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002163/0.2664, allocations: 39.98 kB / 378.3 MB, free: 10.85 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005694/0.2669, allocations: 44 kB / 378.3 MB, free: 10.8 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002584/0.2672, allocations: 161.5 kB / 378.5 MB, free: 10.64 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001013/0.2673, allocations: 55.97 kB / 378.5 MB, free: 10.59 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0008315/0.2681, allocations: 0.744 MB / 379.3 MB, free: 9.824 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.3e-07/0.2681, allocations: 0 / 379.3 MB, free: 9.824 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.003057/0.2712, allocations: 0.8905 MB / 380.1 MB, free: 8.934 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * Number of states: 4 (revolute1.phi,revolute1.w,revolute4.phi,revolute4.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 (175): * Single equations (assignments): 166 * 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%), (2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,8)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003201/0.2715, allocations: 180.6 kB / 380.3 MB, free: 8.754 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.00324/0.2747, allocations: 2.828 MB / 383.2 MB, free: 5.895 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001505/0.2749, allocations: 70.56 kB / 383.2 MB, free: 5.816 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001343/0.2762, allocations: 1.289 MB / 384.5 MB, free: 4.473 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002015/0.2782, allocations: 2.322 MB / 386.8 MB, free: 1.812 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0123/0.2905, allocations: 6.874 MB / 393.7 MB, free: 10.8 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009467/0.2915, allocations: 1.076 MB / 394.8 MB, free: 9.695 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0008325/0.2923, allocations: 361.2 kB / 395.1 MB, free: 9.336 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005316/0.2929, allocations: 445.2 kB / 395.6 MB, free: 8.902 MB / 378.7 MB Notification: Performance of SimCode: time 1.032e-06/0.2929, allocations: 0 / 395.6 MB, free: 8.902 MB / 378.7 MB Notification: Performance of Templates: time 0.1417/0.4345, allocations: 29.9 MB / 425.5 MB, free: 118.9 MB / 394.7 MB " [Timeout remaining time 660] make -j1 -f PlanarMechanics_PlanarMechanics.Examples.KinematicLoop.makefile [Timeout 660] (rm -f PlanarMechanics_PlanarMechanics.Examples.KinematicLoop.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.KinematicLoop.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.KinematicLoop.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.KinematicLoop.sim & ./PlanarMechanics_PlanarMechanics.Examples.KinematicLoop -abortSlowSimulation -alarm=240 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.KinematicLoop.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.323798757046461]