Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009553/0.0009553, allocations: 85.05 kB / 21.5 MB, free: 2.988 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001012/0.001012, allocations: 147.1 kB / 24.89 MB, free: 8.785 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8863/0.8863, allocations: 173.4 MB / 201.5 MB, free: 8.25 MB / 186.7 MB " [Timeout remaining time 179] 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(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|gearConstraint.actuatedRevolute_b.phi|gearConstraint.actuatedRevolute_b.w|inertia2.phi|inertia2.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint") translateModel(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|gearConstraint.actuatedRevolute_b.phi|gearConstraint.actuatedRevolute_b.w|inertia2.phi|inertia2.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.473e-06/1.473e-06, allocations: 0 / 268.5 MB, free: 9.77 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.17e-05/1.318e-05, allocations: 2.312 kB / 268.5 MB, free: 9.766 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.009681/0.009694, allocations: 12.88 MB / 281.4 MB, free: 12.84 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006948/0.01664, allocations: 4.642 MB / 286 MB, free: 8.188 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008683/0.01751, allocations: 107.4 kB / 286.1 MB, free: 8.082 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003758/0.02127, allocations: 4.438 MB / 290.6 MB, free: 3.629 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002867/0.02414, allocations: 2.309 MB / 292.9 MB, free: 1.309 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001226/0.02536, allocations: 1.037 MB / 293.9 MB, free: 276 kB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004638/0.03, allocations: 6.738 MB / 300.7 MB, free: 9.52 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003245/0.03325, allocations: 4.579 MB / 305.2 MB, free: 4.855 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003228/0.03647, allocations: 4.164 MB / 309.4 MB, free: 0.6836 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002486/0.03896, allocations: 3.009 MB / 312.4 MB, free: 13.67 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004595/0.03942, allocations: 484 kB / 312.9 MB, free: 13.2 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001356/0.04077, allocations: 1.358 MB / 314.3 MB, free: 11.84 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001516/0.04229, allocations: 2.747 MB / 317 MB, free: 9.082 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001145/0.04343, allocations: 1.749 MB / 318.7 MB, free: 7.328 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003782/0.04722, allocations: 5.952 MB / 324.7 MB, free: 1.355 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.04722, allocations: 4 kB / 324.7 MB, free: 1.352 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.283e-06/0.04722, allocations: 0 / 324.7 MB, free: 1.352 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.877e-05/0.04726, allocations: 0 / 324.7 MB, free: 1.352 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1760 * Number of variables: 1760 Notification: Performance of Generate backend data structure: time 0.005165/0.05243, allocations: 5.774 MB / 330.5 MB, free: 11.52 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.978e-05/0.05246, allocations: 12.03 kB / 330.5 MB, free: 11.5 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003317/0.05577, allocations: 1.437 MB / 331.9 MB, free: 10.07 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002793/0.05857, allocations: 2.654 MB / 334.6 MB, free: 7.359 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001357/0.0587, allocations: 296.2 kB / 334.9 MB, free: 7.07 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004647/0.05917, allocations: 432.6 kB / 335.3 MB, free: 6.648 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005588/0.06475, allocations: 5.849 MB / 341.1 MB, free: 44 kB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.09753/0.1623, allocations: 54.47 kB / 341.2 MB, free: 67.72 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008927/0.1632, allocations: 185.4 kB / 341.4 MB, free: 67.72 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001939/0.1651, allocations: 1.82 MB / 343.2 MB, free: 67.71 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005967/0.1711, allocations: 2.894 MB / 346.1 MB, free: 67.54 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01816/0.1892, allocations: 34.92 MB / 381 MB, free: 38.4 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003366/0.1926, allocations: 1.712 MB / 382.7 MB, free: 36.74 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004237/0.193, allocations: 432.4 kB / 383.1 MB, free: 36.33 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004018/0.1971, allocations: 4.111 MB / 387.3 MB, free: 32.39 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.419e-05/0.1971, allocations: 51.55 kB / 387.3 MB, free: 32.34 MB / 314.7 MB Notification: Performance of pre-optimization done (n=142): time 3.496e-06/0.1971, allocations: 7.156 kB / 387.3 MB, free: 32.33 MB / 314.7 MB Notification: Performance of matching and sorting (n=158): time 0.01007/0.2072, allocations: 5.35 MB / 392.7 MB, free: 27.34 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.289e-05/0.2072, allocations: 204.6 kB / 392.9 MB, free: 27.11 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001958/0.2091, allocations: 3.709 MB / 396.6 MB, free: 23.76 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.68e-05/0.2092, allocations: 53.69 kB / 396.6 MB, free: 23.7 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007701/0.21, allocations: 3.533 MB / 400.2 MB, free: 20.15 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002182/0.2102, allocations: 0.6551 MB / 400.8 MB, free: 19.49 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007354/0.2109, allocations: 1.251 MB / 402.1 MB, free: 18.23 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 2.375e-05/0.211, allocations: 309 kB / 402.4 MB, free: 17.92 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009539/0.2119, allocations: 0.7559 MB / 403.1 MB, free: 17.16 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002034/0.2139, allocations: 4.719 MB / 407.8 MB, free: 10.43 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003756/0.2177, allocations: 6.018 MB / 413.9 MB, free: 2.41 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.432e-05/0.2177, allocations: 40 kB / 413.9 MB, free: 2.371 MB / 314.7 MB Notification: Performance of matching and sorting (n=847) (initialization): time 0.004015/0.2217, allocations: 4.434 MB / 418.3 MB, free: 13.91 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.775e-05/0.2218, allocations: 68 kB / 418.4 MB, free: 13.84 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.365e-05/0.2219, allocations: 144 kB / 418.5 MB, free: 13.7 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006432/0.2225, allocations: 404.2 kB / 418.9 MB, free: 13.3 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002392/0.2249, allocations: 1.536 MB / 420.5 MB, free: 11.77 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002265/0.2272, allocations: 3.573 MB / 424 MB, free: 8.012 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001962/0.2291, allocations: 300.4 kB / 424.3 MB, free: 7.719 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000295/0.2294, allocations: 344 kB / 424.7 MB, free: 7.383 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 653 * Number of states: 0 () * Number of discrete variables: 47 (torque1.torqueArrow.arrowLine.twoHeadedArrow,torque1.torqueArrow.headAtOrigin,fixed.color[3],fixed.color[2],fixed.color[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueColor[3],torque1.torqueColor[2],torque1.torqueColor[1],cyl2.color[3],cyl2.color[2],cyl2.color[1],cyl2.body.sphereColor[3],cyl2.body.sphereColor[2],cyl2.body.sphereColor[1],cyl1.color[3],cyl1.color[2],cyl1.color[1],cyl1.body.sphereColor[3],cyl1.body.sphereColor[2],cyl1.body.sphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],gearConstraint.fixedTranslation2.color[3],gearConstraint.fixedTranslation2.color[2],gearConstraint.fixedTranslation2.color[1],gearConstraint.fixedTranslation1.color[3],gearConstraint.fixedTranslation1.color[2],gearConstraint.fixedTranslation1.color[1],gearConstraint.actuatedRevolute_b.cylinderColor[3],gearConstraint.actuatedRevolute_b.cylinderColor[2],gearConstraint.actuatedRevolute_b.cylinderColor[1],gearConstraint.actuatedRevolute_a.cylinderColor[3],gearConstraint.actuatedRevolute_a.cylinderColor[2],gearConstraint.actuatedRevolute_a.cylinderColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (807): * Single equations (assignments): 802 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,11,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001093/0.2305, allocations: 0.6611 MB / 425.3 MB, free: 6.707 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003017/0.2308, allocations: 235.7 kB / 425.6 MB, free: 6.477 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001053/0.2319, allocations: 0.871 MB / 426.4 MB, free: 5.586 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.459e-05/0.2319, allocations: 19.94 kB / 426.4 MB, free: 5.566 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.302e-06/0.2319, allocations: 4 kB / 426.5 MB, free: 5.562 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.488e-06/0.2319, allocations: 7.969 kB / 426.5 MB, free: 5.555 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004906/0.2368, allocations: 4.26 MB / 430.7 MB, free: 1.176 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.192e-06/0.2368, allocations: 4 kB / 430.7 MB, free: 1.172 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006681/0.2375, allocations: 276.2 kB / 431 MB, free: 0.9023 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006753/0.2382, allocations: 403.3 kB / 431.4 MB, free: 0.4961 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.501e-05/0.2382, allocations: 43.94 kB / 431.4 MB, free: 464 kB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001675/0.2399, allocations: 2.772 MB / 434.2 MB, free: 13.5 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.328e-06/0.2399, allocations: 7.938 kB / 434.2 MB, free: 13.49 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001588/0.2415, allocations: 1.775 MB / 436 MB, free: 11.6 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003341/0.2418, allocations: 373.2 kB / 436.4 MB, free: 11.23 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002387/0.2421, allocations: 32 kB / 436.4 MB, free: 11.2 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006178/0.2427, allocations: 39.98 kB / 436.4 MB, free: 11.16 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001497/0.2429, allocations: 108.7 kB / 436.5 MB, free: 11.06 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.66e-05/0.2429, allocations: 36 kB / 436.6 MB, free: 11.02 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001106/0.244, allocations: 1.402 MB / 438 MB, free: 9.609 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.244, allocations: 0 / 438 MB, free: 9.609 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.003122/0.2471, allocations: 1.164 MB / 439.1 MB, free: 8.445 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 4 (gearConstraint.actuatedRevolute_b.phi,gearConstraint.actuatedRevolute_b.w,inertia1.phi,inertia1.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 (130): * Single equations (assignments): 125 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,9,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000353/0.2475, allocations: 178.2 kB / 439.3 MB, free: 8.266 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002553/0.25, allocations: 2.713 MB / 442 MB, free: 5.551 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001515/0.2502, allocations: 104.2 kB / 442.1 MB, free: 5.441 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005847/0.2508, allocations: 0.6395 MB / 442.8 MB, free: 4.773 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001733/0.2525, allocations: 0.7557 MB / 443.5 MB, free: 4.027 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008868/0.2614, allocations: 8.741 MB / 452.3 MB, free: 11.12 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00116/0.2625, allocations: 1.478 MB / 453.7 MB, free: 9.617 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.001147/0.2637, allocations: 0.5435 MB / 454.3 MB, free: 9.07 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007808/0.2645, allocations: 0.5987 MB / 454.9 MB, free: 8.473 MB / 362.7 MB Notification: Performance of SimCode: time 1.613e-06/0.2645, allocations: 0 / 454.9 MB, free: 8.473 MB / 362.7 MB Notification: Performance of Templates: time 0.1445/0.409, allocations: 32.14 MB / 487 MB, free: 114.6 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Rotational3DEffects/GearConstraint/GearConstraint.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.5930826948024333]