Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.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.001014/0.001014, allocations: 88.73 kB / 21.5 MB, free: 2.984 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.001131/0.001131, allocations: 164.2 kB / 24.91 MB, free: 8.762 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.9477/0.9477, allocations: 177 MB / 205.2 MB, free: 5.039 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2609/0.2609, allocations: 34.86 MB / 296.6 MB, free: 460 kB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|gearConstraint.actuatedRevolute_b.phi|gearConstraint.actuatedRevolute_b.w|inertia2.phi|inertia2.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint") translateModel(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|gearConstraint.actuatedRevolute_b.phi|gearConstraint.actuatedRevolute_b.w|inertia2.phi|inertia2.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.333e-06/1.333e-06, allocations: 0 / 325.9 MB, free: 7.16 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.192e-05/1.326e-05, allocations: 3.297 kB / 325.9 MB, free: 7.156 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint): time 0.009083/0.009096, allocations: 12.77 MB / 338.7 MB, free: 10.33 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.007617/0.01671, allocations: 4.634 MB / 343.3 MB, free: 5.684 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001229/0.01794, allocations: 107.4 kB / 343.4 MB, free: 5.578 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004043/0.02199, allocations: 4.497 MB / 347.9 MB, free: 1.066 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003203/0.02519, allocations: 2.274 MB / 350.2 MB, free: 14.78 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001466/0.02666, allocations: 1.053 MB / 351.2 MB, free: 13.73 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.005418/0.03207, allocations: 6.854 MB / 358.1 MB, free: 6.867 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004045/0.03612, allocations: 4.786 MB / 362.9 MB, free: 1.992 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003961/0.04008, allocations: 4.207 MB / 367.1 MB, free: 13.78 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002892/0.04297, allocations: 2.985 MB / 370.1 MB, free: 10.79 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000621/0.04359, allocations: 484 kB / 370.6 MB, free: 10.31 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001427/0.04502, allocations: 1.303 MB / 371.9 MB, free: 9.008 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001529/0.04655, allocations: 2.688 MB / 374.5 MB, free: 6.312 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001307/0.04786, allocations: 1.726 MB / 376.3 MB, free: 4.582 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003912/0.05177, allocations: 5.844 MB / 382.1 MB, free: 14.72 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.497e-06/0.05177, allocations: 0 / 382.1 MB, free: 14.72 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.232e-06/0.05177, allocations: 0 / 382.1 MB, free: 14.72 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.861e-05/0.05184, allocations: 0 / 382.1 MB, free: 14.72 MB / 362.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.005742/0.05758, allocations: 5.743 MB / 387.9 MB, free: 8.918 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.31e-05/0.05762, allocations: 8.031 kB / 387.9 MB, free: 8.91 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0033/0.06092, allocations: 1.437 MB / 389.3 MB, free: 7.473 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002828/0.06375, allocations: 2.646 MB / 391.9 MB, free: 4.773 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001368/0.06388, allocations: 304.1 kB / 392.2 MB, free: 4.477 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004785/0.06436, allocations: 424.6 kB / 392.7 MB, free: 4.062 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005886/0.07025, allocations: 5.816 MB / 398.5 MB, free: 13.48 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.798e-05/0.07034, allocations: 51.56 kB / 398.5 MB, free: 13.43 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002992/0.07063, allocations: 183.9 kB / 398.7 MB, free: 13.25 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001618/0.07225, allocations: 1.769 MB / 400.5 MB, free: 11.48 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004191/0.07644, allocations: 2.868 MB / 403.3 MB, free: 8.562 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02481/0.1013, allocations: 34.6 MB / 437.9 MB, free: 4.715 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003773/0.105, allocations: 1.711 MB / 439.7 MB, free: 2.969 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005169/0.1055, allocations: 414.2 kB / 440.1 MB, free: 2.555 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1624/0.268, allocations: 4.1 MB / 444.2 MB, free: 111.1 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.455e-05/0.268, allocations: 50.62 kB / 444.2 MB, free: 111 MB / 410.7 MB Notification: Performance of pre-optimization done (n=142): time 3.286e-06/0.268, allocations: 0 / 444.2 MB, free: 111 MB / 410.7 MB Notification: Performance of matching and sorting (n=158): time 0.01156/0.2796, allocations: 5.349 MB / 449.6 MB, free: 110.5 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.502e-05/0.2796, allocations: 198.8 kB / 449.8 MB, free: 110.3 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003037/0.2827, allocations: 3.709 MB / 453.5 MB, free: 109.8 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 6.635e-05/0.2827, allocations: 44.64 kB / 453.5 MB, free: 109.8 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001073/0.2838, allocations: 3.501 MB / 457 MB, free: 107.5 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003341/0.2841, allocations: 0.653 MB / 457.7 MB, free: 107.1 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009596/0.2851, allocations: 1.244 MB / 458.9 MB, free: 107 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 4.457e-05/0.2851, allocations: 308.7 kB / 459.2 MB, free: 106.7 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001024/0.2862, allocations: 0.7602 MB / 460 MB, free: 106.7 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00189/0.2881, allocations: 4.689 MB / 464.7 MB, free: 101.4 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00336/0.2914, allocations: 6 MB / 470.7 MB, free: 94.38 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.916e-05/0.2915, allocations: 44 kB / 470.7 MB, free: 94.34 MB / 410.7 MB Notification: Performance of matching and sorting (n=844) (initialization): time 0.004999/0.2965, allocations: 4.414 MB / 475.1 MB, free: 90.55 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.275e-05/0.2965, allocations: 64 kB / 475.2 MB, free: 90.49 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.148e-05/0.2966, allocations: 144 kB / 475.3 MB, free: 90.35 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007623/0.2974, allocations: 403.8 kB / 475.7 MB, free: 89.95 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002786/0.3002, allocations: 1.454 MB / 477.2 MB, free: 88.49 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002218/0.3024, allocations: 3.557 MB / 480.7 MB, free: 84.77 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002832/0.3052, allocations: 295.6 kB / 481 MB, free: 84.48 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003041/0.3055, allocations: 340 kB / 481.3 MB, free: 84.15 MB / 410.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.001197/0.3067, allocations: 0.6532 MB / 482 MB, free: 83.48 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002443/0.3092, allocations: 243.7 kB / 482.2 MB, free: 83.25 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001392/0.3106, allocations: 0.8642 MB / 483.1 MB, free: 82.36 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.092e-05/0.3106, allocations: 20 kB / 483.1 MB, free: 82.34 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.005e-06/0.3106, allocations: 4 kB / 483.1 MB, free: 82.34 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.238e-05/0.3106, allocations: 7.969 kB / 483.1 MB, free: 82.33 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006618/0.3172, allocations: 4.23 MB / 487.4 MB, free: 77.98 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.798e-06/0.3172, allocations: 11.41 kB / 487.4 MB, free: 77.98 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008547/0.3181, allocations: 243.6 kB / 487.6 MB, free: 77.74 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009356/0.319, allocations: 417.3 kB / 488 MB, free: 77.32 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.953e-05/0.3191, allocations: 32 kB / 488 MB, free: 77.29 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00184/0.321, allocations: 2.763 MB / 490.8 MB, free: 74.34 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.793e-06/0.321, allocations: 15.98 kB / 490.8 MB, free: 74.33 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002096/0.3231, allocations: 1.773 MB / 492.6 MB, free: 72.45 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004965/0.3236, allocations: 357.3 kB / 492.9 MB, free: 72.1 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003927/0.324, allocations: 35.97 kB / 493 MB, free: 72.06 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001029/0.325, allocations: 36 kB / 493 MB, free: 72.03 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002003/0.3252, allocations: 108.7 kB / 493.1 MB, free: 71.92 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.588e-05/0.3253, allocations: 43.98 kB / 493.2 MB, free: 71.88 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001576/0.3268, allocations: 1.39 MB / 494.6 MB, free: 70.48 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3268, allocations: 0 / 494.6 MB, free: 70.48 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005144/0.332, allocations: 1.141 MB / 495.7 MB, free: 69.34 MB / 410.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.000373/0.3324, allocations: 159.9 kB / 495.9 MB, free: 69.17 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003423/0.3358, allocations: 2.718 MB / 498.6 MB, free: 66.46 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001838/0.336, allocations: 104.2 kB / 498.7 MB, free: 66.34 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007265/0.3367, allocations: 0.651 MB / 499.3 MB, free: 65.67 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002536/0.3392, allocations: 0.7315 MB / 0.4883 GB, free: 64.96 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01046/0.3497, allocations: 8.623 MB / 0.4968 GB, free: 56.19 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001026/0.3507, allocations: 1.472 MB / 0.4982 GB, free: 54.69 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001146/0.3519, allocations: 0.5347 MB / 0.4987 GB, free: 54.15 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006859/0.3525, allocations: 0.5948 MB / 0.4993 GB, free: 53.55 MB / 410.7 MB Notification: Performance of SimCode: time 1.934e-06/0.3525, allocations: 0 / 0.4993 GB, free: 53.55 MB / 410.7 MB Notification: Performance of Templates: time 0.04217/0.3947, allocations: 31.9 MB / 0.5304 GB, free: 22.11 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/MultiBody/Parts/Rotor1D/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: 4.0333449598401785]