Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_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_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008993/0.0008994, allocations: 178.3 kB / 17.36 MB, free: 4.324 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.369/1.369, allocations: 205.6 MB / 223.7 MB, free: 8.949 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007641/0.0007641, allocations: 96.06 kB / 272.1 MB, free: 8.137 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000233/0.0002331, allocations: 4 kB / 329 MB, free: 15.08 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.22/0.2203, allocations: 47.58 MB / 376.6 MB, free: 45.59 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.04869/0.269, allocations: 63.88 MB / 440.5 MB, free: 484 kB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.04474/0.3138, allocations: 16.64 MB / 457.1 MB, free: 15.11 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01779/0.3317, allocations: 303.2 kB / 457.4 MB, free: 14.82 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003274/0.335, allocations: 0.5091 MB / 457.9 MB, free: 14.3 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.009248/0.3443, allocations: 2.137 MB / 460.1 MB, free: 12.16 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003208/0.3475, allocations: 0.8543 MB / 460.9 MB, free: 11.3 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.01558/0.3631, allocations: 8.544 MB / 469.5 MB, free: 2.742 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01743/0.3806, allocations: 9.064 MB / 478.5 MB, free: 9.184 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005115/0.3858, allocations: 1.759 MB / 480.3 MB, free: 7.418 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006623/0.3925, allocations: 2.651 MB / 482.9 MB, free: 4.758 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001424/0.3939, allocations: 196 kB / 483.1 MB, free: 4.566 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00419/0.3982, allocations: 1.104 MB / 484.2 MB, free: 3.461 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00418/0.4024, allocations: 2.275 MB / 486.5 MB, free: 1.18 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.005639/0.408, allocations: 2.61 MB / 489.1 MB, free: 14.55 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01481/0.4229, allocations: 8.891 MB / 498 MB, free: 5.625 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.977e-06/0.4229, allocations: 4 kB / 498 MB, free: 5.621 MB / 378.7 MB Notification: Performance of FrontEnd: time 5.421e-06/0.423, allocations: 3.984 kB / 498 MB, free: 5.617 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003323/0.4233, allocations: 0 / 498 MB, free: 5.617 MB / 378.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.01821/0.4415, allocations: 5.2 MB / 0.4914 GB, free: 348 kB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.659e-05/0.4416, allocations: 12.03 kB / 0.4914 GB, free: 336 kB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2401/0.6817, allocations: 2.66 MB / 0.494 GB, free: 111.8 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007823/0.6896, allocations: 3.968 MB / 0.4979 GB, free: 109.6 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002708/0.6899, allocations: 312.9 kB / 0.4982 GB, free: 109.5 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001445/0.6913, allocations: 446.8 kB / 0.4986 GB, free: 109.3 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01838/0.7097, allocations: 12.23 MB / 0.5106 GB, free: 99.44 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001316/0.7099, allocations: 53.17 kB / 0.5106 GB, free: 99.39 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004393/0.7104, allocations: 199.2 kB / 0.5108 GB, free: 99.23 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002822/0.7132, allocations: 2.206 MB / 0.513 GB, free: 97.05 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01664/0.7298, allocations: 10.52 MB / 0.5233 GB, free: 86.54 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0447/0.7746, allocations: 47.59 MB / 0.5697 GB, free: 37.85 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009371/0.784, allocations: 4.599 MB / 0.5742 GB, free: 33.1 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002891/0.7869, allocations: 2.642 MB / 0.5768 GB, free: 30.45 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01282/0.7998, allocations: 10.44 MB / 0.587 GB, free: 19.87 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.852e-05/0.7998, allocations: 55.88 kB / 0.587 GB, free: 19.81 MB / 378.7 MB Notification: Performance of pre-optimization done (n=192): time 4.118e-06/0.7999, allocations: 0 / 0.587 GB, free: 19.81 MB / 378.7 MB Notification: Performance of matching and sorting (n=218): time 0.04731/0.8472, allocations: 20.98 MB / 0.6075 GB, free: 14.71 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001056/0.8473, allocations: 205.2 kB / 0.6077 GB, free: 14.46 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006324/0.8536, allocations: 4.781 MB / 0.6124 GB, free: 9.68 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004298/0.8541, allocations: 57.7 kB / 0.6124 GB, free: 9.617 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002621/0.8567, allocations: 3.723 MB / 0.6161 GB, free: 5.848 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001095/0.8579, allocations: 0.8408 MB / 0.6169 GB, free: 4.996 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003194/0.8582, allocations: 139.9 kB / 0.617 GB, free: 4.859 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000365/0.8586, allocations: 0.5953 MB / 0.6176 GB, free: 4.258 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003763/0.8623, allocations: 2.555 MB / 0.6201 GB, free: 1.699 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006977/0.8693, allocations: 6.534 MB / 0.6265 GB, free: 9.199 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01253/0.8819, allocations: 9.779 MB / 0.636 GB, free: 13.47 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001106/0.8821, allocations: 40 kB / 0.6361 GB, free: 13.43 MB / 426.7 MB Notification: Performance of matching and sorting (n=896) (initialization): time 0.02027/0.9023, allocations: 10.22 MB / 0.6461 GB, free: 3.191 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.713e-05/0.9025, allocations: 64 kB / 0.6461 GB, free: 3.129 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001538/0.9026, allocations: 140.2 kB / 0.6463 GB, free: 2.992 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004572/0.9072, allocations: 1.616 MB / 0.6478 GB, free: 1.371 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.1832/1.09, allocations: 1.568 MB / 0.6494 GB, free: 138.8 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01096/1.101, allocations: 9.547 MB / 0.6587 GB, free: 134.2 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005224/1.107, allocations: 396 kB / 0.6591 GB, free: 134.1 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001142/1.108, allocations: 401.7 kB / 0.6595 GB, free: 134.1 MB / 426.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.004459/1.112, allocations: 2.571 MB / 0.662 GB, free: 133 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008648/1.113, allocations: 425.3 kB / 0.6624 GB, free: 133 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008078/1.121, allocations: 4.628 MB / 0.6669 GB, free: 131.4 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.863e-05/1.121, allocations: 23.59 kB / 0.6669 GB, free: 131.4 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.532e-05/1.121, allocations: 7.875 kB / 0.6669 GB, free: 131.4 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.143e-05/1.121, allocations: 7.625 kB / 0.6669 GB, free: 131.4 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01604/1.137, allocations: 10.49 MB / 0.6772 GB, free: 127.2 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.654e-05/1.138, allocations: 0 / 0.6772 GB, free: 127.2 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001528/1.139, allocations: 349.8 kB / 0.6775 GB, free: 127.1 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003407/1.142, allocations: 1.353 MB / 0.6788 GB, free: 126.4 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001944/1.143, allocations: 40.42 kB / 0.6789 GB, free: 126.4 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00852/1.151, allocations: 8.741 MB / 0.6874 GB, free: 118 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/1.151, allocations: 0 / 0.6874 GB, free: 118 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009999/1.161, allocations: 7.566 MB / 0.6948 GB, free: 110.6 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001728/1.163, allocations: 0.7879 MB / 0.6956 GB, free: 109.9 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004841/1.164, allocations: 32.78 kB / 0.6956 GB, free: 109.9 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001449/1.165, allocations: 135.8 kB / 0.6957 GB, free: 109.8 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004064/1.165, allocations: 142.1 kB / 0.6959 GB, free: 109.6 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001322/1.166, allocations: 56.55 kB / 0.6959 GB, free: 109.6 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.003588/1.169, allocations: 2.998 MB / 0.6988 GB, free: 106.6 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.3e-07/1.169, allocations: 0 / 0.6988 GB, free: 106.6 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004627/1.174, allocations: 1.269 MB / 0.7001 GB, free: 105.3 MB / 426.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.0003449/1.174, allocations: 174.8 kB / 0.7002 GB, free: 105.1 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.007855/1.182, allocations: 6.363 MB / 0.7065 GB, free: 98.82 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.436e-06/1.182, allocations: 0 / 0.7065 GB, free: 98.82 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002562/1.185, allocations: 2.191 MB / 0.7086 GB, free: 96.62 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003343/1.188, allocations: 0.5321 MB / 0.7091 GB, free: 96.1 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01756/1.206, allocations: 14.46 MB / 0.7232 GB, free: 81.69 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003329/1.209, allocations: 4.009 MB / 0.7272 GB, free: 77.65 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.004734/1.214, allocations: 2.083 MB / 0.7292 GB, free: 75.56 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007601/1.214, allocations: 283.4 kB / 0.7295 GB, free: 75.29 MB / 426.7 MB Notification: Performance of SimCode: time 6.51e-07/1.214, allocations: 0 / 0.7295 GB, free: 75.29 MB / 426.7 MB Notification: Performance of Templates: time 0.06991/1.284, allocations: 44.92 MB / 0.7733 GB, free: 30.48 MB / 426.7 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.makefile (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=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe 2>&1) 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","../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches