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.002064/0.002064, allocations: 107.1 kB / 20.44 MB, free: 1.172 MB / 14.72 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.0028/0.0028, allocations: 206.8 kB / 23.73 MB, free: 4.379 MB / 14.72 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 1.495/1.495, allocations: 230.6 MB / 257.5 MB, free: 7.809 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001694/0.001694, allocations: 55.91 kB / 378.2 MB, free: 2.465 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2683/0.27, allocations: 53.37 MB / 431.6 MB, free: 6.703 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.01633/0.2863, allocations: 11.73 MB / 443.3 MB, free: 10.92 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009908/0.2962, allocations: 4.369 MB / 447.7 MB, free: 6.539 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002217/0.2984, allocations: 111.4 kB / 447.8 MB, free: 6.43 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008463/0.3069, allocations: 4.066 MB / 451.9 MB, free: 2.352 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006392/0.3133, allocations: 2.198 MB / 454.1 MB, free: 148 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002606/0.3159, allocations: 0.9281 MB / 455 MB, free: 15.21 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.009522/0.3254, allocations: 6.127 MB / 461.1 MB, free: 9.078 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006529/0.332, allocations: 4.031 MB / 465.1 MB, free: 4.98 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004186/0.3361, allocations: 2.15 MB / 467.3 MB, free: 2.824 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005469/0.3416, allocations: 3.007 MB / 470.3 MB, free: 15.81 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001372/0.343, allocations: 472 kB / 470.8 MB, free: 15.35 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003439/0.3464, allocations: 1.252 MB / 472 MB, free: 14.09 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004388/0.3508, allocations: 2.571 MB / 474.6 MB, free: 11.52 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005859/0.3567, allocations: 2.129 MB / 476.7 MB, free: 9.375 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0129/0.3696, allocations: 9.11 MB / 485.8 MB, free: 236 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.029e-06/0.3696, allocations: 0 / 485.8 MB, free: 236 kB / 382.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.3696, allocations: 0 / 485.8 MB, free: 236 kB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002239/0.3698, allocations: 0 / 485.8 MB, free: 236 kB / 382.1 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.01401/0.3838, allocations: 6.159 MB / 492 MB, free: 10 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.531e-05/0.3839, allocations: 8.031 kB / 492 MB, free: 9.996 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01209/0.3959, allocations: 2.61 MB / 494.6 MB, free: 7.379 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01002/0.406, allocations: 3.746 MB / 498.3 MB, free: 3.586 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002731/0.4062, allocations: 296.1 kB / 498.6 MB, free: 3.297 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001302/0.4075, allocations: 431.9 kB / 499.1 MB, free: 2.875 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02426/0.4318, allocations: 11.6 MB / 0.4987 GB, free: 6.516 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001889/0.432, allocations: 55.59 kB / 0.4987 GB, free: 6.461 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005876/0.4326, allocations: 183.9 kB / 0.4989 GB, free: 6.281 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003753/0.4363, allocations: 2.026 MB / 0.5009 GB, free: 4.246 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0201/0.4564, allocations: 9.908 MB / 0.5106 GB, free: 10.32 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.296/0.7525, allocations: 41.52 MB / 0.5511 GB, free: 71.59 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01043/0.7629, allocations: 3.765 MB / 0.5548 GB, free: 71.27 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002574/0.7655, allocations: 2.3 MB / 0.557 GB, free: 70.32 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01451/0.78, allocations: 8.751 MB / 0.5656 GB, free: 66.52 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.426e-05/0.78, allocations: 58.03 kB / 0.5656 GB, free: 66.47 MB / 446.1 MB Notification: Performance of pre-optimization done (n=171): time 5.42e-06/0.78, allocations: 5.812 kB / 0.5657 GB, free: 66.47 MB / 446.1 MB Notification: Performance of matching and sorting (n=197): time 0.04701/0.827, allocations: 19.99 MB / 0.5852 GB, free: 49.59 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.267e-05/0.8271, allocations: 212.6 kB / 0.5854 GB, free: 49.34 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004623/0.8317, allocations: 4.433 MB / 0.5897 GB, free: 45.05 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003931/0.8321, allocations: 57.53 kB / 0.5898 GB, free: 44.99 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002051/0.8342, allocations: 3.715 MB / 0.5934 GB, free: 41.49 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009673/0.8351, allocations: 0.7932 MB / 0.5942 GB, free: 40.7 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001594/0.8367, allocations: 1.35 MB / 0.5955 GB, free: 39.34 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 8.344e-05/0.8368, allocations: 301.1 kB / 0.5958 GB, free: 39.05 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00294/0.8397, allocations: 2.402 MB / 0.5981 GB, free: 36.64 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004931/0.8447, allocations: 6.299 MB / 0.6043 GB, free: 28.48 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007945/0.8526, allocations: 9.3 MB / 0.6133 GB, free: 17.37 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001006/0.8527, allocations: 36 kB / 0.6134 GB, free: 17.34 MB / 446.1 MB Notification: Performance of matching and sorting (n=855) (initialization): time 0.01478/0.8675, allocations: 9.73 MB / 0.6229 GB, free: 7.594 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.684e-05/0.8676, allocations: 72 kB / 0.623 GB, free: 7.523 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001133/0.8677, allocations: 132 kB / 0.6231 GB, free: 7.395 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003885/0.8716, allocations: 1.614 MB / 0.6247 GB, free: 5.777 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004289/0.8759, allocations: 1.489 MB / 0.6261 GB, free: 4.285 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01228/0.8881, allocations: 9.889 MB / 0.6358 GB, free: 10.19 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004875/0.893, allocations: 359.6 kB / 0.6361 GB, free: 9.84 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001033/0.894, allocations: 392.1 kB / 0.6365 GB, free: 9.457 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 614 * 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 (793): * Single equations (assignments): 788 * 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.00435/0.8984, allocations: 2.461 MB / 0.6389 GB, free: 6.984 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009505/0.8993, allocations: 389.4 kB / 0.6393 GB, free: 6.602 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008228/0.9076, allocations: 4.181 MB / 0.6433 GB, free: 2.398 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.48e-05/0.9076, allocations: 20 kB / 0.6434 GB, free: 2.379 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.782e-05/0.9076, allocations: 8 kB / 0.6434 GB, free: 2.371 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.011e-05/0.9077, allocations: 11.95 kB / 0.6434 GB, free: 2.359 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0199/0.9276, allocations: 8.316 MB / 0.6515 GB, free: 10.03 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.996e-05/0.9276, allocations: 0 / 0.6515 GB, free: 10.03 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001646/0.9292, allocations: 299.6 kB / 0.6518 GB, free: 9.738 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004231/0.9335, allocations: 1.361 MB / 0.6531 GB, free: 8.371 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002548/0.9337, allocations: 28 kB / 0.6531 GB, free: 8.344 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01292/0.9466, allocations: 9.053 MB / 0.662 GB, free: 15.09 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.484e-06/0.9466, allocations: 7.938 kB / 0.662 GB, free: 15.08 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01238/0.959, allocations: 6.931 MB / 0.6688 GB, free: 8.129 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001254/0.9603, allocations: 353.3 kB / 0.6691 GB, free: 7.781 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009302/0.9612, allocations: 32 kB / 0.6691 GB, free: 7.75 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001996/0.9632, allocations: 111.8 kB / 0.6692 GB, free: 7.641 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004637/0.9637, allocations: 125.1 kB / 0.6694 GB, free: 7.52 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002014/0.9639, allocations: 55.81 kB / 0.6694 GB, free: 7.469 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.00486/0.9687, allocations: 2.604 MB / 0.6719 GB, free: 4.855 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.9687, allocations: 0 / 0.6719 GB, free: 4.855 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.006224/0.975, allocations: 1.176 MB / 0.6731 GB, free: 3.68 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.0006478/0.9756, allocations: 166.9 kB / 0.6733 GB, free: 3.508 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01128/0.9869, allocations: 5.75 MB / 0.6789 GB, free: 13.76 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 9.488e-06/0.9869, allocations: 0 / 0.6789 GB, free: 13.76 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.003807/0.9907, allocations: 1.871 MB / 0.6807 GB, free: 11.86 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004195/0.9949, allocations: 493.6 kB / 0.6812 GB, free: 11.38 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0226/1.017, allocations: 11.26 MB / 0.6922 GB, free: 76 kB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004822/1.022, allocations: 3.293 MB / 0.6954 GB, free: 12.74 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.004549/1.027, allocations: 1.942 MB / 0.6973 GB, free: 10.79 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008433/1.028, allocations: 247.4 kB / 0.6975 GB, free: 10.55 MB / 0.5137 GB Notification: Performance of SimCode: time 1.633e-06/1.028, allocations: 0 / 0.6975 GB, free: 10.55 MB / 0.5137 GB Notification: Performance of Templates: time 0.3229/1.351, allocations: 46.09 MB / 0.7425 GB, free: 191.6 MB / 0.545 GB " [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=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.049468715209514]