Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.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.001329/0.001329, allocations: 104.5 kB / 19.8 MB, free: 2.516 MB / 14.72 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.001526/0.001526, allocations: 210.2 kB / 23 MB, free: 5.609 MB / 14.72 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 1.463/1.463, allocations: 230.2 MB / 256.2 MB, free: 8.551 MB / 206.1 MB " [Timeout remaining time 178] 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(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_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001921/0.001921, allocations: 67.86 kB / 376.5 MB, free: 3.602 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2627/0.2646, allocations: 53.32 MB / 429.8 MB, free: 7.551 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.01656/0.2812, allocations: 13.53 MB / 443.3 MB, free: 9.957 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01135/0.2925, allocations: 4.584 MB / 447.9 MB, free: 5.359 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002911/0.2955, allocations: 95.69 kB / 448 MB, free: 5.266 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00862/0.3041, allocations: 4.244 MB / 452.2 MB, free: 1.008 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007435/0.3115, allocations: 2.179 MB / 454.4 MB, free: 14.82 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003049/0.3146, allocations: 0.9359 MB / 455.4 MB, free: 13.88 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01052/0.3251, allocations: 6.123 MB / 461.5 MB, free: 7.75 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006438/0.3315, allocations: 3.732 MB / 465.2 MB, free: 3.957 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004353/0.3359, allocations: 2.134 MB / 467.4 MB, free: 1.816 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005152/0.341, allocations: 3.007 MB / 470.4 MB, free: 14.8 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001802/0.3428, allocations: 472 kB / 470.8 MB, free: 14.34 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003603/0.3464, allocations: 1.373 MB / 472.2 MB, free: 12.96 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004003/0.3504, allocations: 2.559 MB / 474.8 MB, free: 10.4 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005093/0.3555, allocations: 2.836 MB / 477.6 MB, free: 7.547 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01222/0.3677, allocations: 9.059 MB / 486.6 MB, free: 14.45 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.901e-06/0.3677, allocations: 3.938 kB / 486.7 MB, free: 14.45 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.3677, allocations: 4 kB / 486.7 MB, free: 14.45 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002978/0.368, allocations: 3.984 kB / 486.7 MB, free: 14.44 MB / 398.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.016/0.384, allocations: 6.234 MB / 492.9 MB, free: 8.125 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.972e-05/0.3841, allocations: 8.031 kB / 492.9 MB, free: 8.117 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01259/0.3967, allocations: 2.61 MB / 495.5 MB, free: 5.5 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009996/0.4067, allocations: 3.818 MB / 499.3 MB, free: 1.629 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003496/0.407, allocations: 300.1 kB / 499.6 MB, free: 1.336 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001905/0.4089, allocations: 431.9 kB / 0.4883 GB, free: 0.9141 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02596/0.4349, allocations: 11.55 MB / 0.4996 GB, free: 4.617 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002496/0.4351, allocations: 55.53 kB / 0.4997 GB, free: 4.562 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001369/0.4365, allocations: 187.9 kB / 0.4998 GB, free: 4.379 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003619/0.4401, allocations: 2.026 MB / 0.5018 GB, free: 2.34 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02176/0.4619, allocations: 9.936 MB / 0.5115 GB, free: 8.395 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2911/0.753, allocations: 45.42 MB / 0.5559 GB, free: 70.57 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009707/0.7627, allocations: 4.221 MB / 0.56 GB, free: 69.29 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002712/0.7654, allocations: 2.303 MB / 0.5622 GB, free: 68.34 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01307/0.7785, allocations: 9.86 MB / 0.5719 GB, free: 63.23 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.816e-05/0.7785, allocations: 53.97 kB / 0.5719 GB, free: 63.18 MB / 446.1 MB Notification: Performance of pre-optimization done (n=171): time 4.649e-06/0.7785, allocations: 2.031 kB / 0.5719 GB, free: 63.18 MB / 446.1 MB Notification: Performance of matching and sorting (n=197): time 0.04829/0.8268, allocations: 20.17 MB / 0.5916 GB, free: 45.36 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.151e-05/0.8269, allocations: 201.2 kB / 0.5918 GB, free: 45.12 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005134/0.832, allocations: 4.701 MB / 0.5964 GB, free: 40.5 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003313/0.8324, allocations: 53.7 kB / 0.5965 GB, free: 40.44 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001477/0.8338, allocations: 3.697 MB / 0.6001 GB, free: 37 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005748/0.8344, allocations: 0.7959 MB / 0.6008 GB, free: 36.21 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001304/0.8357, allocations: 1.338 MB / 0.6021 GB, free: 34.86 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.277e-05/0.8358, allocations: 305.1 kB / 0.6024 GB, free: 34.56 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002555/0.8383, allocations: 2.41 MB / 0.6048 GB, free: 32.15 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003747/0.8421, allocations: 6.251 MB / 0.6109 GB, free: 24.04 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007312/0.8494, allocations: 9.292 MB / 0.62 GB, free: 12.86 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.352e-05/0.8494, allocations: 43.94 kB / 0.62 GB, free: 12.82 MB / 446.1 MB Notification: Performance of matching and sorting (n=855) (initialization): time 0.01338/0.8628, allocations: 9.77 MB / 0.6296 GB, free: 3.035 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.015e-05/0.8629, allocations: 67.98 kB / 0.6296 GB, free: 2.969 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.658e-05/0.863, allocations: 132 kB / 0.6297 GB, free: 2.84 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003744/0.8667, allocations: 1.609 MB / 0.6313 GB, free: 1.227 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004064/0.8708, allocations: 1.478 MB / 0.6328 GB, free: 15.75 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01371/0.8845, allocations: 10.26 MB / 0.6428 GB, free: 5.199 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004592/0.8891, allocations: 367.5 kB / 0.6431 GB, free: 4.84 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006909/0.8898, allocations: 395.4 kB / 0.6435 GB, free: 4.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.003808/0.8936, allocations: 2.45 MB / 0.6459 GB, free: 1.992 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007935/0.8944, allocations: 429.2 kB / 0.6463 GB, free: 1.57 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008043/0.9024, allocations: 4.22 MB / 0.6504 GB, free: 13.33 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.694e-05/0.9025, allocations: 23.94 kB / 0.6505 GB, free: 13.31 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.404e-05/0.9025, allocations: 8 kB / 0.6505 GB, free: 13.3 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.161e-05/0.9025, allocations: 7.969 kB / 0.6505 GB, free: 13.29 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01776/0.9203, allocations: 9.666 MB / 0.6599 GB, free: 3.586 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.444e-05/0.9203, allocations: 4 kB / 0.6599 GB, free: 3.582 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001438/0.9217, allocations: 295.5 kB / 0.6602 GB, free: 3.293 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004304/0.926, allocations: 1.36 MB / 0.6615 GB, free: 1.926 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001753/0.9262, allocations: 32 kB / 0.6616 GB, free: 1.895 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01268/0.9389, allocations: 9.395 MB / 0.6707 GB, free: 8.23 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.9389, allocations: 4.062 kB / 0.6707 GB, free: 8.227 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01156/0.9504, allocations: 6.968 MB / 0.6775 GB, free: 1.23 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001213/0.9516, allocations: 478.1 kB / 0.678 GB, free: 0.7422 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004612/0.9521, allocations: 36 kB / 0.678 GB, free: 0.707 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001436/0.9535, allocations: 111.8 kB / 0.6781 GB, free: 0.5977 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004132/0.954, allocations: 125.1 kB / 0.6783 GB, free: 484 kB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001515/0.9541, allocations: 55.98 kB / 0.6783 GB, free: 428 kB / 494.1 MB Notification: Performance of sorting global known variables: time 0.004658/0.9588, allocations: 2.959 MB / 0.6812 GB, free: 13.46 MB / 0.4981 GB Notification: Performance of sort global known variables: time 7e-08/0.9588, allocations: 0 / 0.6812 GB, free: 13.46 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.00516/0.9639, allocations: 1.183 MB / 0.6824 GB, free: 12.29 MB / 0.4981 GB 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.0004345/0.9644, allocations: 170.9 kB / 0.6825 GB, free: 12.11 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.009675/0.974, allocations: 5.743 MB / 0.6881 GB, free: 6.371 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.974, allocations: 0 / 0.6881 GB, free: 6.371 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.003008/0.977, allocations: 1.874 MB / 0.69 GB, free: 4.469 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002699/0.9797, allocations: 0.536 MB / 0.6905 GB, free: 3.938 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02079/1.001, allocations: 11.31 MB / 0.7015 GB, free: 8.578 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005074/1.006, allocations: 3.823 MB / 0.7053 GB, free: 4.719 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.004725/1.01, allocations: 1.984 MB / 0.7072 GB, free: 2.727 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000871/1.011, allocations: 267.4 kB / 0.7075 GB, free: 2.465 MB / 0.5137 GB Notification: Performance of SimCode: time 1.392e-06/1.011, allocations: 0 / 0.7075 GB, free: 2.465 MB / 0.5137 GB Notification: Performance of Templates: time 0.3098/1.321, allocations: 43.95 MB / 0.7504 GB, free: 190.2 MB / 0.545 GB " [Timeout remaining time 659] make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_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_trunk_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.047637895680964]