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.001635/0.001635, allocations: 113 kB / 19.04 MB, free: 3.254 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.00175/0.00175, allocations: 197.9 kB / 22.22 MB, free: 72 kB / 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.431/1.431, allocations: 225.6 MB / 250.8 MB, free: 13.32 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.001555/0.001555, allocations: 51.92 kB / 368.7 MB, free: 10.13 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2503/0.2519, allocations: 52.14 MB / 420.9 MB, free: 15.05 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.01578/0.2676, allocations: 13.67 MB / 434.5 MB, free: 1.324 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01003/0.2777, allocations: 4.592 MB / 439.1 MB, free: 12.72 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002976/0.2807, allocations: 87.75 kB / 439.2 MB, free: 12.63 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00866/0.2893, allocations: 4.264 MB / 443.5 MB, free: 8.355 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006849/0.2962, allocations: 2.233 MB / 445.7 MB, free: 6.113 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002694/0.2989, allocations: 0.9359 MB / 446.7 MB, free: 5.176 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.009653/0.3085, allocations: 6.061 MB / 452.7 MB, free: 15.11 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005702/0.3142, allocations: 3.751 MB / 456.5 MB, free: 11.29 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004361/0.3186, allocations: 2.15 MB / 458.6 MB, free: 9.133 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005478/0.324, allocations: 3.034 MB / 461.6 MB, free: 6.09 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001639/0.3257, allocations: 476 kB / 462.1 MB, free: 5.625 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00342/0.3291, allocations: 1.389 MB / 463.5 MB, free: 4.234 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00369/0.3328, allocations: 2.614 MB / 466.1 MB, free: 1.613 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004927/0.3377, allocations: 2.875 MB / 469 MB, free: 14.72 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01223/0.35, allocations: 9.219 MB / 478.2 MB, free: 5.469 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.153e-06/0.35, allocations: 0 / 478.2 MB, free: 5.469 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.304e-06/0.35, allocations: 0 / 478.2 MB, free: 5.469 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000308/0.3503, allocations: 0 / 478.2 MB, free: 5.469 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.01639/0.3667, allocations: 6.285 MB / 484.5 MB, free: 15.1 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.04e-05/0.3667, allocations: 8.031 kB / 484.5 MB, free: 15.09 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01203/0.3787, allocations: 2.618 MB / 487.1 MB, free: 12.47 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009086/0.3878, allocations: 3.892 MB / 491 MB, free: 8.523 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002937/0.3881, allocations: 304.2 kB / 491.3 MB, free: 8.227 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001688/0.3898, allocations: 435.9 kB / 491.7 MB, free: 7.801 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0229/0.4127, allocations: 11.73 MB / 0.4917 GB, free: 11.32 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001632/0.4129, allocations: 59.52 kB / 0.4917 GB, free: 11.27 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005642/0.4134, allocations: 191.8 kB / 0.4919 GB, free: 11.08 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003685/0.4171, allocations: 2.081 MB / 0.4939 GB, free: 8.988 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02111/0.4382, allocations: 10.09 MB / 0.5038 GB, free: 14.88 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2747/0.713, allocations: 45.83 MB / 0.5486 GB, free: 77.04 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009825/0.7228, allocations: 4.215 MB / 0.5527 GB, free: 76.38 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002869/0.7257, allocations: 2.299 MB / 0.5549 GB, free: 75.62 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01442/0.7401, allocations: 9.88 MB / 0.5646 GB, free: 70.95 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.538e-05/0.7401, allocations: 54.75 kB / 0.5646 GB, free: 70.89 MB / 446.1 MB Notification: Performance of pre-optimization done (n=171): time 4.579e-06/0.7401, allocations: 0 / 0.5646 GB, free: 70.89 MB / 446.1 MB Notification: Performance of matching and sorting (n=197): time 0.04861/0.7887, allocations: 20.22 MB / 0.5844 GB, free: 53.62 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.066e-05/0.7888, allocations: 197.8 kB / 0.5846 GB, free: 53.38 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005896/0.7947, allocations: 4.724 MB / 0.5892 GB, free: 48.73 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003358/0.795, allocations: 57.38 kB / 0.5892 GB, free: 48.68 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001506/0.7965, allocations: 3.733 MB / 0.5929 GB, free: 45.21 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006736/0.7972, allocations: 0.7894 MB / 0.5936 GB, free: 44.43 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001272/0.7985, allocations: 1.355 MB / 0.595 GB, free: 43.06 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.732e-05/0.7985, allocations: 305.4 kB / 0.5953 GB, free: 42.76 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002553/0.8011, allocations: 2.41 MB / 0.5976 GB, free: 40.35 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003671/0.8047, allocations: 6.276 MB / 0.6037 GB, free: 32.23 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007422/0.8122, allocations: 9.32 MB / 0.6128 GB, free: 21.08 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.747e-05/0.8122, allocations: 43.94 kB / 0.6129 GB, free: 21.04 MB / 446.1 MB Notification: Performance of matching and sorting (n=858) (initialization): time 0.01357/0.8258, allocations: 9.802 MB / 0.6225 GB, free: 11.23 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.661e-05/0.8259, allocations: 64 kB / 0.6225 GB, free: 11.17 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.315e-05/0.826, allocations: 132 kB / 0.6226 GB, free: 11.04 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003826/0.8298, allocations: 1.617 MB / 0.6242 GB, free: 9.418 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0041/0.8339, allocations: 1.489 MB / 0.6257 GB, free: 7.926 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01096/0.8449, allocations: 10.26 MB / 0.6357 GB, free: 13.39 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004799/0.8497, allocations: 367.2 kB / 0.636 GB, free: 13.04 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009419/0.8506, allocations: 392 kB / 0.6364 GB, free: 12.65 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.004309/0.8549, allocations: 2.485 MB / 0.6388 GB, free: 10.16 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009467/0.8559, allocations: 437.1 kB / 0.6393 GB, free: 9.727 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008498/0.8644, allocations: 4.216 MB / 0.6434 GB, free: 5.492 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.713e-05/0.8644, allocations: 24 kB / 0.6434 GB, free: 5.469 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.064e-05/0.8644, allocations: 11.94 kB / 0.6434 GB, free: 5.457 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.162e-05/0.8644, allocations: 7.969 kB / 0.6434 GB, free: 5.449 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02185/0.8863, allocations: 9.707 MB / 0.6529 GB, free: 11.7 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.858e-05/0.8863, allocations: 4 kB / 0.6529 GB, free: 11.7 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001522/0.8878, allocations: 299.6 kB / 0.6532 GB, free: 11.41 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004125/0.892, allocations: 1.369 MB / 0.6545 GB, free: 10.03 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002281/0.8922, allocations: 28 kB / 0.6546 GB, free: 10 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01277/0.905, allocations: 9.393 MB / 0.6637 GB, free: 348 kB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.035e-06/0.905, allocations: 0 / 0.6637 GB, free: 348 kB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01218/0.9171, allocations: 6.979 MB / 0.6705 GB, free: 9.324 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001478/0.9186, allocations: 482 kB / 0.671 GB, free: 8.832 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001156/0.9198, allocations: 35.94 kB / 0.671 GB, free: 8.797 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002128/0.9219, allocations: 115.7 kB / 0.6711 GB, free: 8.688 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004626/0.9224, allocations: 121.1 kB / 0.6713 GB, free: 8.566 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001675/0.9225, allocations: 48 kB / 0.6713 GB, free: 8.52 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.006062/0.9286, allocations: 2.972 MB / 0.6742 GB, free: 5.551 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.9286, allocations: 0 / 0.6742 GB, free: 5.551 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.006806/0.9354, allocations: 1.199 MB / 0.6754 GB, free: 4.352 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.0006198/0.936, allocations: 181.6 kB / 0.6756 GB, free: 4.168 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01048/0.9465, allocations: 5.739 MB / 0.6812 GB, free: 14.43 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 5.791e-06/0.9465, allocations: 4.062 kB / 0.6812 GB, free: 14.43 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.003425/0.9499, allocations: 1.87 MB / 0.683 GB, free: 12.53 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003945/0.9539, allocations: 0.5562 MB / 0.6835 GB, free: 11.99 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02132/0.9752, allocations: 11.41 MB / 0.6947 GB, free: 0.5273 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006106/0.9813, allocations: 3.869 MB / 0.6984 GB, free: 12.62 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.004994/0.9863, allocations: 1.992 MB / 0.7004 GB, free: 10.62 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001013/0.9873, allocations: 267.4 kB / 0.7006 GB, free: 10.37 MB / 0.5137 GB Notification: Performance of SimCode: time 9.02e-07/0.9873, allocations: 0 / 0.7006 GB, free: 10.37 MB / 0.5137 GB Notification: Performance of Templates: time 0.3201/1.307, allocations: 44.27 MB / 0.7439 GB, free: 197.8 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: 6.836310960352421]