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.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 3.2.3+maint.om/package.mo", uses=false) 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.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_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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009417/0.0009417, allocations: 95.83 kB / 16.95 MB, free: 6.453 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.0009181/0.0009182, allocations: 181.9 kB / 17.84 MB, free: 6.008 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.535/1.535, allocations: 205.4 MB / 224 MB, free: 13.05 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004926/0.000493, allocations: 16 kB / 280.8 MB, free: 3.723 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1106/0.1111, allocations: 47.58 MB / 328.3 MB, free: 4.074 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.2842/0.3954, allocations: 63.66 MB / 392 MB, free: 8.613 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.037/0.4325, allocations: 13.41 MB / 405.4 MB, free: 7.531 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02001/0.4525, allocations: 304.9 kB / 405.7 MB, free: 7.484 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.014/0.4665, allocations: 3.304 MB / 409 MB, free: 6.297 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.03198/0.4986, allocations: 9.746 MB / 418.8 MB, free: 1.656 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005026/0.5036, allocations: 0.8015 MB / 419.6 MB, free: 1.43 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.04735/0.551, allocations: 34.98 MB / 454.5 MB, free: 8.285 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0132/0.5642, allocations: 6.625 MB / 461.2 MB, free: 1.746 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004943/0.5692, allocations: 1.724 MB / 462.9 MB, free: 16 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005322/0.5746, allocations: 2.644 MB / 465.5 MB, free: 13.36 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001663/0.5763, allocations: 192 kB / 465.7 MB, free: 13.17 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003904/0.5802, allocations: 0.9753 MB / 466.7 MB, free: 12.2 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00408/0.5843, allocations: 2.264 MB / 469 MB, free: 9.926 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002857/0.5872, allocations: 1.084 MB / 470.1 MB, free: 8.832 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01142/0.5986, allocations: 7.415 MB / 477.5 MB, free: 1.402 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.552e-06/0.5987, allocations: 0 / 477.5 MB, free: 1.402 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.356e-06/0.5987, allocations: 0 / 477.5 MB, free: 1.402 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0004564/0.5992, allocations: 0 / 477.5 MB, free: 1.402 MB / 366.1 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.01534/0.6145, allocations: 5.27 MB / 482.7 MB, free: 12.05 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.476e-05/0.6146, allocations: 8.031 kB / 482.7 MB, free: 12.05 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01175/0.6263, allocations: 2.676 MB / 485.4 MB, free: 9.359 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01092/0.6373, allocations: 3.895 MB / 489.3 MB, free: 5.406 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003997/0.6377, allocations: 316.1 kB / 489.6 MB, free: 5.094 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002567/0.6403, allocations: 443.6 kB / 490.1 MB, free: 4.66 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02846/0.6688, allocations: 12.23 MB / 0.4905 GB, free: 7.66 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003333/0.6692, allocations: 59.44 kB / 0.4906 GB, free: 7.602 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001488/0.6707, allocations: 195.8 kB / 0.4908 GB, free: 7.41 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003806/0.6745, allocations: 2.203 MB / 0.4929 GB, free: 5.203 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02232/0.6969, allocations: 10.51 MB / 0.5032 GB, free: 10.68 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3027/0.9996, allocations: 47.56 MB / 0.5496 GB, free: 137.5 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01126/1.011, allocations: 4.596 MB / 0.5541 GB, free: 136.8 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003412/1.014, allocations: 2.638 MB / 0.5567 GB, free: 136.8 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01486/1.029, allocations: 10.44 MB / 0.5669 GB, free: 132.8 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.51e-05/1.029, allocations: 51.75 kB / 0.5669 GB, free: 132.7 MB / 446.1 MB Notification: Performance of pre-optimization done (n=192): time 4.669e-06/1.029, allocations: 0 / 0.5669 GB, free: 132.7 MB / 446.1 MB Notification: Performance of matching and sorting (n=218): time 0.04953/1.079, allocations: 21 MB / 0.5874 GB, free: 120.7 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001008/1.079, allocations: 197.2 kB / 0.5876 GB, free: 120.5 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006296/1.085, allocations: 4.796 MB / 0.5923 GB, free: 115.7 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003295/1.086, allocations: 60.77 kB / 0.5924 GB, free: 115.6 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001741/1.087, allocations: 3.719 MB / 0.596 GB, free: 111.9 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007566/1.088, allocations: 0.8234 MB / 0.5968 GB, free: 111.1 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000262/1.088, allocations: 143.3 kB / 0.5969 GB, free: 110.9 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0002715/1.089, allocations: 0.5992 MB / 0.5975 GB, free: 110.3 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003014/1.092, allocations: 2.554 MB / 0.6 GB, free: 107.8 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004304/1.096, allocations: 6.547 MB / 0.6064 GB, free: 99.46 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004485/1.101, allocations: 3.992 MB / 0.6103 GB, free: 95.72 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.033e-05/1.101, allocations: 43.94 kB / 0.6103 GB, free: 95.68 MB / 446.1 MB Notification: Performance of matching and sorting (n=896) (initialization): time 0.01493/1.116, allocations: 10.21 MB / 0.6203 GB, free: 85.54 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.445e-05/1.116, allocations: 64 kB / 0.6204 GB, free: 85.47 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001227/1.116, allocations: 144 kB / 0.6205 GB, free: 85.33 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003665/1.12, allocations: 1.636 MB / 0.6221 GB, free: 83.69 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0048/1.124, allocations: 1.567 MB / 0.6236 GB, free: 82.12 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01011/1.134, allocations: 9.546 MB / 0.633 GB, free: 72.31 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005846/1.14, allocations: 383.4 kB / 0.6333 GB, free: 71.94 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001279/1.142, allocations: 408 kB / 0.6337 GB, free: 71.54 MB / 446.1 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(3,77.8%) 31,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005322/1.147, allocations: 2.58 MB / 0.6362 GB, free: 68.95 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001135/1.148, allocations: 422.5 kB / 0.6366 GB, free: 68.53 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008444/1.157, allocations: 4.629 MB / 0.6412 GB, free: 63.88 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.944e-05/1.157, allocations: 26.81 kB / 0.6412 GB, free: 63.86 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.684e-05/1.157, allocations: 8.875 kB / 0.6412 GB, free: 63.85 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.543e-05/1.157, allocations: 11.95 kB / 0.6412 GB, free: 63.84 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02054/1.177, allocations: 10.48 MB / 0.6514 GB, free: 53.34 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.499e-05/1.177, allocations: 4 kB / 0.6514 GB, free: 53.34 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001693/1.179, allocations: 347.5 kB / 0.6518 GB, free: 53 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003584/1.183, allocations: 1.365 MB / 0.6531 GB, free: 51.62 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002956/1.183, allocations: 43.81 kB / 0.6531 GB, free: 51.59 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009161/1.192, allocations: 8.736 MB / 0.6617 GB, free: 42.58 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.316e-06/1.192, allocations: 4.062 kB / 0.6617 GB, free: 42.57 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01123/1.203, allocations: 7.556 MB / 0.6691 GB, free: 34.99 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002202/1.206, allocations: 0.7887 MB / 0.6698 GB, free: 34.18 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001019/1.207, allocations: 32 kB / 0.6699 GB, free: 34.14 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002295/1.209, allocations: 132.8 kB / 0.67 GB, free: 34.02 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004522/1.21, allocations: 133.8 kB / 0.6701 GB, free: 33.89 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001692/1.21, allocations: 57.55 kB / 0.6702 GB, free: 33.83 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00585/1.216, allocations: 3.013 MB / 0.6731 GB, free: 30.82 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.9e-07/1.216, allocations: 0 / 0.6731 GB, free: 30.82 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.008222/1.224, allocations: 1.267 MB / 0.6743 GB, free: 29.56 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 (169): * Single equations (assignments): 164 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 27,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007606/1.225, allocations: 187.8 kB / 0.6745 GB, free: 29.38 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01066/1.235, allocations: 6.36 MB / 0.6807 GB, free: 23.02 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.506e-06/1.235, allocations: 0 / 0.6807 GB, free: 23.02 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003474/1.239, allocations: 2.196 MB / 0.6829 GB, free: 20.81 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005082/1.244, allocations: 0.5186 MB / 0.6834 GB, free: 20.29 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02376/1.268, allocations: 13.88 MB / 0.6969 GB, free: 6.371 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006127/1.274, allocations: 4.003 MB / 0.7009 GB, free: 2.336 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.005822/1.28, allocations: 2.091 MB / 0.7029 GB, free: 244 kB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001243/1.281, allocations: 279.5 kB / 0.7032 GB, free: 15.96 MB / 462.1 MB Notification: Performance of SimCode: time 1.323e-06/1.281, allocations: 0 / 0.7032 GB, free: 15.96 MB / 462.1 MB Notification: Performance of Templates: time 0.3088/1.59, allocations: 43.99 MB / 0.7461 GB, free: 158.9 MB / 462.1 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