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.001071/0.001071, allocations: 102.1 kB / 16.62 MB, free: 6.809 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.001555/0.001556, allocations: 193.8 kB / 17.55 MB, free: 5.953 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.298/1.298, allocations: 222.9 MB / 241.2 MB, free: 15.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009506/0.0009507, allocations: 51.39 kB / 300.1 MB, free: 6.215 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08165/0.08262, allocations: 49.44 MB / 349.6 MB, free: 4.762 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.2116/0.2943, allocations: 69.53 MB / 419.1 MB, free: 15.2 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.03385/0.3282, allocations: 13.83 MB / 432.9 MB, free: 1.371 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.015/0.3432, allocations: 307.2 kB / 433.2 MB, free: 1.07 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007704/0.351, allocations: 4.067 MB / 437.3 MB, free: 12.99 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005803/0.3568, allocations: 2.033 MB / 439.3 MB, free: 10.95 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002255/0.3591, allocations: 0.8738 MB / 440.2 MB, free: 10.08 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.008421/0.3675, allocations: 6.466 MB / 446.7 MB, free: 3.602 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00709/0.3747, allocations: 5.487 MB / 452.2 MB, free: 14.07 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003351/0.378, allocations: 2.181 MB / 454.3 MB, free: 11.88 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004302/0.3824, allocations: 3.132 MB / 457.5 MB, free: 8.742 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001395/0.3838, allocations: 472 kB / 457.9 MB, free: 8.281 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002845/0.3866, allocations: 1.385 MB / 459.3 MB, free: 6.895 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002758/0.3894, allocations: 2.572 MB / 461.9 MB, free: 4.316 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00404/0.3935, allocations: 2.906 MB / 464.8 MB, free: 1.395 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00915/0.4026, allocations: 8.992 MB / 473.8 MB, free: 8.375 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.781e-06/0.4027, allocations: 0 / 473.8 MB, free: 8.375 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.4027, allocations: 0 / 473.8 MB, free: 8.375 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002373/0.4029, allocations: 0 / 473.8 MB, free: 8.375 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.01609/0.419, allocations: 6.13 MB / 479.9 MB, free: 2.172 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.547e-05/0.4191, allocations: 12.03 kB / 479.9 MB, free: 2.16 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01181/0.4309, allocations: 2.575 MB / 482.5 MB, free: 15.57 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008326/0.4393, allocations: 3.801 MB / 486.3 MB, free: 11.72 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002325/0.4396, allocations: 312.2 kB / 486.6 MB, free: 11.41 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001498/0.4411, allocations: 435.9 kB / 487 MB, free: 10.99 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02056/0.4616, allocations: 11.73 MB / 498.8 MB, free: 14.52 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001746/0.4619, allocations: 67.42 kB / 498.8 MB, free: 14.45 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006919/0.4626, allocations: 183.9 kB / 499 MB, free: 14.27 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003411/0.466, allocations: 2.085 MB / 0.4894 GB, free: 12.18 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01951/0.4855, allocations: 10.1 MB / 0.4992 GB, free: 2.07 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2475/0.7331, allocations: 45.96 MB / 0.5441 GB, free: 124.3 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01179/0.7449, allocations: 4.37 MB / 0.5484 GB, free: 123.6 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003367/0.7483, allocations: 2.468 MB / 0.5508 GB, free: 123.2 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01337/0.7617, allocations: 9.858 MB / 0.5604 GB, free: 118.6 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.123e-05/0.7618, allocations: 50.94 kB / 0.5605 GB, free: 118.5 MB / 446.1 MB Notification: Performance of pre-optimization done (n=171): time 4.148e-06/0.7618, allocations: 0 / 0.5605 GB, free: 118.5 MB / 446.1 MB Notification: Performance of matching and sorting (n=197): time 0.04565/0.8074, allocations: 19.96 MB / 0.5799 GB, free: 108.4 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.557e-05/0.8075, allocations: 204.5 kB / 0.5801 GB, free: 108.1 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004745/0.8123, allocations: 4.711 MB / 0.5847 GB, free: 103.4 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002177/0.8125, allocations: 53.7 kB / 0.5848 GB, free: 103.3 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001315/0.8138, allocations: 3.603 MB / 0.5883 GB, free: 99.75 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005108/0.8143, allocations: 0.7562 MB / 0.589 GB, free: 99 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001251/0.8156, allocations: 1.344 MB / 0.5904 GB, free: 97.64 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.538e-05/0.8156, allocations: 305.1 kB / 0.5906 GB, free: 97.34 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002566/0.8182, allocations: 2.414 MB / 0.593 GB, free: 94.93 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003732/0.822, allocations: 6.274 MB / 0.5991 GB, free: 86.91 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00709/0.8291, allocations: 9.319 MB / 0.6082 GB, free: 75.81 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.105e-05/0.8292, allocations: 40 kB / 0.6083 GB, free: 75.77 MB / 446.1 MB Notification: Performance of matching and sorting (n=858) (initialization): time 0.01394/0.8431, allocations: 9.797 MB / 0.6178 GB, free: 65.96 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.841e-05/0.8432, allocations: 64 kB / 0.6179 GB, free: 65.9 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001008/0.8433, allocations: 139.9 kB / 0.618 GB, free: 65.77 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003848/0.8472, allocations: 1.62 MB / 0.6196 GB, free: 64.14 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004061/0.8512, allocations: 1.493 MB / 0.6211 GB, free: 62.65 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009926/0.8612, allocations: 10.26 MB / 0.6311 GB, free: 52.12 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004538/0.8658, allocations: 363.5 kB / 0.6314 GB, free: 51.77 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006934/0.8665, allocations: 395.7 kB / 0.6318 GB, free: 51.38 MB / 446.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.003048/0.8695, allocations: 2.482 MB / 0.6342 GB, free: 48.89 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006542/0.8702, allocations: 407.3 kB / 0.6346 GB, free: 48.49 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006657/0.8769, allocations: 4.243 MB / 0.6388 GB, free: 44.22 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.656e-05/0.8769, allocations: 20 kB / 0.6388 GB, free: 44.2 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.413e-05/0.8769, allocations: 8 kB / 0.6388 GB, free: 44.2 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.068e-05/0.877, allocations: 8.156 kB / 0.6388 GB, free: 44.19 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01568/0.8927, allocations: 9.773 MB / 0.6483 GB, free: 34.38 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.607e-05/0.8927, allocations: 0 / 0.6483 GB, free: 34.38 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001373/0.8941, allocations: 295.8 kB / 0.6486 GB, free: 34.09 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003596/0.8977, allocations: 1.369 MB / 0.65 GB, free: 32.72 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002834/0.898, allocations: 35.98 kB / 0.65 GB, free: 32.68 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009326/0.9073, allocations: 9.394 MB / 0.6592 GB, free: 23.01 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.996e-06/0.9074, allocations: 0 / 0.6592 GB, free: 23.01 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009279/0.9167, allocations: 6.965 MB / 0.666 GB, free: 16 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001059/0.9177, allocations: 455.7 kB / 0.6664 GB, free: 15.54 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005279/0.9183, allocations: 35.36 kB / 0.6664 GB, free: 15.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001507/0.9198, allocations: 115.8 kB / 0.6666 GB, free: 15.39 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003543/0.9202, allocations: 125.1 kB / 0.6667 GB, free: 15.27 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001348/0.9203, allocations: 48 kB / 0.6667 GB, free: 15.22 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00334/0.9237, allocations: 2.972 MB / 0.6696 GB, free: 12.25 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.9237, allocations: 0 / 0.6696 GB, free: 12.25 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00459/0.9283, allocations: 1.202 MB / 0.6708 GB, free: 11.05 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.0003787/0.9286, allocations: 172.8 kB / 0.671 GB, free: 10.88 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00949/0.9381, allocations: 7.041 MB / 0.6778 GB, free: 3.867 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.36e-06/0.9382, allocations: 384 / 0.6778 GB, free: 3.867 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002765/0.9409, allocations: 2.014 MB / 0.6798 GB, free: 1.828 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003392/0.9444, allocations: 0.5407 MB / 0.6803 GB, free: 1.293 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02095/0.9653, allocations: 13.66 MB / 0.6937 GB, free: 3.602 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00525/0.9706, allocations: 3.865 MB / 0.6974 GB, free: 15.7 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.004888/0.9755, allocations: 1.984 MB / 0.6994 GB, free: 13.71 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008806/0.9764, allocations: 271.4 kB / 0.6996 GB, free: 13.45 MB / 478.1 MB Notification: Performance of SimCode: time 1.213e-06/0.9764, allocations: 0 / 0.6996 GB, free: 13.45 MB / 478.1 MB Notification: Performance of Templates: time 0.2416/1.218, allocations: 45.42 MB / 0.744 GB, free: 157.2 MB / 478.1 MB 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