Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001263/0.001263, allocations: 84.73 kB / 21.5 MB, free: 2.988 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009715/0.0009715, allocations: 165.1 kB / 24.91 MB, free: 9.188 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9087/0.9087, allocations: 177 MB / 205.2 MB, free: 5.473 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.783e-06/1.783e-06, allocations: 0 / 273.4 MB, free: 1.258 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.36e-05/2.539e-05, allocations: 6.25 kB / 273.4 MB, free: 1.25 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.01045/0.01048, allocations: 12.71 MB / 286.1 MB, free: 4.477 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1129/0.1233, allocations: 4.636 MB / 290.7 MB, free: 14.43 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002019/0.1254, allocations: 110.2 kB / 290.8 MB, free: 14.43 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004643/0.13, allocations: 4.48 MB / 295.3 MB, free: 14.42 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003504/0.1335, allocations: 2.29 MB / 297.6 MB, free: 14.15 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001175/0.1347, allocations: 1.032 MB / 298.6 MB, free: 14.12 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004914/0.1396, allocations: 6.869 MB / 305.5 MB, free: 11.83 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003268/0.1429, allocations: 4.771 MB / 310.3 MB, free: 8.867 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003437/0.1463, allocations: 4.205 MB / 314.5 MB, free: 5.934 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0024/0.1487, allocations: 2.989 MB / 317.5 MB, free: 3.148 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006177/0.1493, allocations: 484 kB / 317.9 MB, free: 2.676 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001194/0.1505, allocations: 1.29 MB / 319.2 MB, free: 1.441 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001526/0.152, allocations: 2.703 MB / 321.9 MB, free: 14.82 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001307/0.1534, allocations: 1.72 MB / 323.7 MB, free: 13.18 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004258/0.1576, allocations: 5.841 MB / 329.5 MB, free: 7.684 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.1576, allocations: 4 kB / 329.5 MB, free: 7.68 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.262e-06/0.1576, allocations: 0 / 329.5 MB, free: 7.68 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.514e-05/0.1577, allocations: 3.188 kB / 329.5 MB, free: 7.68 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1731 * Number of variables: 1731 Notification: Performance of Generate backend data structure: time 0.005684/0.1634, allocations: 5.73 MB / 335.2 MB, free: 2.344 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.228e-05/0.1634, allocations: 19.98 kB / 335.3 MB, free: 2.324 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003352/0.1667, allocations: 1.43 MB / 336.7 MB, free: 0.9414 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003023/0.1698, allocations: 2.647 MB / 339.3 MB, free: 14.45 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000132/0.1699, allocations: 294.2 kB / 339.6 MB, free: 14.19 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004703/0.1704, allocations: 427.1 kB / 340 MB, free: 13.82 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00576/0.1761, allocations: 5.782 MB / 345.8 MB, free: 7.766 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.149e-05/0.1762, allocations: 50.38 kB / 345.9 MB, free: 7.742 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002954/0.1765, allocations: 181.3 kB / 346 MB, free: 7.598 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001384/0.1779, allocations: 1.778 MB / 347.8 MB, free: 5.824 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004205/0.1821, allocations: 2.86 MB / 350.7 MB, free: 2.93 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02229/0.2044, allocations: 34.62 MB / 385.3 MB, free: 15.06 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003542/0.2079, allocations: 1.721 MB / 387 MB, free: 13.3 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004731/0.2084, allocations: 414.8 kB / 387.4 MB, free: 12.88 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004821/0.2132, allocations: 4.102 MB / 391.5 MB, free: 8.758 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.709e-05/0.2133, allocations: 47.5 kB / 391.6 MB, free: 8.703 MB / 346.7 MB Notification: Performance of pre-optimization done (n=142): time 2.665e-06/0.2133, allocations: 0 / 391.6 MB, free: 8.703 MB / 346.7 MB Notification: Performance of matching and sorting (n=158): time 0.01104/0.2243, allocations: 5.346 MB / 396.9 MB, free: 3.32 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.447e-05/0.2244, allocations: 208.8 kB / 397.1 MB, free: 3.074 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002475/0.2268, allocations: 3.704 MB / 400.8 MB, free: 15.32 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.668e-05/0.2269, allocations: 45.7 kB / 400.9 MB, free: 15.27 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001416/0.2283, allocations: 3.492 MB / 404.4 MB, free: 11.75 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003274/0.2286, allocations: 0.663 MB / 405 MB, free: 11.08 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008912/0.2295, allocations: 1.239 MB / 406.3 MB, free: 9.828 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 5.655e-05/0.2296, allocations: 304.9 kB / 406.6 MB, free: 9.531 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001053/0.2306, allocations: 0.7636 MB / 407.3 MB, free: 8.762 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002493/0.2331, allocations: 4.699 MB / 412 MB, free: 2.039 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003581/0.2367, allocations: 5.979 MB / 418 MB, free: 10.04 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.931e-05/0.2368, allocations: 40 kB / 418.1 MB, free: 10 MB / 378.7 MB Notification: Performance of matching and sorting (n=844) (initialization): time 0.004161/0.2409, allocations: 4.415 MB / 422.5 MB, free: 5.559 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.364e-05/0.241, allocations: 75.27 kB / 422.5 MB, free: 5.488 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.794e-05/0.241, allocations: 140 kB / 422.7 MB, free: 5.352 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006393/0.2417, allocations: 409.5 kB / 423.1 MB, free: 4.945 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002183/0.2439, allocations: 1.447 MB / 424.5 MB, free: 3.496 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002151/0.246, allocations: 3.565 MB / 428.1 MB, free: 15.75 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001862/0.2479, allocations: 283.7 kB / 428.4 MB, free: 15.47 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002773/0.2482, allocations: 344 kB / 428.7 MB, free: 15.14 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 650 * Number of states: 0 () * Number of discrete variables: 47 (torque1.torqueArrow.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 (804): * Single equations (assignments): 799 * 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.0009775/0.2491, allocations: 0.6574 MB / 429.4 MB, free: 14.46 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002838/0.2494, allocations: 239.7 kB / 429.6 MB, free: 14.23 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001022/0.2504, allocations: 0.8679 MB / 430.5 MB, free: 13.34 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.416e-05/0.2505, allocations: 16 kB / 430.5 MB, free: 13.33 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/0.2505, allocations: 4 kB / 430.5 MB, free: 13.32 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.144e-05/0.2505, allocations: 11.91 kB / 430.5 MB, free: 13.31 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004649/0.2551, allocations: 4.221 MB / 434.7 MB, free: 8.969 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.692e-06/0.2551, allocations: 8 kB / 434.7 MB, free: 8.961 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005531/0.2557, allocations: 235.7 kB / 435 MB, free: 8.73 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006846/0.2564, allocations: 424.3 kB / 435.4 MB, free: 8.305 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.03e-05/0.2564, allocations: 35.94 kB / 435.4 MB, free: 8.27 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001545/0.258, allocations: 2.768 MB / 438.2 MB, free: 5.309 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.998e-06/0.258, allocations: 8 kB / 438.2 MB, free: 5.301 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00154/0.2595, allocations: 1.775 MB / 440 MB, free: 3.414 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003287/0.2598, allocations: 365.2 kB / 440.3 MB, free: 3.055 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002568/0.2601, allocations: 35.98 kB / 440.3 MB, free: 3.02 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005919/0.2607, allocations: 36 kB / 440.4 MB, free: 2.984 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001378/0.2608, allocations: 108.7 kB / 440.5 MB, free: 2.879 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.633e-05/0.2609, allocations: 43.98 kB / 440.5 MB, free: 2.836 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001067/0.262, allocations: 1.39 MB / 441.9 MB, free: 1.434 MB / 394.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.262, allocations: 0 / 441.9 MB, free: 1.434 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003316/0.2653, allocations: 1.137 MB / 443.1 MB, free: 304 kB / 394.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.0002852/0.2656, allocations: 172.1 kB / 443.2 MB, free: 124 kB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.09146/0.357, allocations: 2.701 MB / 445.9 MB, free: 130.4 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001687/0.3572, allocations: 104 kB / 446 MB, free: 130.4 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006622/0.3579, allocations: 0.6496 MB / 446.7 MB, free: 130.1 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002247/0.3601, allocations: 0.7341 MB / 447.4 MB, free: 130.1 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008741/0.3688, allocations: 8.609 MB / 456 MB, free: 126.5 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001101/0.3699, allocations: 1.471 MB / 457.5 MB, free: 126.3 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001082/0.371, allocations: 0.533 MB / 458 MB, free: 126.2 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006926/0.3717, allocations: 0.6006 MB / 458.6 MB, free: 126.1 MB / 394.7 MB Notification: Performance of SimCode: time 1.283e-06/0.3717, allocations: 0 / 458.6 MB, free: 126.1 MB / 394.7 MB Notification: Performance of Templates: time 0.04007/0.4118, allocations: 31.86 MB / 490.5 MB, free: 103.8 MB / 394.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.766852419357747]