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.00185/0.00185, allocations: 107.5 kB / 20.43 MB, free: 1.066 MB / 14.72 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.001973/0.001973, allocations: 191.7 kB / 23.7 MB, free: 4.191 MB / 14.72 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 1.475/1.475, allocations: 225.7 MB / 252.5 MB, free: 12.86 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001836/0.001836, allocations: 55.91 kB / 370.9 MB, free: 9.184 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2445/0.2464, allocations: 52.18 MB / 423.1 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.01622/0.2626, allocations: 11.86 MB / 434.9 MB, free: 2.566 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.009693/0.2723, allocations: 4.357 MB / 439.3 MB, free: 14.2 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001856/0.2741, allocations: 111.4 kB / 439.4 MB, free: 14.09 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007704/0.2818, allocations: 4.089 MB / 443.5 MB, free: 9.984 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00564/0.2875, allocations: 2.253 MB / 445.7 MB, free: 7.723 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002106/0.2896, allocations: 0.9321 MB / 446.7 MB, free: 6.789 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.008393/0.298, allocations: 6.072 MB / 452.7 MB, free: 0.707 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005231/0.3032, allocations: 4.02 MB / 456.8 MB, free: 12.62 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003602/0.3068, allocations: 2.181 MB / 458.9 MB, free: 10.43 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004477/0.3113, allocations: 2.838 MB / 461.8 MB, free: 7.586 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00102/0.3123, allocations: 476 kB / 462.2 MB, free: 7.121 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002645/0.315, allocations: 1.26 MB / 463.5 MB, free: 5.859 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002968/0.3179, allocations: 2.602 MB / 466.1 MB, free: 3.25 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00351/0.3214, allocations: 2.171 MB / 468.3 MB, free: 1.066 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01192/0.3334, allocations: 9.25 MB / 477.5 MB, free: 7.781 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.997e-06/0.3334, allocations: 0 / 477.5 MB, free: 7.781 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.3334, allocations: 0 / 477.5 MB, free: 7.781 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003322/0.3337, allocations: 0 / 477.5 MB, free: 7.781 MB / 382.1 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.016/0.3497, allocations: 6.21 MB / 483.7 MB, free: 1.508 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.978e-05/0.3497, allocations: 11.97 kB / 483.8 MB, free: 1.496 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01217/0.3619, allocations: 2.618 MB / 486.4 MB, free: 14.87 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009817/0.3717, allocations: 3.808 MB / 490.2 MB, free: 11.02 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002877/0.372, allocations: 308.1 kB / 490.5 MB, free: 10.71 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001476/0.3735, allocations: 435.8 kB / 490.9 MB, free: 10.29 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02133/0.3948, allocations: 11.79 MB / 0.4909 GB, free: 13.75 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001691/0.395, allocations: 63.52 kB / 0.491 GB, free: 13.69 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00054/0.3955, allocations: 183.9 kB / 0.4911 GB, free: 13.51 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003752/0.3993, allocations: 2.089 MB / 0.4932 GB, free: 11.41 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02147/0.4208, allocations: 10.07 MB / 0.503 GB, free: 1.324 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2778/0.6985, allocations: 41.87 MB / 0.5439 GB, free: 78.69 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009557/0.7081, allocations: 3.765 MB / 0.5476 GB, free: 78.59 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002398/0.7105, allocations: 2.3 MB / 0.5498 GB, free: 78.07 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01339/0.7239, allocations: 8.757 MB / 0.5584 GB, free: 74.31 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.289e-05/0.7239, allocations: 61.22 kB / 0.5584 GB, free: 74.26 MB / 446.1 MB Notification: Performance of pre-optimization done (n=171): time 6.913e-06/0.7239, allocations: 0 / 0.5584 GB, free: 74.26 MB / 446.1 MB Notification: Performance of matching and sorting (n=197): time 0.04674/0.7707, allocations: 20.06 MB / 0.578 GB, free: 57.86 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.924e-05/0.7707, allocations: 200.7 kB / 0.5782 GB, free: 57.62 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004523/0.7753, allocations: 4.451 MB / 0.5826 GB, free: 53.31 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003111/0.7756, allocations: 57.7 kB / 0.5826 GB, free: 53.25 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001416/0.777, allocations: 3.755 MB / 0.5863 GB, free: 49.71 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005742/0.7776, allocations: 0.7922 MB / 0.5871 GB, free: 48.93 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001267/0.7788, allocations: 1.353 MB / 0.5884 GB, free: 47.57 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.111e-05/0.7789, allocations: 307.9 kB / 0.5887 GB, free: 47.27 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002644/0.7815, allocations: 2.403 MB / 0.591 GB, free: 44.86 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003814/0.7853, allocations: 6.322 MB / 0.5972 GB, free: 36.67 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007687/0.793, allocations: 9.32 MB / 0.6063 GB, free: 25.61 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001097/0.7931, allocations: 36.75 kB / 0.6063 GB, free: 25.57 MB / 446.1 MB Notification: Performance of matching and sorting (n=858) (initialization): time 0.01501/0.8081, allocations: 9.765 MB / 0.6159 GB, free: 15.79 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001152/0.8083, allocations: 64 kB / 0.6159 GB, free: 15.73 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001523/0.8084, allocations: 136 kB / 0.6161 GB, free: 15.6 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004042/0.8125, allocations: 1.613 MB / 0.6176 GB, free: 13.98 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004538/0.817, allocations: 1.497 MB / 0.6191 GB, free: 12.48 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01045/0.8274, allocations: 9.892 MB / 0.6288 GB, free: 2.391 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004755/0.8322, allocations: 359.5 kB / 0.6291 GB, free: 2.039 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007282/0.8329, allocations: 407.9 kB / 0.6295 GB, free: 1.641 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 617 * 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 (796): * Single equations (assignments): 791 * 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 {(3,31,77.8%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003434/0.8364, allocations: 2.485 MB / 0.6319 GB, free: 15.15 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008775/0.8372, allocations: 385.4 kB / 0.6323 GB, free: 14.77 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00847/0.8457, allocations: 4.181 MB / 0.6364 GB, free: 10.57 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.443e-05/0.8457, allocations: 20 kB / 0.6364 GB, free: 10.55 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.818e-05/0.8458, allocations: 8 kB / 0.6364 GB, free: 10.55 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.842e-05/0.8458, allocations: 19.84 kB / 0.6364 GB, free: 10.53 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01898/0.8648, allocations: 8.34 MB / 0.6446 GB, free: 2.176 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.591e-05/0.8648, allocations: 0 / 0.6446 GB, free: 2.176 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001563/0.8663, allocations: 299.5 kB / 0.6449 GB, free: 1.883 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004255/0.8706, allocations: 1.358 MB / 0.6462 GB, free: 0.5195 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002402/0.8708, allocations: 43.92 kB / 0.6462 GB, free: 488 kB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01303/0.8839, allocations: 9.048 MB / 0.6551 GB, free: 7.227 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.8839, allocations: 0 / 0.6551 GB, free: 7.227 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01239/0.8963, allocations: 6.936 MB / 0.6618 GB, free: 264 kB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001305/0.8976, allocations: 353.4 kB / 0.6622 GB, free: 15.91 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004938/0.8981, allocations: 39.88 kB / 0.6622 GB, free: 15.87 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001584/0.8997, allocations: 111.8 kB / 0.6623 GB, free: 15.76 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004522/0.9001, allocations: 132.9 kB / 0.6624 GB, free: 15.63 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001552/0.9003, allocations: 55.83 kB / 0.6625 GB, free: 15.58 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.004556/0.9048, allocations: 2.612 MB / 0.665 GB, free: 12.96 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.9048, allocations: 0 / 0.665 GB, free: 12.96 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.00591/0.9107, allocations: 1.195 MB / 0.6662 GB, free: 11.77 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (147): * Single equations (assignments): 142 * 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,27,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.0004925/0.9112, allocations: 167.1 kB / 0.6664 GB, free: 11.59 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01018/0.9214, allocations: 5.743 MB / 0.672 GB, free: 5.855 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 7.925e-06/0.9214, allocations: 4 kB / 0.672 GB, free: 5.852 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003415/0.9248, allocations: 1.879 MB / 0.6738 GB, free: 3.945 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003014/0.9278, allocations: 498.7 kB / 0.6743 GB, free: 3.469 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02069/0.9485, allocations: 11.35 MB / 0.6854 GB, free: 8.07 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004685/0.9532, allocations: 3.346 MB / 0.6886 GB, free: 4.684 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.004533/0.9577, allocations: 1.939 MB / 0.6905 GB, free: 2.738 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007216/0.9585, allocations: 251.4 kB / 0.6908 GB, free: 2.492 MB / 0.4981 GB Notification: Performance of SimCode: time 9.02e-07/0.9585, allocations: 0 / 0.6908 GB, free: 2.492 MB / 0.4981 GB Notification: Performance of Templates: time 0.08691/1.045, allocations: 43.75 MB / 0.7335 GB, free: 7.316 MB / 0.545 GB " [Timeout remaining time 659] 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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 7.009246822446585]