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.001291/0.001291, allocations: 105.8 kB / 17.59 MB, free: 5.445 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.001149/0.001149, allocations: 187.3 kB / 18.51 MB, free: 4.527 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.38/1.38, allocations: 222.9 MB / 242.2 MB, free: 15.23 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001029/0.00103, allocations: 50.39 kB / 301.3 MB, free: 5.883 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09645/0.0975, allocations: 49.45 MB / 350.7 MB, free: 4.426 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.0142/0.1117, allocations: 13.57 MB / 364.3 MB, free: 6.777 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009325/0.1211, allocations: 4.54 MB / 368.8 MB, free: 2.223 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003044/0.1242, allocations: 95.69 kB / 368.9 MB, free: 2.129 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.2004/0.3246, allocations: 4.192 MB / 373.1 MB, free: 9.902 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006447/0.3311, allocations: 2.185 MB / 375.3 MB, free: 9.809 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002358/0.3335, allocations: 0.9275 MB / 376.2 MB, free: 9.789 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01002/0.3435, allocations: 6.061 MB / 382.3 MB, free: 9.688 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006899/0.3505, allocations: 5.229 MB / 387.5 MB, free: 7.633 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004581/0.3551, allocations: 2.136 MB / 389.7 MB, free: 6.766 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004673/0.3598, allocations: 2.821 MB / 392.5 MB, free: 5.207 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001695/0.3615, allocations: 474.8 kB / 393 MB, free: 5.207 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003792/0.3654, allocations: 1.349 MB / 394.3 MB, free: 4.789 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003835/0.3692, allocations: 2.535 MB / 396.8 MB, free: 3.312 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00434/0.3736, allocations: 2.887 MB / 399.7 MB, free: 0.5391 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01027/0.3839, allocations: 8.935 MB / 408.7 MB, free: 7.797 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.979e-06/0.3839, allocations: 0 / 408.7 MB, free: 7.797 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.384, allocations: 3.938 kB / 408.7 MB, free: 7.793 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003057/0.3843, allocations: 0 / 408.7 MB, free: 7.793 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: 1760 * Number of variables: 1760 Notification: Performance of Generate backend data structure: time 0.01473/0.399, allocations: 6.13 MB / 414.8 MB, free: 1.695 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.812e-05/0.3991, allocations: 12.03 kB / 414.8 MB, free: 1.684 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01204/0.4111, allocations: 2.578 MB / 417.4 MB, free: 15.1 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008319/0.4195, allocations: 3.805 MB / 421.2 MB, free: 11.28 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002574/0.4198, allocations: 304.7 kB / 421.5 MB, free: 11.02 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001592/0.4214, allocations: 437.5 kB / 421.9 MB, free: 10.62 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02226/0.4437, allocations: 11.73 MB / 433.6 MB, free: 14.27 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002088/0.4439, allocations: 59.44 kB / 433.7 MB, free: 14.21 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008988/0.4449, allocations: 184.2 kB / 433.9 MB, free: 14.07 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003505/0.4484, allocations: 2.093 MB / 436 MB, free: 11.98 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02073/0.4691, allocations: 10.09 MB / 446.1 MB, free: 1.879 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05931/0.5285, allocations: 45.97 MB / 492 MB, free: 2.77 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01122/0.5398, allocations: 4.365 MB / 496.4 MB, free: 14.26 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003624/0.5434, allocations: 2.471 MB / 498.9 MB, free: 11.78 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01811/0.5616, allocations: 9.86 MB / 0.4968 GB, free: 1.812 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.63e-05/0.5617, allocations: 49.48 kB / 0.4969 GB, free: 1.754 MB / 414.1 MB Notification: Performance of pre-optimization done (n=171): time 4.919e-06/0.5617, allocations: 0 / 0.4969 GB, free: 1.754 MB / 414.1 MB Notification: Performance of matching and sorting (n=197): time 0.06016/0.6219, allocations: 19.97 MB / 0.5164 GB, free: 13.69 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001331/0.622, allocations: 201.2 kB / 0.5165 GB, free: 13.45 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007527/0.6296, allocations: 4.705 MB / 0.5211 GB, free: 8.73 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004729/0.6301, allocations: 53.7 kB / 0.5212 GB, free: 8.672 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002695/0.6328, allocations: 3.603 MB / 0.5247 GB, free: 5.07 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001106/0.6339, allocations: 0.755 MB / 0.5254 GB, free: 4.32 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002319/0.6363, allocations: 1.342 MB / 0.5268 GB, free: 2.969 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 9.951e-05/0.6364, allocations: 305.1 kB / 0.5271 GB, free: 2.668 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003565/0.6399, allocations: 2.418 MB / 0.5294 GB, free: 252 kB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2025/0.8425, allocations: 6.268 MB / 0.5355 GB, free: 141.4 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01085/0.8533, allocations: 9.319 MB / 0.5446 GB, free: 133.7 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002249/0.8536, allocations: 38.66 kB / 0.5447 GB, free: 133.7 MB / 446.1 MB Notification: Performance of matching and sorting (n=858) (initialization): time 0.0227/0.8763, allocations: 9.797 MB / 0.5542 GB, free: 130.3 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001283/0.8765, allocations: 63.03 kB / 0.5543 GB, free: 130.3 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001905/0.8767, allocations: 137.8 kB / 0.5544 GB, free: 130.3 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004187/0.8809, allocations: 1.623 MB / 0.556 GB, free: 130 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004644/0.8856, allocations: 1.483 MB / 0.5575 GB, free: 129.9 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0108/0.8964, allocations: 10.26 MB / 0.5675 GB, free: 124.1 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005526/0.9019, allocations: 369.9 kB / 0.5678 GB, free: 124 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001266/0.9032, allocations: 390.2 kB / 0.5682 GB, free: 123.9 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.004526/0.9078, allocations: 2.489 MB / 0.5706 GB, free: 122.8 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008867/0.9087, allocations: 405.3 kB / 0.571 GB, free: 122.8 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007069/0.9158, allocations: 4.235 MB / 0.5752 GB, free: 119.6 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.316e-05/0.9158, allocations: 24.84 kB / 0.5752 GB, free: 119.6 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.567e-05/0.9159, allocations: 4 kB / 0.5752 GB, free: 119.6 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.621e-05/0.9159, allocations: 11.73 kB / 0.5752 GB, free: 119.6 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01578/0.9317, allocations: 9.761 MB / 0.5847 GB, free: 110 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.067e-05/0.9317, allocations: 4 kB / 0.5847 GB, free: 110 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001395/0.9332, allocations: 302.8 kB / 0.585 GB, free: 109.7 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003526/0.9367, allocations: 1.363 MB / 0.5864 GB, free: 108.4 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002434/0.937, allocations: 35.98 kB / 0.5864 GB, free: 108.3 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00916/0.9461, allocations: 9.398 MB / 0.5956 GB, free: 98.75 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.9462, allocations: 1.875 kB / 0.5956 GB, free: 98.75 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00927/0.9554, allocations: 6.963 MB / 0.6024 GB, free: 91.88 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001242/0.9567, allocations: 455.7 kB / 0.6028 GB, free: 91.41 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006062/0.9574, allocations: 36 kB / 0.6028 GB, free: 91.38 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001557/0.9589, allocations: 112 kB / 0.6029 GB, free: 91.27 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003564/0.9593, allocations: 125 kB / 0.6031 GB, free: 91.14 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001243/0.9594, allocations: 55.91 kB / 0.6031 GB, free: 91.09 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003948/0.9634, allocations: 2.972 MB / 0.606 GB, free: 88.12 MB / 446.1 MB Notification: Performance of sort global known variables: time 4.41e-07/0.9634, allocations: 0 / 0.606 GB, free: 88.12 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00612/0.9695, allocations: 1.203 MB / 0.6072 GB, free: 86.93 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.0004696/0.97, allocations: 169.7 kB / 0.6074 GB, free: 86.75 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01068/0.9807, allocations: 7.03 MB / 0.6142 GB, free: 79.74 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.462e-06/0.9808, allocations: 4 kB / 0.6142 GB, free: 79.74 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002577/0.9833, allocations: 2.011 MB / 0.6162 GB, free: 77.7 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003192/0.9866, allocations: 0.5406 MB / 0.6167 GB, free: 77.18 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01822/1.005, allocations: 11.76 MB / 0.6282 GB, free: 65.39 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003664/1.009, allocations: 3.84 MB / 0.632 GB, free: 61.51 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001309/1.01, allocations: 317 kB / 0.6323 GB, free: 61.2 MB / 446.1 MB Notification: Performance of SimCode: time 1.934e-06/1.01, allocations: 4 kB / 0.6323 GB, free: 61.2 MB / 446.1 MB Notification: Performance of Templates: time 0.326/1.336, allocations: 113 MB / 0.7426 GB, free: 103.6 MB / 446.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Rotational3DEffects/GearConstraint/GearConstraint.csv","/var/lib/jenkins1/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