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.001105/0.001105, allocations: 108.4 kB / 18.34 MB, free: 4.676 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.001167/0.001167, allocations: 186.9 kB / 19.28 MB, free: 3.75 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.418/1.418, allocations: 205.1 MB / 225.2 MB, free: 12.23 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.001371/0.001371, allocations: 43.94 kB / 282.1 MB, free: 2.441 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08996/0.09135, allocations: 46.63 MB / 328.7 MB, free: 3.738 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.01485/0.1062, allocations: 14.23 MB / 342.9 MB, free: 5.434 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.009533/0.1158, allocations: 4.649 MB / 347.6 MB, free: 0.7734 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002171/0.1181, allocations: 95.69 kB / 347.7 MB, free: 0.6797 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007555/0.1256, allocations: 4.229 MB / 351.9 MB, free: 12.44 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005745/0.1314, allocations: 2.26 MB / 354.2 MB, free: 10.17 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00253/0.134, allocations: 0.9282 MB / 355.1 MB, free: 9.238 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.008972/0.143, allocations: 5.894 MB / 361 MB, free: 3.328 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007509/0.1505, allocations: 5.309 MB / 366.3 MB, free: 13.95 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003826/0.1543, allocations: 2.208 MB / 368.5 MB, free: 11.74 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003892/0.1583, allocations: 2.925 MB / 371.4 MB, free: 8.805 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001398/0.1597, allocations: 496 kB / 371.9 MB, free: 8.32 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003067/0.1628, allocations: 1.366 MB / 373.3 MB, free: 6.953 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00315/0.1659, allocations: 2.642 MB / 375.9 MB, free: 4.305 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005007/0.171, allocations: 3.003 MB / 378.9 MB, free: 1.285 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2094/0.3804, allocations: 9.557 MB / 388.5 MB, free: 21.37 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.665e-06/0.3804, allocations: 0 / 388.5 MB, free: 21.37 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.274e-06/0.3805, allocations: 1.031 kB / 388.5 MB, free: 21.37 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0004574/0.3809, allocations: 0 / 388.5 MB, free: 21.37 MB / 318.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.02288/0.4038, allocations: 6.341 MB / 394.8 MB, free: 18.97 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.426e-05/0.4039, allocations: 9.562 kB / 394.8 MB, free: 18.97 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01365/0.4176, allocations: 2.614 MB / 397.5 MB, free: 18.61 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01299/0.4306, allocations: 4.035 MB / 401.5 MB, free: 17.81 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004246/0.4311, allocations: 316.9 kB / 401.8 MB, free: 17.8 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002819/0.4339, allocations: 450.2 kB / 402.2 MB, free: 17.78 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03011/0.464, allocations: 12.24 MB / 414.5 MB, free: 10.96 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003577/0.4644, allocations: 58.89 kB / 414.5 MB, free: 10.94 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002214/0.4667, allocations: 196.9 kB / 414.7 MB, free: 10.84 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003645/0.4703, allocations: 2.199 MB / 416.9 MB, free: 10.02 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02183/0.4922, allocations: 10.54 MB / 427.5 MB, free: 164 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07788/0.5701, allocations: 47.34 MB / 474.8 MB, free: 116 kB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01192/0.5821, allocations: 4.603 MB / 479.4 MB, free: 11.38 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003806/0.5859, allocations: 2.642 MB / 482.1 MB, free: 8.727 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01878/0.6048, allocations: 10.43 MB / 492.5 MB, free: 14.21 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.3e-05/0.6049, allocations: 51.88 kB / 492.5 MB, free: 14.16 MB / 398.1 MB Notification: Performance of pre-optimization done (n=192): time 5.42e-06/0.6049, allocations: 4 kB / 492.5 MB, free: 14.15 MB / 398.1 MB Notification: Performance of matching and sorting (n=218): time 0.06149/0.6664, allocations: 20.98 MB / 0.5015 GB, free: 9.129 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000109/0.6665, allocations: 207.1 kB / 0.5017 GB, free: 8.891 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009717/0.6762, allocations: 4.822 MB / 0.5064 GB, free: 4.066 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005838/0.6768, allocations: 53.7 kB / 0.5065 GB, free: 4.008 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003032/0.6799, allocations: 3.73 MB / 0.5101 GB, free: 304 kB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001175/0.6811, allocations: 0.827 MB / 0.5109 GB, free: 15.47 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00331/0.6844, allocations: 1.394 MB / 0.5123 GB, free: 14.07 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 8.727e-05/0.6845, allocations: 305.1 kB / 0.5126 GB, free: 13.77 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004295/0.6888, allocations: 2.578 MB / 0.5151 GB, free: 11.19 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006778/0.6956, allocations: 6.557 MB / 0.5215 GB, free: 2.738 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01166/0.7073, allocations: 9.805 MB / 0.5311 GB, free: 7.562 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001415/0.7075, allocations: 40 kB / 0.5311 GB, free: 7.523 MB / 446.1 MB Notification: Performance of matching and sorting (n=896) (initialization): time 0.2017/0.9092, allocations: 10.25 MB / 0.5411 GB, free: 155.9 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002433/0.9095, allocations: 66.36 kB / 0.5412 GB, free: 155.9 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004059/0.9099, allocations: 143.2 kB / 0.5413 GB, free: 155.9 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005267/0.9152, allocations: 1.615 MB / 0.5429 GB, free: 155.9 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005826/0.921, allocations: 1.56 MB / 0.5444 GB, free: 155.9 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01207/0.9331, allocations: 10.27 MB / 0.5544 GB, free: 151.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006199/0.9394, allocations: 382.8 kB / 0.5548 GB, free: 151.4 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001872/0.9413, allocations: 404.6 kB / 0.5552 GB, free: 151.4 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 (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.007351/0.9486, allocations: 2.585 MB / 0.5577 GB, free: 150.4 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001452/0.9501, allocations: 422.9 kB / 0.5581 GB, free: 150.4 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009378/0.9595, allocations: 4.626 MB / 0.5626 GB, free: 148.8 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.398e-05/0.9596, allocations: 26.31 kB / 0.5627 GB, free: 148.8 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.499e-05/0.9596, allocations: 7.75 kB / 0.5627 GB, free: 148.8 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.4e-05/0.9596, allocations: 8.844 kB / 0.5627 GB, free: 148.8 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02294/0.9826, allocations: 10.43 MB / 0.5729 GB, free: 142.8 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.185e-05/0.9826, allocations: 0 / 0.5729 GB, free: 142.8 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00182/0.9845, allocations: 341.9 kB / 0.5732 GB, free: 142.4 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003816/0.9883, allocations: 1.361 MB / 0.5745 GB, free: 141.1 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003282/0.9887, allocations: 41.7 kB / 0.5745 GB, free: 141 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009952/0.9986, allocations: 9.378 MB / 0.5837 GB, free: 131.5 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.127e-06/0.9987, allocations: 12.08 kB / 0.5837 GB, free: 131.5 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01234/1.011, allocations: 7.55 MB / 0.5911 GB, free: 124.2 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002657/1.014, allocations: 0.7867 MB / 0.5919 GB, free: 123.5 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001346/1.015, allocations: 32 kB / 0.5919 GB, free: 123.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002551/1.018, allocations: 127.8 kB / 0.592 GB, free: 123.3 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005067/1.018, allocations: 137.4 kB / 0.5921 GB, free: 123.2 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002084/1.018, allocations: 59.2 kB / 0.5922 GB, free: 123.1 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.005807/1.024, allocations: 3.037 MB / 0.5952 GB, free: 120.1 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.81e-07/1.024, allocations: 0 / 0.5952 GB, free: 120.1 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.007659/1.032, allocations: 1.265 MB / 0.5964 GB, free: 118.8 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 (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.0007451/1.033, allocations: 168.2 kB / 0.5966 GB, free: 118.7 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.009976/1.043, allocations: 6.401 MB / 0.6028 GB, free: 112.3 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.492e-06/1.043, allocations: 1.875 kB / 0.6028 GB, free: 112.3 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003292/1.046, allocations: 2.195 MB / 0.605 GB, free: 110.1 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005306/1.051, allocations: 0.5502 MB / 0.6055 GB, free: 109.6 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02402/1.075, allocations: 11.72 MB / 0.6169 GB, free: 97.86 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004166/1.08, allocations: 4.003 MB / 0.6208 GB, free: 93.83 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.004142/1.084, allocations: 2.083 MB / 0.6229 GB, free: 91.74 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000745/1.084, allocations: 287.4 kB / 0.6232 GB, free: 91.46 MB / 446.1 MB Notification: Performance of SimCode: time 1.463e-06/1.084, allocations: 0 / 0.6232 GB, free: 91.46 MB / 446.1 MB Notification: Performance of Templates: time 0.06966/1.154, allocations: 41.7 MB / 0.6639 GB, free: 49.89 MB / 446.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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Rotational3DEffects/GearConstraint/GearConstraint.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches