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.001759/0.001759, allocations: 74.19 kB / 21.24 MB, free: 0.5547 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.002236/0.002236, allocations: 151.8 kB / 24.49 MB, free: 3.723 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.482/1.482, allocations: 173.4 MB / 201.1 MB, free: 13 MB / 190.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.001636/0.001636, allocations: 48.38 kB / 319.4 MB, free: 3.27 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1047/0.1063, allocations: 52.16 MB / 371.6 MB, free: 7.414 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.01727/0.1236, allocations: 11.85 MB / 383.4 MB, free: 11.5 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01121/0.1348, allocations: 4.369 MB / 387.8 MB, free: 7.121 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002038/0.1368, allocations: 103.5 kB / 387.9 MB, free: 7.02 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009352/0.1462, allocations: 4.097 MB / 392 MB, free: 2.91 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006898/0.1531, allocations: 2.257 MB / 394.2 MB, free: 0.6445 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002646/0.1557, allocations: 0.9243 MB / 395.2 MB, free: 15.72 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01101/0.1668, allocations: 6.074 MB / 401.2 MB, free: 9.633 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005874/0.1726, allocations: 4.035 MB / 405.3 MB, free: 5.531 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003837/0.1765, allocations: 2.165 MB / 407.4 MB, free: 3.359 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005389/0.1819, allocations: 2.846 MB / 410.3 MB, free: 0.5039 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001016/0.1829, allocations: 472 kB / 410.8 MB, free: 44 kB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002725/0.1856, allocations: 1.256 MB / 412 MB, free: 14.79 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00303/0.1886, allocations: 2.602 MB / 414.6 MB, free: 12.18 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003484/0.1921, allocations: 2.171 MB / 416.8 MB, free: 9.992 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01656/0.2087, allocations: 9.25 MB / 426 MB, free: 0.707 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.2087, allocations: 0 / 426 MB, free: 0.707 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.2087, allocations: 0 / 426 MB, free: 0.707 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002175/0.2089, allocations: 0 / 426 MB, free: 0.707 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.01243/0.2213, allocations: 6.226 MB / 432.3 MB, free: 10.41 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.394e-05/0.2214, allocations: 12.92 kB / 432.3 MB, free: 10.4 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01204/0.2334, allocations: 2.739 MB / 435 MB, free: 7.656 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008281/0.2417, allocations: 3.812 MB / 438.8 MB, free: 3.797 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002568/0.2419, allocations: 304.2 kB / 439.1 MB, free: 3.5 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000837/0.2428, allocations: 431.8 kB / 439.5 MB, free: 3.078 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02014/0.2629, allocations: 11.79 MB / 451.3 MB, free: 6.531 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001451/0.2631, allocations: 55.59 kB / 451.4 MB, free: 6.477 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004858/0.2635, allocations: 183.9 kB / 451.6 MB, free: 6.297 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003775/0.2673, allocations: 2.093 MB / 453.7 MB, free: 4.191 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01906/0.2864, allocations: 10.05 MB / 463.7 MB, free: 10.13 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2425/0.5288, allocations: 42.02 MB / 0.4939 GB, free: 56.82 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00949/0.5383, allocations: 3.918 MB / 0.4977 GB, free: 55.78 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002343/0.5407, allocations: 2.299 MB / 0.4999 GB, free: 54.82 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01213/0.5528, allocations: 8.821 MB / 0.5086 GB, free: 50.24 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.816e-05/0.5528, allocations: 46.81 kB / 0.5086 GB, free: 50.2 MB / 430.1 MB Notification: Performance of pre-optimization done (n=171): time 4.258e-06/0.5528, allocations: 3.938 kB / 0.5086 GB, free: 50.19 MB / 430.1 MB Notification: Performance of matching and sorting (n=197): time 0.04724/0.6001, allocations: 20.6 MB / 0.5287 GB, free: 30.85 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.843e-05/0.6001, allocations: 209.2 kB / 0.5289 GB, free: 30.6 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004248/0.6044, allocations: 4.44 MB / 0.5333 GB, free: 26.3 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003016/0.6047, allocations: 53.7 kB / 0.5333 GB, free: 26.25 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001427/0.6061, allocations: 3.754 MB / 0.537 GB, free: 22.71 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005932/0.6067, allocations: 0.7981 MB / 0.5378 GB, free: 21.92 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001316/0.608, allocations: 1.345 MB / 0.5391 GB, free: 20.56 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 4.115e-05/0.6081, allocations: 305.1 kB / 0.5394 GB, free: 20.26 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002714/0.6108, allocations: 2.41 MB / 0.5417 GB, free: 17.85 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003908/0.6147, allocations: 6.321 MB / 0.5479 GB, free: 9.602 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008368/0.623, allocations: 9.316 MB / 0.557 GB, free: 14.39 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000111/0.6232, allocations: 36 kB / 0.557 GB, free: 14.35 MB / 446.1 MB Notification: Performance of matching and sorting (n=858) (initialization): time 0.01894/0.6421, allocations: 9.755 MB / 0.5665 GB, free: 4.582 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001024/0.6422, allocations: 68.2 kB / 0.5666 GB, free: 4.516 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001537/0.6424, allocations: 140 kB / 0.5667 GB, free: 4.379 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004813/0.6472, allocations: 1.612 MB / 0.5683 GB, free: 2.762 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00505/0.6522, allocations: 1.489 MB / 0.5698 GB, free: 1.27 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01437/0.6666, allocations: 9.89 MB / 0.5794 GB, free: 7.184 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004847/0.6714, allocations: 366.8 kB / 0.5798 GB, free: 6.828 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000956/0.6724, allocations: 392 kB / 0.5802 GB, free: 6.445 MB / 462.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.004087/0.6765, allocations: 2.481 MB / 0.5826 GB, free: 3.957 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008431/0.6773, allocations: 389.4 kB / 0.583 GB, free: 3.574 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008616/0.6859, allocations: 4.181 MB / 0.587 GB, free: 15.38 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.665e-05/0.686, allocations: 27.98 kB / 0.5871 GB, free: 15.35 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.749e-05/0.686, allocations: 4 kB / 0.5871 GB, free: 15.34 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.219e-05/0.6861, allocations: 11.97 kB / 0.5871 GB, free: 15.33 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0176/0.7037, allocations: 8.363 MB / 0.5952 GB, free: 6.957 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.265e-05/0.7037, allocations: 4.656 kB / 0.5952 GB, free: 6.953 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001543/0.7052, allocations: 299.6 kB / 0.5955 GB, free: 6.66 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004288/0.7095, allocations: 1.36 MB / 0.5969 GB, free: 5.293 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001667/0.7097, allocations: 28 kB / 0.5969 GB, free: 5.266 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01323/0.7229, allocations: 9.054 MB / 0.6057 GB, free: 12.02 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.819e-06/0.7229, allocations: 8.062 kB / 0.6057 GB, free: 12.01 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01235/0.7352, allocations: 6.924 MB / 0.6125 GB, free: 5.059 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001229/0.7365, allocations: 361.7 kB / 0.6128 GB, free: 4.703 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004322/0.7369, allocations: 32 kB / 0.6129 GB, free: 4.672 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001542/0.7384, allocations: 115.8 kB / 0.613 GB, free: 4.559 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003763/0.7388, allocations: 121.1 kB / 0.6131 GB, free: 4.438 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001512/0.739, allocations: 52 kB / 0.6132 GB, free: 4.387 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003971/0.7429, allocations: 2.624 MB / 0.6157 GB, free: 1.754 MB / 494.1 MB Notification: Performance of sort global known variables: time 9e-08/0.7429, allocations: 0 / 0.6157 GB, free: 1.754 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.005355/0.7483, allocations: 1.199 MB / 0.6169 GB, free: 0.5586 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.0004177/0.7487, allocations: 170.9 kB / 0.617 GB, free: 392 kB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.009714/0.7584, allocations: 5.73 MB / 0.6226 GB, free: 10.66 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 4.819e-06/0.7584, allocations: 0 / 0.6226 GB, free: 10.66 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.00329/0.7617, allocations: 1.874 MB / 0.6245 GB, free: 8.758 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002764/0.7645, allocations: 0.4927 MB / 0.625 GB, free: 8.27 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01903/0.7835, allocations: 11.34 MB / 0.636 GB, free: 12.88 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004629/0.7881, allocations: 3.339 MB / 0.6393 GB, free: 9.5 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.004524/0.7927, allocations: 1.95 MB / 0.6412 GB, free: 7.543 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000675/0.7933, allocations: 256.4 kB / 0.6414 GB, free: 7.293 MB / 0.5137 GB Notification: Performance of SimCode: time 8.52e-07/0.7933, allocations: 0 / 0.6414 GB, free: 7.293 MB / 0.5137 GB Notification: Performance of Templates: time 0.2545/1.048, allocations: 38.09 MB / 0.6786 GB, free: 177.3 MB / 0.5294 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 -s ida -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Rotational3DEffects/GearConstraint/GearConstraint.csv","/var/lib/jenkins1/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: 6.751249466091394]