Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001045/0.001045, allocations: 75.75 kB / 21.97 MB, free: 2.605 MB / 18.57 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.001271/0.001271, allocations: 173.9 kB / 25.33 MB, free: 9.457 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8553/0.8553, allocations: 158.6 MB / 187.2 MB, free: 2.527 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.262e-06/1.262e-06, allocations: 0 / 251 MB, free: 3.605 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.819e-05/1.946e-05, allocations: 2.312 kB / 251 MB, free: 3.602 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.01064/0.01066, allocations: 13.87 MB / 264.9 MB, free: 5.664 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.007347/0.01801, allocations: 4.591 MB / 269.5 MB, free: 1.062 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001465/0.01947, allocations: 115.4 kB / 269.6 MB, free: 0.9492 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004769/0.02424, allocations: 4.552 MB / 274.2 MB, free: 12.38 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003492/0.02773, allocations: 2.41 MB / 276.6 MB, free: 9.961 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001305/0.02904, allocations: 1.037 MB / 277.6 MB, free: 8.922 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.005735/0.03477, allocations: 6.581 MB / 284.2 MB, free: 2.324 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004907/0.03968, allocations: 4.793 MB / 289 MB, free: 13.46 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004488/0.04417, allocations: 3.407 MB / 292.4 MB, free: 10.05 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003876/0.04804, allocations: 3.274 MB / 295.7 MB, free: 6.77 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001102/0.04915, allocations: 0.4961 MB / 296.2 MB, free: 6.273 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001791/0.05094, allocations: 1.327 MB / 297.5 MB, free: 4.945 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002014/0.05295, allocations: 2.86 MB / 300.3 MB, free: 2.078 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001428/0.05438, allocations: 1.811 MB / 302.2 MB, free: 268 kB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.1141/0.1685, allocations: 6.163 MB / 308.3 MB, free: 28.03 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.568e-06/0.1685, allocations: 0 / 308.3 MB, free: 28.03 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.333e-06/0.1685, allocations: 0 / 308.3 MB, free: 28.03 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0001156/0.1686, allocations: 1.188 kB / 308.3 MB, free: 28.03 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1846 * Number of variables: 1846 Notification: Performance of Generate backend data structure: time 0.008437/0.177, allocations: 6.915 MB / 315.2 MB, free: 25.41 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.226e-05/0.1771, allocations: 13.48 kB / 315.3 MB, free: 25.41 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006603/0.1837, allocations: 3.299 MB / 318.6 MB, free: 25.01 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004667/0.1883, allocations: 3.492 MB / 322 MB, free: 24.32 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001588/0.1885, allocations: 313.7 kB / 322.4 MB, free: 24.3 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006586/0.1892, allocations: 446.8 kB / 322.8 MB, free: 24.3 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009998/0.1992, allocations: 7.322 MB / 330.1 MB, free: 20.41 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001026/0.1993, allocations: 48.64 kB / 330.2 MB, free: 20.41 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003737/0.1996, allocations: 200.2 kB / 330.4 MB, free: 20.31 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002056/0.2017, allocations: 2.2 MB / 332.6 MB, free: 19.84 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007846/0.2095, allocations: 3.962 MB / 336.5 MB, free: 18.29 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04218/0.2517, allocations: 49.85 MB / 386.4 MB, free: 15.68 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005317/0.257, allocations: 2.402 MB / 388.8 MB, free: 13.23 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001056/0.2581, allocations: 0.8442 MB / 389.6 MB, free: 12.38 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008033/0.2661, allocations: 6.615 MB / 396.2 MB, free: 5.812 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.705e-05/0.2662, allocations: 57.7 kB / 396.3 MB, free: 5.75 MB / 330.7 MB Notification: Performance of pre-optimization done (n=192): time 4.048e-06/0.2662, allocations: 0 / 396.3 MB, free: 5.75 MB / 330.7 MB Notification: Performance of matching and sorting (n=218): time 0.02735/0.2935, allocations: 14.78 MB / 411.1 MB, free: 7.016 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.008e-05/0.2936, allocations: 201.2 kB / 411.3 MB, free: 6.777 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00471/0.2983, allocations: 4.147 MB / 415.4 MB, free: 2.594 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001633/0.2985, allocations: 57.7 kB / 415.5 MB, free: 2.531 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001946/0.3004, allocations: 4.048 MB / 419.5 MB, free: 14.51 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006769/0.3011, allocations: 0.8947 MB / 420.4 MB, free: 13.62 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00135/0.3024, allocations: 1.484 MB / 421.9 MB, free: 12.13 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.474e-05/0.3025, allocations: 484.8 kB / 422.4 MB, free: 11.65 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001256/0.3038, allocations: 0.8293 MB / 423.2 MB, free: 10.82 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003838/0.3076, allocations: 6.755 MB / 430 MB, free: 1.438 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006227/0.3139, allocations: 8.307 MB / 438.3 MB, free: 6.805 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.548e-05/0.3139, allocations: 40 kB / 438.3 MB, free: 6.766 MB / 378.7 MB Notification: Performance of matching and sorting (n=896) (initialization): time 0.009548/0.3235, allocations: 6.744 MB / 445 MB, free: 16 kB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.1239/0.4473, allocations: 61.52 kB / 445.1 MB, free: 124.5 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002368/0.4476, allocations: 139.1 kB / 445.2 MB, free: 124.5 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003322/0.4509, allocations: 1.127 MB / 446.4 MB, free: 124.4 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00383/0.4547, allocations: 1.563 MB / 447.9 MB, free: 124.4 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005061/0.4598, allocations: 6.502 MB / 454.4 MB, free: 120.5 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003336/0.4631, allocations: 448.9 kB / 454.9 MB, free: 120.5 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003675/0.4635, allocations: 413.7 kB / 455.3 MB, free: 120.5 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 634 * Number of states: 0 () * Number of discrete variables: 45 (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 (834): * Single equations (assignments): 829 * 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.001884/0.4654, allocations: 0.7135 MB / 456 MB, free: 120.4 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004915/0.4659, allocations: 468.4 kB / 456.4 MB, free: 120.4 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003421/0.4693, allocations: 2.409 MB / 458.9 MB, free: 120.2 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.052e-05/0.4693, allocations: 23.22 kB / 458.9 MB, free: 120.2 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.107e-05/0.4693, allocations: 7.875 kB / 458.9 MB, free: 120.2 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.186e-05/0.4693, allocations: 15.53 kB / 458.9 MB, free: 120.2 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009191/0.4785, allocations: 6.893 MB / 465.8 MB, free: 119.7 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.973e-06/0.4785, allocations: 0 / 465.8 MB, free: 119.7 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008888/0.4794, allocations: 342.6 kB / 466.1 MB, free: 119.7 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00218/0.4816, allocations: 0.8922 MB / 467 MB, free: 119.7 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000118/0.4817, allocations: 40.28 kB / 467.1 MB, free: 119.7 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004267/0.486, allocations: 5.776 MB / 472.8 MB, free: 115.5 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.276e-06/0.486, allocations: 0.625 kB / 472.8 MB, free: 115.5 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004491/0.4905, allocations: 3.514 MB / 476.3 MB, free: 112.7 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001085/0.4916, allocations: 0.6872 MB / 477 MB, free: 112.4 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003215/0.4919, allocations: 45.89 kB / 477.1 MB, free: 112.3 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001008/0.4929, allocations: 187.9 kB / 477.3 MB, free: 112.2 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002551/0.4931, allocations: 140.5 kB / 477.4 MB, free: 112.1 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.682e-05/0.4932, allocations: 59.41 kB / 477.5 MB, free: 112.1 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002058/0.4953, allocations: 1.834 MB / 479.3 MB, free: 110.4 MB / 378.7 MB Notification: Performance of sort global known variables: time 4e-08/0.4953, allocations: 6 kB / 479.3 MB, free: 110.4 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003823/0.4991, allocations: 1.417 MB / 480.7 MB, free: 109 MB / 378.7 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 (169): * Single equations (assignments): 164 * 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.0003692/0.4995, allocations: 193.7 kB / 480.9 MB, free: 108.8 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.004685/0.5042, allocations: 3.876 MB / 484.8 MB, free: 105 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.506e-06/0.5042, allocations: 0 / 484.8 MB, free: 105 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001227/0.5054, allocations: 1.243 MB / 486 MB, free: 103.7 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001608/0.507, allocations: 0.5034 MB / 486.5 MB, free: 103.3 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0113/0.5183, allocations: 9.641 MB / 496.2 MB, free: 93.59 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00112/0.5194, allocations: 1.592 MB / 497.8 MB, free: 91.98 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.002397/0.5218, allocations: 1.741 MB / 499.5 MB, free: 90.23 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005613/0.5224, allocations: 280.4 kB / 499.8 MB, free: 89.96 MB / 378.7 MB Notification: Performance of SimCode: time 1.633e-06/0.5224, allocations: 3.938 kB / 499.8 MB, free: 89.95 MB / 378.7 MB Notification: Performance of Templates: time 0.04933/0.5717, allocations: 42.39 MB / 0.5295 GB, free: 47.61 MB / 378.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Rotational3DEffects/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.235635907389224]