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.00132/0.00132, allocations: 84.98 kB / 23 MB, free: 1.5 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.001419/0.001419, allocations: 174.4 kB / 26.39 MB, free: 7.754 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.9243/0.9243, allocations: 158.6 MB / 188.3 MB, free: 2.82 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.753e-06/1.753e-06, allocations: 3.938 kB / 252.2 MB, free: 7.254 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.222e-05/2.398e-05, allocations: 6.25 kB / 252.3 MB, free: 7.246 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.01141/0.01144, allocations: 13.43 MB / 265.7 MB, free: 9.75 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.007549/0.01899, allocations: 4.545 MB / 270.2 MB, free: 5.191 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001584/0.02057, allocations: 111.4 kB / 270.3 MB, free: 5.082 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004506/0.02508, allocations: 4.474 MB / 274.8 MB, free: 0.5938 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003588/0.02866, allocations: 2.422 MB / 277.2 MB, free: 14.16 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001365/0.03003, allocations: 1.037 MB / 278.3 MB, free: 13.12 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00514/0.03517, allocations: 6.59 MB / 284.9 MB, free: 6.52 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003723/0.03889, allocations: 4.797 MB / 289.7 MB, free: 1.656 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00363/0.04252, allocations: 4.012 MB / 293.7 MB, free: 13.64 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002841/0.04536, allocations: 3.262 MB / 296.9 MB, free: 10.37 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005012/0.04586, allocations: 0.4961 MB / 297.4 MB, free: 9.871 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001483/0.04735, allocations: 1.334 MB / 298.8 MB, free: 8.535 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001824/0.04917, allocations: 2.852 MB / 301.6 MB, free: 5.676 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001439/0.05061, allocations: 1.823 MB / 303.4 MB, free: 3.848 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00481/0.05542, allocations: 6.174 MB / 309.6 MB, free: 13.65 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.489e-06/0.05542, allocations: 0 / 309.6 MB, free: 13.65 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.072e-06/0.05543, allocations: 0 / 309.6 MB, free: 13.65 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.887e-05/0.0555, allocations: 0 / 309.6 MB, free: 13.65 MB / 298.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.006964/0.06247, allocations: 6.676 MB / 316.3 MB, free: 6.895 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.531e-05/0.0625, allocations: 15.98 kB / 316.3 MB, free: 6.879 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00563/0.06813, allocations: 2.295 MB / 318.6 MB, free: 4.578 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003417/0.07155, allocations: 2.968 MB / 321.6 MB, free: 1.559 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001543/0.07171, allocations: 316.5 kB / 321.9 MB, free: 1.246 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006693/0.07237, allocations: 444.6 kB / 322.3 MB, free: 0.8125 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007188/0.07956, allocations: 6.63 MB / 328.9 MB, free: 9.125 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001022/0.07966, allocations: 63.5 kB / 329 MB, free: 9.062 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003327/0.08, allocations: 195.8 kB / 329.2 MB, free: 8.871 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001564/0.08156, allocations: 1.937 MB / 331.1 MB, free: 6.93 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004959/0.08652, allocations: 2.966 MB / 334.1 MB, free: 3.945 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1517/0.2382, allocations: 49.67 MB / 383.8 MB, free: 54.77 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003996/0.2422, allocations: 1.788 MB / 385.6 MB, free: 54.62 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000574/0.2428, allocations: 0.5439 MB / 386.1 MB, free: 54.57 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005331/0.2481, allocations: 4.659 MB / 390.8 MB, free: 53.51 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.165e-05/0.2482, allocations: 58.25 kB / 390.8 MB, free: 53.46 MB / 330.7 MB Notification: Performance of pre-optimization done (n=162): time 3.627e-06/0.2482, allocations: 0 / 390.8 MB, free: 53.46 MB / 330.7 MB Notification: Performance of matching and sorting (n=178): time 0.0134/0.2616, allocations: 6.327 MB / 397.1 MB, free: 52.13 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.033e-05/0.2616, allocations: 196.9 kB / 397.3 MB, free: 51.89 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003033/0.2646, allocations: 4.242 MB / 401.6 MB, free: 48.55 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 7.068e-05/0.2647, allocations: 53.7 kB / 401.6 MB, free: 48.49 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001527/0.2662, allocations: 4.174 MB / 405.8 MB, free: 44.57 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003972/0.2666, allocations: 0.7561 MB / 406.6 MB, free: 43.81 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001076/0.2677, allocations: 1.51 MB / 408.1 MB, free: 42.29 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.161e-05/0.2678, allocations: 480.5 kB / 408.5 MB, free: 41.82 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009031/0.2687, allocations: 0.6137 MB / 409.2 MB, free: 41.21 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002478/0.2712, allocations: 6.85 MB / 416 MB, free: 31.58 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004214/0.2754, allocations: 8.126 MB / 424.1 MB, free: 21.1 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.363e-05/0.2754, allocations: 40 kB / 424.2 MB, free: 21.06 MB / 330.7 MB Notification: Performance of matching and sorting (n=884) (initialization): time 0.004999/0.2804, allocations: 5.429 MB / 429.6 MB, free: 15.62 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.773e-05/0.2805, allocations: 71.94 kB / 429.7 MB, free: 15.55 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.161e-05/0.2805, allocations: 148 kB / 429.8 MB, free: 15.4 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000634/0.2812, allocations: 420.9 kB / 430.2 MB, free: 14.99 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002111/0.2833, allocations: 1.525 MB / 431.7 MB, free: 13.46 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001877/0.2852, allocations: 4.783 MB / 436.5 MB, free: 8.465 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002193/0.2873, allocations: 299.7 kB / 436.8 MB, free: 8.172 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002442/0.2876, allocations: 352 kB / 437.2 MB, free: 7.828 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 670 * 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 (844): * Single equations (assignments): 839 * 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,11,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001153/0.2887, allocations: 0.7301 MB / 437.9 MB, free: 7.09 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003861/0.2891, allocations: 453 kB / 438.3 MB, free: 6.648 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001239/0.2904, allocations: 1.112 MB / 439.5 MB, free: 5.512 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.573e-05/0.2904, allocations: 20 kB / 439.5 MB, free: 5.492 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.883e-06/0.2904, allocations: 4 kB / 439.5 MB, free: 5.488 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.819e-06/0.2904, allocations: 7.969 kB / 439.5 MB, free: 5.48 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00609/0.2965, allocations: 5.44 MB / 444.9 MB, free: 15.89 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.249e-05/0.2965, allocations: 4.656 kB / 444.9 MB, free: 15.89 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006854/0.2972, allocations: 279.5 kB / 445.2 MB, free: 15.62 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005663/0.2978, allocations: 218.5 kB / 445.4 MB, free: 15.4 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.471e-05/0.2978, allocations: 39.98 kB / 445.5 MB, free: 15.36 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002369/0.3002, allocations: 3.865 MB / 449.3 MB, free: 11.28 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.39e-06/0.3002, allocations: 11.94 kB / 449.3 MB, free: 11.27 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002208/0.3024, allocations: 2.318 MB / 451.6 MB, free: 8.82 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006791/0.3031, allocations: 0.5283 MB / 452.2 MB, free: 8.289 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002627/0.3034, allocations: 36 kB / 452.2 MB, free: 8.254 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000716/0.3041, allocations: 43.92 kB / 452.3 MB, free: 8.211 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001708/0.3042, allocations: 128.6 kB / 452.4 MB, free: 8.082 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.754e-05/0.3043, allocations: 44 kB / 452.4 MB, free: 8.039 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001495/0.3058, allocations: 1.738 MB / 454.2 MB, free: 6.297 MB / 346.7 MB Notification: Performance of sort global known variables: time 8e-08/0.3058, allocations: 4 kB / 454.2 MB, free: 6.293 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.003603/0.3094, allocations: 1.223 MB / 455.4 MB, free: 5.07 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * 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 (151): * Single equations (assignments): 146 * 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,9,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.0003094/0.3097, allocations: 195.9 kB / 455.6 MB, free: 4.875 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.003529/0.3133, allocations: 3.182 MB / 458.8 MB, free: 1.691 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.586e-06/0.3133, allocations: 4.062 kB / 458.8 MB, free: 1.688 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007598/0.314, allocations: 0.8609 MB / 459.6 MB, free: 0.7852 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001527/0.3155, allocations: 0.5047 MB / 460.1 MB, free: 304 kB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01032/0.3259, allocations: 9.277 MB / 469.4 MB, free: 6.855 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001333/0.3272, allocations: 1.569 MB / 471 MB, free: 5.258 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.001406/0.3286, allocations: 0.553 MB / 471.5 MB, free: 4.707 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001126/0.3297, allocations: 0.6621 MB / 472.2 MB, free: 4.043 MB / 362.7 MB Notification: Performance of SimCode: time 1.533e-06/0.3297, allocations: 0 / 472.2 MB, free: 4.043 MB / 362.7 MB Notification: Performance of Templates: time 0.1586/0.4883, allocations: 34.73 MB / 0.495 GB, free: 121.9 MB / 378.7 MB " [Timeout remaining time 660] 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.3455508621409535]