Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.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.001041/0.001041, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001637/0.002678, allocations: 449.7 kB / 10.37 MB, free: 328 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.001081/0.001081, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001426/0.002507, allocations: 455.6 kB / 11.71 MB, free: 2.461 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.9504/0.9504, allocations: 177.2 MB / 189.6 MB, free: 5.312 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1313/1.082, allocations: 53.65 MB / 243.3 MB, free: 15.59 MB / 250.7 MB " [Timeout remaining time 179] 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(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.1.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.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.353e-06/1.353e-06, allocations: 0 / 244.5 MB, free: 14.35 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.688e-05/1.824e-05, allocations: 6.25 kB / 244.5 MB, free: 14.34 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.009592/0.009611, allocations: 12.86 MB / 257.4 MB, free: 1.426 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.007483/0.01709, allocations: 4.682 MB / 262.1 MB, free: 12.73 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001576/0.01867, allocations: 111.4 kB / 262.2 MB, free: 12.62 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004216/0.02289, allocations: 4.244 MB / 266.4 MB, free: 8.359 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00354/0.02643, allocations: 2.243 MB / 268.6 MB, free: 6.105 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001467/0.02789, allocations: 0.9552 MB / 269.6 MB, free: 5.148 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1252/0.1531, allocations: 6.35 MB / 276 MB, free: 2.375 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005634/0.1587, allocations: 4.284 MB / 280.2 MB, free: 2.109 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00809/0.1668, allocations: 4.028 MB / 284.3 MB, free: 2.004 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005437/0.1722, allocations: 2.975 MB / 287.2 MB, free: 1.82 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001634/0.1739, allocations: 483.3 kB / 287.7 MB, free: 1.82 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002884/0.1767, allocations: 1.338 MB / 289 MB, free: 1.789 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002485/0.1792, allocations: 2.402 MB / 291.5 MB, free: 1.176 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002483/0.1817, allocations: 1.399 MB / 292.9 MB, free: 0.9375 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00593/0.1876, allocations: 5.412 MB / 298.3 MB, free: 15.39 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.46e-05/0.1877, allocations: 2.188 kB / 298.3 MB, free: 15.39 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.863e-06/0.1877, allocations: 0 / 298.3 MB, free: 15.39 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0002941/0.188, allocations: 0 / 298.3 MB, free: 15.39 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.01008/0.198, allocations: 6.884 MB / 305.1 MB, free: 9.977 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.044e-05/0.1981, allocations: 8.031 kB / 305.2 MB, free: 9.969 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003873/0.202, allocations: 1.423 MB / 306.6 MB, free: 8.598 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00408/0.206, allocations: 2.644 MB / 309.2 MB, free: 6.105 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001591/0.2062, allocations: 298.6 kB / 309.5 MB, free: 5.852 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006103/0.2068, allocations: 428 kB / 309.9 MB, free: 5.473 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007911/0.2147, allocations: 5.782 MB / 315.7 MB, free: 15.43 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001238/0.2148, allocations: 52.88 kB / 315.8 MB, free: 15.4 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003253/0.2152, allocations: 189.6 kB / 316 MB, free: 15.25 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001464/0.2166, allocations: 1.778 MB / 317.7 MB, free: 13.5 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004906/0.2215, allocations: 2.865 MB / 320.6 MB, free: 10.84 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02732/0.2488, allocations: 34.62 MB / 355.2 MB, free: 8.328 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003839/0.2527, allocations: 1.688 MB / 356.9 MB, free: 6.668 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005151/0.2532, allocations: 409.1 kB / 357.3 MB, free: 6.266 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005598/0.2588, allocations: 4.075 MB / 361.4 MB, free: 2.242 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.613e-05/0.2588, allocations: 48.69 kB / 361.4 MB, free: 2.188 MB / 330.7 MB Notification: Performance of pre-optimization done (n=142): time 4.128e-06/0.2588, allocations: 0 / 361.4 MB, free: 2.188 MB / 330.7 MB Notification: Performance of matching and sorting (n=158): time 0.0122/0.271, allocations: 5.267 MB / 366.7 MB, free: 12.99 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.66e-05/0.2711, allocations: 145.5 kB / 366.8 MB, free: 12.82 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003405/0.2745, allocations: 3.71 MB / 370.5 MB, free: 9.742 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 8.656e-05/0.2746, allocations: 53.64 kB / 370.6 MB, free: 9.684 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001767/0.2764, allocations: 3.482 MB / 374.1 MB, free: 6.387 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004442/0.2768, allocations: 0.6668 MB / 374.7 MB, free: 5.754 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009382/0.2777, allocations: 1.24 MB / 376 MB, free: 4.652 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 7.07e-05/0.2778, allocations: 301.1 kB / 376.3 MB, free: 4.355 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001138/0.279, allocations: 0.7636 MB / 377 MB, free: 3.586 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002947/0.2819, allocations: 4.693 MB / 381.7 MB, free: 13.12 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004593/0.2865, allocations: 5.988 MB / 387.7 MB, free: 5.68 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.666e-05/0.2866, allocations: 40 kB / 387.8 MB, free: 5.641 MB / 362.7 MB Notification: Performance of matching and sorting (n=844) (initialization): time 0.00553/0.2921, allocations: 4.422 MB / 392.2 MB, free: 1.195 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.125e-05/0.2922, allocations: 64 kB / 392.2 MB, free: 1.133 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00012/0.2923, allocations: 144 kB / 392.4 MB, free: 0.9922 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007546/0.293, allocations: 396.4 kB / 392.8 MB, free: 0.6016 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0027/0.2957, allocations: 1.638 MB / 394.4 MB, free: 14.96 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002887/0.2986, allocations: 3.582 MB / 398 MB, free: 11.23 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003083/0.3017, allocations: 287.7 kB / 398.3 MB, free: 10.95 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000349/0.302, allocations: 341.9 kB / 398.6 MB, free: 10.62 MB / 378.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.001531/0.3036, allocations: 0.6622 MB / 399.3 MB, free: 9.945 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004965/0.3041, allocations: 243.7 kB / 399.5 MB, free: 9.707 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001135/0.3052, allocations: 0.8614 MB / 400.4 MB, free: 8.828 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.976e-05/0.3052, allocations: 25.88 kB / 400.4 MB, free: 8.805 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.422e-06/0.3052, allocations: 0 / 400.4 MB, free: 8.805 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.398e-06/0.3052, allocations: 7.984 kB / 400.4 MB, free: 8.797 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005634/0.3109, allocations: 4.226 MB / 404.6 MB, free: 4.793 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.694e-06/0.3109, allocations: 4 kB / 404.6 MB, free: 4.789 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007263/0.3116, allocations: 285.9 kB / 404.9 MB, free: 4.512 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005922/0.3122, allocations: 361.6 kB / 405.3 MB, free: 4.156 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007587/0.313, allocations: 423.2 kB / 405.7 MB, free: 3.73 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.11e-05/0.313, allocations: 35.98 kB / 405.7 MB, free: 3.695 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001812/0.3149, allocations: 2.775 MB / 408.5 MB, free: 0.7266 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.181e-06/0.3149, allocations: 8 kB / 408.5 MB, free: 0.7188 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001817/0.3167, allocations: 1.778 MB / 410.3 MB, free: 14.83 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003752/0.3171, allocations: 28 kB / 410.3 MB, free: 14.8 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000667/0.3177, allocations: 40.09 kB / 410.3 MB, free: 14.77 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001572/0.3179, allocations: 112.8 kB / 410.5 MB, free: 14.66 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.011e-05/0.3179, allocations: 40 kB / 410.5 MB, free: 14.62 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001302/0.3192, allocations: 1.393 MB / 411.9 MB, free: 13.21 MB / 394.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3192, allocations: 0 / 411.9 MB, free: 13.21 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003366/0.3226, allocations: 1.14 MB / 413 MB, free: 12.07 MB / 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.000345/0.323, allocations: 172 kB / 413.2 MB, free: 11.89 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.00314/0.3261, allocations: 2.714 MB / 415.9 MB, free: 9.176 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001858/0.3263, allocations: 118.7 kB / 416 MB, free: 9.051 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006397/0.3269, allocations: 0.6484 MB / 416.7 MB, free: 8.379 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00224/0.3292, allocations: 0.9965 MB / 417.7 MB, free: 7.391 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1316/0.4607, allocations: 8.817 MB / 426.5 MB, free: 110.6 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0021/0.4628, allocations: 1.472 MB / 428 MB, free: 110.4 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001762/0.4646, allocations: 0.5332 MB / 428.5 MB, free: 110.4 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000924/0.4655, allocations: 0.5947 MB / 429.1 MB, free: 110.3 MB / 394.7 MB Notification: Performance of SimCode: time 2.034e-06/0.4655, allocations: 3.078 kB / 429.1 MB, free: 110.3 MB / 394.7 MB Notification: Performance of Templates: time 0.04847/0.514, allocations: 32.65 MB / 461.7 MB, free: 98.92 MB / 394.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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.8024733094498515]