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.00151/0.00151, allocations: 113.4 kB / 17.73 MB, free: 5.359 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.001735/0.001735, allocations: 184.1 kB / 18.66 MB, free: 4.438 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.584/1.584, allocations: 205.1 MB / 224.5 MB, free: 12.25 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.001353/0.001354, allocations: 52.39 kB / 328.5 MB, free: 3.316 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09713/0.09849, allocations: 46.63 MB / 375.1 MB, free: 4.578 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.2086/0.3071, allocations: 14.22 MB / 389.4 MB, free: 5.078 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01199/0.3191, allocations: 4.648 MB / 394 MB, free: 2.129 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00386/0.3231, allocations: 92.16 kB / 394.1 MB, free: 2.113 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00928/0.3324, allocations: 4.224 MB / 398.3 MB, free: 148 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00768/0.3401, allocations: 2.264 MB / 400.6 MB, free: 15.07 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002884/0.343, allocations: 0.9243 MB / 401.5 MB, free: 14.67 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01043/0.3535, allocations: 5.896 MB / 407.4 MB, free: 11.64 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007465/0.361, allocations: 5.302 MB / 412.7 MB, free: 8.641 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00598/0.367, allocations: 2.21 MB / 414.9 MB, free: 7.379 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006454/0.3735, allocations: 2.938 MB / 417.9 MB, free: 4.742 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001792/0.3753, allocations: 500 kB / 418.4 MB, free: 4.254 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003556/0.3789, allocations: 1.369 MB / 419.7 MB, free: 2.883 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00311/0.382, allocations: 2.654 MB / 422.4 MB, free: 228 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004209/0.3862, allocations: 2.999 MB / 425.4 MB, free: 13.21 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01073/0.397, allocations: 9.566 MB / 434.9 MB, free: 3.609 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.804e-06/0.397, allocations: 4 kB / 434.9 MB, free: 3.605 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.397, allocations: 0 / 434.9 MB, free: 3.605 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002696/0.3973, allocations: 0 / 434.9 MB, free: 3.605 MB / 350.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.0144/0.4117, allocations: 6.343 MB / 441.3 MB, free: 13.18 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.209e-05/0.4118, allocations: 8.031 kB / 441.3 MB, free: 13.17 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0121/0.4239, allocations: 2.618 MB / 443.9 MB, free: 10.54 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009189/0.4331, allocations: 4.035 MB / 448 MB, free: 6.449 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002279/0.4334, allocations: 312.5 kB / 448.3 MB, free: 6.141 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00128/0.4347, allocations: 459.8 kB / 448.7 MB, free: 5.695 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02254/0.4572, allocations: 12.23 MB / 460.9 MB, free: 8.691 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001936/0.4575, allocations: 59.42 kB / 461 MB, free: 8.633 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005313/0.458, allocations: 199.8 kB / 461.2 MB, free: 8.438 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00357/0.4616, allocations: 2.199 MB / 463.4 MB, free: 6.238 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02085/0.4825, allocations: 10.54 MB / 473.9 MB, free: 11.68 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06242/0.5449, allocations: 47.34 MB / 0.5091 GB, free: 10.94 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01188/0.5568, allocations: 4.601 MB / 0.5135 GB, free: 6.191 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003806/0.5607, allocations: 2.643 MB / 0.5161 GB, free: 3.539 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01697/0.5777, allocations: 10.45 MB / 0.5263 GB, free: 8.926 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.695e-05/0.5778, allocations: 59.81 kB / 0.5264 GB, free: 8.859 MB / 462.1 MB Notification: Performance of pre-optimization done (n=192): time 4.749e-06/0.5778, allocations: 0 / 0.5264 GB, free: 8.859 MB / 462.1 MB Notification: Performance of matching and sorting (n=218): time 0.0621/0.6399, allocations: 20.98 MB / 0.5469 GB, free: 3.773 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001475/0.6401, allocations: 205.2 kB / 0.5471 GB, free: 3.527 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2707/0.9108, allocations: 4.815 MB / 0.5518 GB, free: 148.3 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006011/0.9114, allocations: 55.83 kB / 0.5518 GB, free: 148.3 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003734/0.9152, allocations: 3.722 MB / 0.5555 GB, free: 146.5 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001447/0.9166, allocations: 0.8356 MB / 0.5563 GB, free: 145.9 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00268/0.9193, allocations: 1.393 MB / 0.5576 GB, free: 145.3 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 6.808e-05/0.9194, allocations: 307.5 kB / 0.5579 GB, free: 145 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00503/0.9244, allocations: 2.583 MB / 0.5604 GB, free: 144.1 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007299/0.9318, allocations: 6.557 MB / 0.5668 GB, free: 137.9 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01202/0.9438, allocations: 9.809 MB / 0.5764 GB, free: 129.9 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002344/0.9441, allocations: 44.41 kB / 0.5765 GB, free: 129.9 MB / 478.1 MB Notification: Performance of matching and sorting (n=896) (initialization): time 0.02105/0.9652, allocations: 10.26 MB / 0.5865 GB, free: 126.1 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000102/0.9653, allocations: 67.31 kB / 0.5866 GB, free: 126.1 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001645/0.9655, allocations: 140 kB / 0.5867 GB, free: 126.1 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004042/0.9696, allocations: 1.611 MB / 0.5883 GB, free: 125.9 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004957/0.9745, allocations: 1.56 MB / 0.5898 GB, free: 125.7 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01051/0.9851, allocations: 10.26 MB / 0.5998 GB, free: 119.8 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006715/0.9918, allocations: 384.5 kB / 0.6002 GB, free: 119.6 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001061/0.9929, allocations: 408 kB / 0.6006 GB, free: 119.2 MB / 478.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.004307/0.9972, allocations: 2.576 MB / 0.6031 GB, free: 116.9 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009014/0.9981, allocations: 422.5 kB / 0.6035 GB, free: 116.5 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007587/1.006, allocations: 4.62 MB / 0.608 GB, free: 112.4 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.211e-05/1.006, allocations: 24 kB / 0.608 GB, free: 112.4 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.724e-05/1.006, allocations: 8 kB / 0.608 GB, free: 112.3 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.392e-05/1.006, allocations: 12.83 kB / 0.608 GB, free: 112.3 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01713/1.023, allocations: 10.43 MB / 0.6182 GB, free: 101.9 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.512e-05/1.023, allocations: 6.719 kB / 0.6182 GB, free: 101.9 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001524/1.025, allocations: 344.4 kB / 0.6186 GB, free: 101.5 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003527/1.028, allocations: 1.359 MB / 0.6199 GB, free: 100.2 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001903/1.028, allocations: 43.92 kB / 0.6199 GB, free: 100.1 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009038/1.037, allocations: 9.382 MB / 0.6291 GB, free: 90.48 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.985e-06/1.037, allocations: 3.984 kB / 0.6291 GB, free: 90.47 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01006/1.047, allocations: 7.56 MB / 0.6365 GB, free: 82.88 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001705/1.049, allocations: 0.7806 MB / 0.6372 GB, free: 82.07 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005288/1.05, allocations: 35.94 kB / 0.6373 GB, free: 82.04 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001625/1.051, allocations: 131.8 kB / 0.6374 GB, free: 81.91 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003835/1.052, allocations: 133.8 kB / 0.6375 GB, free: 81.78 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00014/1.052, allocations: 59.28 kB / 0.6376 GB, free: 81.73 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003494/1.055, allocations: 3.041 MB / 0.6406 GB, free: 78.69 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.9e-07/1.055, allocations: 0 / 0.6406 GB, free: 78.69 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.00493/1.06, allocations: 1.265 MB / 0.6418 GB, free: 77.43 MB / 478.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.0003572/1.061, allocations: 174.8 kB / 0.642 GB, free: 77.26 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.008244/1.069, allocations: 6.391 MB / 0.6482 GB, free: 70.87 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 4.889e-06/1.069, allocations: 0 / 0.6482 GB, free: 70.87 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003046/1.072, allocations: 2.196 MB / 0.6503 GB, free: 68.66 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003298/1.075, allocations: 0.5547 MB / 0.6509 GB, free: 68.12 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01742/1.093, allocations: 11.72 MB / 0.6623 GB, free: 56.39 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003531/1.096, allocations: 4.003 MB / 0.6662 GB, free: 52.35 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.004107/1.1, allocations: 2.087 MB / 0.6683 GB, free: 50.26 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007308/1.101, allocations: 287.4 kB / 0.6685 GB, free: 49.98 MB / 478.1 MB Notification: Performance of SimCode: time 7.81e-07/1.101, allocations: 0 / 0.6685 GB, free: 49.98 MB / 478.1 MB Notification: Performance of Templates: time 0.07002/1.171, allocations: 43.93 MB / 0.7115 GB, free: 6.086 MB / 478.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","/var/lib/jenkins/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