Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001069/0.001069, allocations: 104.9 kB / 17.06 MB, free: 6.027 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001107/0.001107, allocations: 195 kB / 17.99 MB, free: 5.109 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.27/1.27, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001705/0.001705, allocations: 47.94 kB / 351.3 MB, free: 3.219 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2479/0.2496, allocations: 49.43 MB / 400.7 MB, free: 8.707 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.01367/0.2633, allocations: 13.58 MB / 414.3 MB, free: 11.2 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.009377/0.2727, allocations: 4.547 MB / 418.8 MB, free: 6.641 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001928/0.2747, allocations: 91.75 kB / 418.9 MB, free: 6.551 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007173/0.2819, allocations: 4.206 MB / 423.1 MB, free: 2.332 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006173/0.2881, allocations: 2.179 MB / 425.3 MB, free: 148 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002748/0.2909, allocations: 0.9282 MB / 426.2 MB, free: 15.21 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00961/0.3005, allocations: 6.062 MB / 432.3 MB, free: 9.145 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006696/0.3072, allocations: 5.212 MB / 437.5 MB, free: 3.867 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004536/0.3118, allocations: 2.142 MB / 439.7 MB, free: 1.719 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00448/0.3163, allocations: 2.816 MB / 442.5 MB, free: 14.89 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001018/0.3174, allocations: 480 kB / 442.9 MB, free: 14.43 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002431/0.3198, allocations: 1.366 MB / 444.3 MB, free: 13.06 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002216/0.322, allocations: 2.56 MB / 446.9 MB, free: 10.49 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002765/0.3248, allocations: 2.879 MB / 449.8 MB, free: 7.598 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008976/0.3338, allocations: 9.177 MB / 458.9 MB, free: 14.39 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.53e-06/0.3338, allocations: 3.938 kB / 458.9 MB, free: 14.39 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.3338, allocations: 0 / 458.9 MB, free: 14.39 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001998/0.334, allocations: 0 / 458.9 MB, free: 14.39 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: 1760 * Number of variables: 1760 Notification: Performance of Generate backend data structure: time 0.01161/0.3457, allocations: 6.142 MB / 465.1 MB, free: 8.172 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.379e-05/0.3457, allocations: 8.031 kB / 465.1 MB, free: 8.164 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0113/0.357, allocations: 2.575 MB / 467.7 MB, free: 5.578 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00858/0.3656, allocations: 3.879 MB / 471.5 MB, free: 1.645 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000343/0.366, allocations: 300.2 kB / 471.8 MB, free: 1.352 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001374/0.3674, allocations: 435.8 kB / 472.3 MB, free: 0.9258 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01937/0.3868, allocations: 11.73 MB / 484 MB, free: 4.453 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001365/0.3869, allocations: 55.53 kB / 484 MB, free: 4.398 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004875/0.3874, allocations: 183.9 kB / 484.2 MB, free: 4.219 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003459/0.3909, allocations: 2.089 MB / 486.3 MB, free: 2.121 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01868/0.4096, allocations: 10.09 MB / 496.4 MB, free: 8.016 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0545/0.4641, allocations: 45.76 MB / 0.5295 GB, free: 8.863 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01057/0.4748, allocations: 4.373 MB / 0.5337 GB, free: 4.348 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003116/0.4779, allocations: 2.47 MB / 0.5361 GB, free: 1.871 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2396/0.7175, allocations: 9.847 MB / 0.5458 GB, free: 126.6 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.935e-05/0.7176, allocations: 53.62 kB / 0.5458 GB, free: 126.6 MB / 462.1 MB Notification: Performance of pre-optimization done (n=171): time 4.278e-06/0.7176, allocations: 0 / 0.5458 GB, free: 126.6 MB / 462.1 MB Notification: Performance of matching and sorting (n=197): time 0.04744/0.7651, allocations: 19.96 MB / 0.5653 GB, free: 114.4 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.273e-05/0.7652, allocations: 201.2 kB / 0.5655 GB, free: 114.2 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004833/0.77, allocations: 4.713 MB / 0.5701 GB, free: 109.5 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002669/0.7703, allocations: 49.7 kB / 0.5701 GB, free: 109.4 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001379/0.7717, allocations: 3.601 MB / 0.5737 GB, free: 105.8 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005719/0.7723, allocations: 0.7706 MB / 0.5744 GB, free: 105 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001254/0.7735, allocations: 1.333 MB / 0.5757 GB, free: 103.7 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.513e-05/0.7736, allocations: 301.1 kB / 0.576 GB, free: 103.4 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002603/0.7762, allocations: 2.41 MB / 0.5784 GB, free: 101 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003637/0.7798, allocations: 6.268 MB / 0.5845 GB, free: 92.85 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007173/0.787, allocations: 9.327 MB / 0.5936 GB, free: 81.62 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.364e-05/0.7871, allocations: 40 kB / 0.5936 GB, free: 81.58 MB / 462.1 MB Notification: Performance of matching and sorting (n=858) (initialization): time 0.01357/0.8007, allocations: 9.8 MB / 0.6032 GB, free: 71.77 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.682e-05/0.8008, allocations: 61 kB / 0.6032 GB, free: 71.71 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.332e-05/0.8009, allocations: 136 kB / 0.6034 GB, free: 71.57 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003804/0.8047, allocations: 1.616 MB / 0.605 GB, free: 69.95 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003848/0.8086, allocations: 1.485 MB / 0.6064 GB, free: 68.46 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009917/0.8185, allocations: 10.26 MB / 0.6164 GB, free: 57.93 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004989/0.8235, allocations: 363.4 kB / 0.6168 GB, free: 57.58 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006517/0.8242, allocations: 399.8 kB / 0.6172 GB, free: 57.19 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 617 * Number of states: 0 () * Number of discrete variables: 47 (torque1.torqueArrow.arrowLine.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 (796): * Single equations (assignments): 791 * 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.003086/0.8273, allocations: 2.486 MB / 0.6196 GB, free: 54.7 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006152/0.8279, allocations: 406.8 kB / 0.62 GB, free: 54.3 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006768/0.8347, allocations: 4.232 MB / 0.6241 GB, free: 50.05 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.517e-05/0.8347, allocations: 27.94 kB / 0.6241 GB, free: 50.02 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.131e-05/0.8347, allocations: 8 kB / 0.6241 GB, free: 50.02 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.39e-05/0.8348, allocations: 7.969 kB / 0.6241 GB, free: 50.01 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0155/0.8503, allocations: 9.723 MB / 0.6336 GB, free: 40.24 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.096e-05/0.8503, allocations: 0 / 0.6336 GB, free: 40.24 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001425/0.8518, allocations: 303.5 kB / 0.6339 GB, free: 39.95 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003631/0.8554, allocations: 1.362 MB / 0.6353 GB, free: 38.58 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002209/0.8557, allocations: 31.98 kB / 0.6353 GB, free: 38.55 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009692/0.8654, allocations: 9.393 MB / 0.6445 GB, free: 28.88 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.649e-06/0.8654, allocations: 7.938 kB / 0.6445 GB, free: 28.88 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009918/0.8753, allocations: 6.956 MB / 0.6513 GB, free: 21.88 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001399/0.8768, allocations: 459.6 kB / 0.6517 GB, free: 21.41 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009943/0.8778, allocations: 36 kB / 0.6517 GB, free: 21.38 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001999/0.8798, allocations: 111.8 kB / 0.6518 GB, free: 21.27 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003973/0.8802, allocations: 120.6 kB / 0.652 GB, free: 21.15 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001482/0.8804, allocations: 55.98 kB / 0.652 GB, free: 21.09 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004425/0.8848, allocations: 2.968 MB / 0.6549 GB, free: 18.13 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.1e-07/0.8848, allocations: 0 / 0.6549 GB, free: 18.13 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0049/0.8897, allocations: 1.201 MB / 0.6561 GB, free: 16.93 MB / 462.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.000392/0.8901, allocations: 173.1 kB / 0.6562 GB, free: 16.76 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.007587/0.8977, allocations: 5.99 MB / 0.6621 GB, free: 10.78 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.809e-06/0.8978, allocations: 0 / 0.6621 GB, free: 10.78 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002469/0.9002, allocations: 2.008 MB / 0.6641 GB, free: 8.742 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00307/0.9033, allocations: 0.5497 MB / 0.6646 GB, free: 8.203 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01598/0.9193, allocations: 11.11 MB / 0.6754 GB, free: 13.05 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00536/0.9247, allocations: 3.86 MB / 0.6792 GB, free: 9.16 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.00465/0.9294, allocations: 1.984 MB / 0.6812 GB, free: 7.168 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009531/0.9304, allocations: 271.4 kB / 0.6814 GB, free: 6.906 MB / 478.1 MB Notification: Performance of SimCode: time 1.042e-06/0.9304, allocations: 0 / 0.6814 GB, free: 6.906 MB / 478.1 MB Notification: Performance of Templates: time 0.08088/1.011, allocations: 42.07 MB / 0.7225 GB, free: 13.15 MB / 0.5137 GB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Rotational3DEffects/GearConstraint/GearConstraint.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches