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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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=5000,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=5000,variableFilter="time|gearConstraint.actuatedRevolute_b.phi|gearConstraint.actuatedRevolute_b.w|inertia2.phi|inertia2.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001538/0.001538, allocations: 109.1 kB / 17.86 MB, free: 5.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001931/0.001932, allocations: 209.7 kB / 18.79 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.351/1.351, allocations: 227.4 MB / 246.9 MB, free: 10.69 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001366/0.001366, allocations: 63.3 kB / 306.9 MB, free: 1.004 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09273/0.09412, allocations: 50.53 MB / 357.4 MB, free: 14.46 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.2312/0.3254, allocations: 65.49 MB / 422.9 MB, free: 10.11 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.03125/0.3567, allocations: 13.16 MB / 436.1 MB, free: 12.93 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01297/0.3697, allocations: 295.2 kB / 436.4 MB, free: 12.64 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007993/0.3778, allocations: 4.2 MB / 440.6 MB, free: 8.426 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006025/0.3839, allocations: 1.993 MB / 442.6 MB, free: 6.426 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002256/0.3862, allocations: 0.8543 MB / 443.4 MB, free: 5.57 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01088/0.3971, allocations: 8.796 MB / 452.2 MB, free: 12.76 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007218/0.4044, allocations: 5.102 MB / 457.3 MB, free: 7.613 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003953/0.4084, allocations: 1.869 MB / 459.2 MB, free: 5.738 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004845/0.4132, allocations: 2.979 MB / 462.2 MB, free: 2.75 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001854/0.4151, allocations: 332 kB / 462.5 MB, free: 2.426 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003559/0.4187, allocations: 1.268 MB / 463.8 MB, free: 1.156 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00326/0.422, allocations: 2.388 MB / 466.1 MB, free: 14.76 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004006/0.4261, allocations: 2.703 MB / 468.9 MB, free: 12.04 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00725/0.4333, allocations: 7.184 MB / 476 MB, free: 4.844 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.642e-06/0.4334, allocations: 0 / 476 MB, free: 4.844 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.4334, allocations: 0 / 476 MB, free: 4.844 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002652/0.4337, allocations: 0 / 476 MB, free: 4.844 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: 1731 * Number of variables: 1731 Notification: Performance of Generate backend data structure: time 0.01401/0.4477, allocations: 6.068 MB / 482.1 MB, free: 14.7 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.05e-05/0.4478, allocations: 15.97 kB / 482.1 MB, free: 14.69 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01165/0.4594, allocations: 2.579 MB / 484.7 MB, free: 12.1 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008172/0.4676, allocations: 3.734 MB / 488.4 MB, free: 8.309 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002545/0.4679, allocations: 304.1 kB / 488.7 MB, free: 8.012 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001563/0.4695, allocations: 424 kB / 489.1 MB, free: 7.598 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02221/0.4917, allocations: 11.54 MB / 0.489 GB, free: 11.3 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000249/0.4921, allocations: 59.42 kB / 0.489 GB, free: 11.25 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001235/0.4933, allocations: 187.9 kB / 0.4892 GB, free: 11.06 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003613/0.4969, allocations: 2.026 MB / 0.4912 GB, free: 9.027 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01989/0.5169, allocations: 9.928 MB / 0.5009 GB, free: 15.09 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2382/0.7552, allocations: 45.53 MB / 0.5453 GB, free: 118.5 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01156/0.7668, allocations: 4.359 MB / 0.5496 GB, free: 117.8 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003564/0.7704, allocations: 2.469 MB / 0.552 GB, free: 117.2 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01689/0.7873, allocations: 9.85 MB / 0.5616 GB, free: 112.6 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.856e-05/0.7874, allocations: 47.47 kB / 0.5617 GB, free: 112.5 MB / 446.1 MB Notification: Performance of pre-optimization done (n=171): time 5.971e-06/0.7874, allocations: 0 / 0.5617 GB, free: 112.5 MB / 446.1 MB Notification: Performance of matching and sorting (n=197): time 0.05655/0.844, allocations: 19.91 MB / 0.5811 GB, free: 102.9 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.912e-05/0.8441, allocations: 211.5 kB / 0.5813 GB, free: 102.6 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008204/0.8523, allocations: 4.693 MB / 0.5859 GB, free: 97.92 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004824/0.8528, allocations: 53.7 kB / 0.5859 GB, free: 97.86 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002299/0.8552, allocations: 3.559 MB / 0.5894 GB, free: 94.3 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009869/0.8562, allocations: 0.7651 MB / 0.5902 GB, free: 93.55 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003108/0.8593, allocations: 1.334 MB / 0.5915 GB, free: 92.2 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.44e-05/0.8594, allocations: 301.1 kB / 0.5918 GB, free: 91.91 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00365/0.8631, allocations: 2.408 MB / 0.5941 GB, free: 89.5 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005812/0.8689, allocations: 6.248 MB / 0.6002 GB, free: 81.5 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008816/0.8778, allocations: 9.298 MB / 0.6093 GB, free: 70.42 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001323/0.8779, allocations: 40 kB / 0.6093 GB, free: 70.38 MB / 446.1 MB Notification: Performance of matching and sorting (n=855) (initialization): time 0.01716/0.8951, allocations: 9.767 MB / 0.6189 GB, free: 60.6 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.417e-05/0.8952, allocations: 64.91 kB / 0.6189 GB, free: 60.54 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001446/0.8954, allocations: 136 kB / 0.6191 GB, free: 60.4 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004306/0.8997, allocations: 1.613 MB / 0.6206 GB, free: 58.79 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004516/0.9043, allocations: 1.482 MB / 0.6221 GB, free: 57.3 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01046/0.9148, allocations: 9.545 MB / 0.6314 GB, free: 47.48 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005/0.9198, allocations: 359.4 kB / 0.6317 GB, free: 47.13 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001042/0.9209, allocations: 391.4 kB / 0.6321 GB, free: 46.75 MB / 446.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.004361/0.9253, allocations: 2.461 MB / 0.6345 GB, free: 44.29 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009384/0.9262, allocations: 402.8 kB / 0.6349 GB, free: 43.89 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007733/0.934, allocations: 4.239 MB / 0.639 GB, free: 39.63 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.66e-05/0.9341, allocations: 24 kB / 0.6391 GB, free: 39.61 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.314e-05/0.9341, allocations: 8 kB / 0.6391 GB, free: 39.6 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.472e-05/0.9341, allocations: 11.91 kB / 0.6391 GB, free: 39.59 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01882/0.953, allocations: 9.72 MB / 0.6486 GB, free: 29.83 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.58e-05/0.953, allocations: 0 / 0.6486 GB, free: 29.83 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001538/0.9546, allocations: 299.6 kB / 0.6489 GB, free: 29.54 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003946/0.9585, allocations: 1.358 MB / 0.6502 GB, free: 28.18 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003716/0.959, allocations: 32 kB / 0.6502 GB, free: 28.14 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009536/0.9685, allocations: 8.75 MB / 0.6588 GB, free: 19.14 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/0.9686, allocations: 4 kB / 0.6588 GB, free: 19.13 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01066/0.9792, allocations: 6.965 MB / 0.6656 GB, free: 12.14 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001163/0.9804, allocations: 459.7 kB / 0.666 GB, free: 11.66 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001269/0.9817, allocations: 32 kB / 0.666 GB, free: 11.63 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002439/0.9842, allocations: 115.8 kB / 0.6661 GB, free: 11.52 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006614/0.9849, allocations: 125 kB / 0.6663 GB, free: 11.4 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002718/0.9852, allocations: 51.66 kB / 0.6663 GB, free: 11.35 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004836/0.99, allocations: 2.96 MB / 0.6692 GB, free: 8.395 MB / 446.1 MB Notification: Performance of sort global known variables: time 5.81e-07/0.99, allocations: 0 / 0.6692 GB, free: 8.395 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.006284/0.9963, allocations: 1.182 MB / 0.6704 GB, free: 7.215 MB / 446.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.0006102/0.997, allocations: 168.4 kB / 0.6705 GB, free: 7.043 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.008822/1.006, allocations: 5.96 MB / 0.6763 GB, free: 1.086 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.602e-06/1.006, allocations: 0 / 0.6763 GB, free: 1.086 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003421/1.009, allocations: 2.001 MB / 0.6783 GB, free: 15.06 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0047/1.014, allocations: 0.5052 MB / 0.6788 GB, free: 14.55 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02648/1.041, allocations: 14.01 MB / 0.6925 GB, free: 0.5117 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007236/1.048, allocations: 3.792 MB / 0.6962 GB, free: 12.68 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001335/1.049, allocations: 315.4 kB / 0.6965 GB, free: 12.38 MB / 478.1 MB Notification: Performance of SimCode: time 1.162e-06/1.049, allocations: 4 kB / 0.6965 GB, free: 12.37 MB / 478.1 MB Notification: Performance of Templates: time 0.3087/1.358, allocations: 111.7 MB / 0.8055 GB, free: 82.57 MB / 478.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.makefile (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) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Rotational3DEffects/GearConstraint/GearConstraint.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches