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.001318/0.001318, allocations: 79.97 kB / 19.18 MB, free: 2.527 MB / 14.72 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.001475/0.001475, allocations: 165.5 kB / 22.46 MB, free: 5.355 MB / 14.72 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 1.403/1.403, allocations: 177.1 MB / 202.8 MB, free: 9.168 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.04877/0.04877, allocations: 7.12 MB / 266.3 MB, free: 9.766 MB / 254.1 MB " [Timeout remaining time 180] 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.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.322e-06/1.322e-06, allocations: 3.938 kB / 392.9 MB, free: 9.223 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.458e-05/2.59e-05, allocations: 6.281 kB / 392.9 MB, free: 9.215 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.KinematicLoop): time 0.01242/0.01245, allocations: 9.171 MB / 402.1 MB, free: 0 / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006969/0.01942, allocations: 2.885 MB / 404.9 MB, free: 13.11 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001149/0.02057, allocations: 47.81 kB / 405 MB, free: 13.06 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001082/0.02165, allocations: 472.6 kB / 405.4 MB, free: 12.59 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00407/0.02572, allocations: 1.683 MB / 407.1 MB, free: 10.9 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005648/0.02628, allocations: 223.4 kB / 407.3 MB, free: 10.68 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004061/0.03035, allocations: 3.074 MB / 410.4 MB, free: 7.602 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001585/0.03193, allocations: 0.9834 MB / 411.4 MB, free: 6.598 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002343/0.03427, allocations: 1.679 MB / 413.1 MB, free: 4.914 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002414/0.03669, allocations: 1.504 MB / 414.6 MB, free: 3.406 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004575/0.03715, allocations: 276 kB / 414.9 MB, free: 3.137 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001646/0.03879, allocations: 0.8699 MB / 415.7 MB, free: 2.266 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001648/0.04044, allocations: 1.464 MB / 417.2 MB, free: 0.7969 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001529/0.04197, allocations: 0.9928 MB / 418.2 MB, free: 15.8 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007463/0.04943, allocations: 5.669 MB / 423.9 MB, free: 10.11 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.64e-06/0.04944, allocations: 0 / 423.9 MB, free: 10.11 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.04944, allocations: 0 / 423.9 MB, free: 10.11 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001175/0.04956, allocations: 0 / 423.9 MB, free: 10.11 MB / 350.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.01477/0.06433, allocations: 5.799 MB / 429.7 MB, free: 4.258 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.192e-05/0.06437, allocations: 12.62 kB / 429.7 MB, free: 4.246 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007736/0.0721, allocations: 1.929 MB / 431.6 MB, free: 2.312 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003361/0.07546, allocations: 1.5 MB / 433.1 MB, free: 0.7812 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001968/0.07566, allocations: 196.8 kB / 433.3 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005885/0.07625, allocations: 243.8 kB / 433.5 MB, free: 356 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01639/0.09264, allocations: 9.299 MB / 442.8 MB, free: 6.562 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.9e-05/0.09273, allocations: 31.73 kB / 442.9 MB, free: 6.531 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003727/0.0931, allocations: 111.9 kB / 443 MB, free: 6.422 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003719/0.09682, allocations: 2.076 MB / 445 MB, free: 4.344 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1937/0.2905, allocations: 8.175 MB / 453.2 MB, free: 56.83 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03583/0.3263, allocations: 27.39 MB / 480.6 MB, free: 38.25 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006582/0.3329, allocations: 2.606 MB / 483.2 MB, free: 37.08 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001324/0.3342, allocations: 1.029 MB / 484.2 MB, free: 36.05 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005355/0.3396, allocations: 3.382 MB / 487.6 MB, free: 32.77 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.122e-05/0.3396, allocations: 51.81 kB / 487.7 MB, free: 32.71 MB / 366.1 MB Notification: Performance of pre-optimization done (n=179): time 4.458e-06/0.3396, allocations: 0 / 487.7 MB, free: 32.71 MB / 366.1 MB Notification: Performance of matching and sorting (n=233): time 0.01951/0.3591, allocations: 8.324 MB / 496 MB, free: 24.61 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.693e-05/0.3592, allocations: 73.41 kB / 496.1 MB, free: 24.53 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002576/0.3617, allocations: 2.583 MB / 498.7 MB, free: 21.91 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001096/0.3619, allocations: 53.7 kB / 498.7 MB, free: 21.85 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009382/0.3628, allocations: 2.536 MB / 0.4895 GB, free: 19.32 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004357/0.3632, allocations: 0.8636 MB / 0.4903 GB, free: 18.46 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009654/0.3642, allocations: 0.9872 MB / 0.4913 GB, free: 17.47 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 7.112e-05/0.3643, allocations: 353.9 kB / 0.4916 GB, free: 17.12 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001939/0.3662, allocations: 1.638 MB / 0.4932 GB, free: 15.48 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002692/0.3689, allocations: 4.244 MB / 0.4974 GB, free: 9.949 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005427/0.3743, allocations: 6.378 MB / 0.5036 GB, free: 2.316 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.175e-05/0.3744, allocations: 27.94 kB / 0.5036 GB, free: 2.289 MB / 366.1 MB Notification: Performance of matching and sorting (n=659) (initialization): time 0.0107/0.3851, allocations: 6.419 MB / 0.5099 GB, free: 11.85 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.543e-05/0.3851, allocations: 55.19 kB / 0.51 GB, free: 11.8 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001164/0.3852, allocations: 88 kB / 0.51 GB, free: 11.71 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001927/0.3872, allocations: 0.7008 MB / 0.5107 GB, free: 11.01 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00316/0.3903, allocations: 1.057 MB / 0.5118 GB, free: 9.949 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01449/0.4048, allocations: 11.55 MB / 0.523 GB, free: 13.99 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003151/0.408, allocations: 267.9 kB / 0.5233 GB, free: 13.73 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004817/0.4085, allocations: 288 kB / 0.5236 GB, free: 13.45 MB / 398.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 (583): * Single equations (assignments): 574 * 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.002888/0.4113, allocations: 1.791 MB / 0.5253 GB, free: 11.65 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004314/0.4118, allocations: 250.3 kB / 0.5256 GB, free: 11.4 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005645/0.4174, allocations: 3.061 MB / 0.5286 GB, free: 8.316 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000115/0.4175, allocations: 35.98 kB / 0.5286 GB, free: 8.281 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.68e-05/0.4175, allocations: 4 kB / 0.5286 GB, free: 8.277 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.128e-05/0.4176, allocations: 7.969 kB / 0.5286 GB, free: 8.27 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01345/0.431, allocations: 6.969 MB / 0.5354 GB, free: 1.199 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-05/0.431, allocations: 4 kB / 0.5354 GB, free: 1.195 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00119/0.4322, allocations: 299.5 kB / 0.5357 GB, free: 0.9023 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001479/0.4337, allocations: 0.5335 MB / 0.5362 GB, free: 364 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001227/0.4338, allocations: 43.98 kB / 0.5363 GB, free: 320 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01131/0.4451, allocations: 9.437 MB / 0.5455 GB, free: 6.488 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.35e-06/0.4451, allocations: 4 kB / 0.5455 GB, free: 6.484 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007992/0.4531, allocations: 4.614 MB / 0.55 GB, free: 1.797 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006777/0.4538, allocations: 230.4 kB / 0.5502 GB, free: 1.57 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003063/0.4541, allocations: 36 kB / 0.5502 GB, free: 1.535 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009894/0.4551, allocations: 103.9 kB / 0.5503 GB, free: 1.434 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003346/0.4554, allocations: 157.6 kB / 0.5505 GB, free: 1.277 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001449/0.4556, allocations: 71.11 kB / 0.5506 GB, free: 1.211 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002411/0.458, allocations: 1.493 MB / 0.552 GB, free: 15.7 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.458, allocations: 0 / 0.552 GB, free: 15.7 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.00395/0.4619, allocations: 0.8827 MB / 0.5529 GB, free: 14.82 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * 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 (170): * Single equations (assignments): 161 * 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.0004214/0.4624, allocations: 178.6 kB / 0.553 GB, free: 14.64 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.007607/0.47, allocations: 4.465 MB / 0.5574 GB, free: 10.14 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.771e-06/0.47, allocations: 4.562 kB / 0.5574 GB, free: 10.13 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002862/0.4728, allocations: 1.807 MB / 0.5592 GB, free: 8.27 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001811/0.4747, allocations: 319.7 kB / 0.5595 GB, free: 7.957 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01377/0.4884, allocations: 7.874 MB / 0.5672 GB, free: 12 kB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003487/0.4919, allocations: 2.373 MB / 0.5695 GB, free: 13.61 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003172/0.4951, allocations: 1.327 MB / 0.5708 GB, free: 12.27 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005035/0.4956, allocations: 184.5 kB / 0.571 GB, free: 12.09 MB / 446.1 MB Notification: Performance of SimCode: time 7.12e-07/0.4956, allocations: 0 / 0.571 GB, free: 12.09 MB / 446.1 MB Notification: Performance of Templates: time 0.05822/0.5538, allocations: 26.57 MB / 0.5969 GB, free: 1.875 MB / 462.1 MB " [Timeout remaining time 659] 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=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.KinematicLoop.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.9343308210372925] Failed to read output from testmodel.py, exit status != 0: 0.5628133453428745 0.5778633550000001 0.525209165 Calling exit ...