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.001639/0.001639, allocations: 109.4 kB / 18.4 MB, free: 4.695 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.002039/0.002039, allocations: 185.3 kB / 19.33 MB, free: 3.773 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.309/2.309, 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.001487/0.001487, allocations: 51.92 kB / 329.2 MB, free: 3.316 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1315/0.133, allocations: 46.62 MB / 375.8 MB, free: 4.586 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.3339/0.4669, allocations: 14.23 MB / 390 MB, free: 5.109 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01402/0.481, allocations: 4.643 MB / 394.7 MB, free: 2.152 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004718/0.4859, allocations: 99.91 kB / 394.8 MB, free: 2.129 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01007/0.496, allocations: 4.212 MB / 399 MB, free: 176 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01082/0.5069, allocations: 2.268 MB / 401.3 MB, free: 15.09 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003592/0.5105, allocations: 0.9311 MB / 402.2 MB, free: 14.68 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01389/0.5244, allocations: 5.905 MB / 408.1 MB, free: 11.64 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01056/0.5351, allocations: 5.3 MB / 413.4 MB, free: 8.637 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006722/0.5419, allocations: 2.206 MB / 415.6 MB, free: 7.379 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007854/0.5498, allocations: 2.941 MB / 418.5 MB, free: 4.73 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002983/0.5528, allocations: 496 kB / 419 MB, free: 4.246 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006788/0.5597, allocations: 1.37 MB / 420.4 MB, free: 2.875 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006164/0.5659, allocations: 2.657 MB / 423.1 MB, free: 216 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00741/0.5734, allocations: 3.003 MB / 426.1 MB, free: 13.19 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01557/0.589, allocations: 9.558 MB / 435.6 MB, free: 3.602 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.895e-06/0.5891, allocations: 0 / 435.6 MB, free: 3.602 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.264e-06/0.5891, allocations: 0 / 435.6 MB, free: 3.602 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0003755/0.5895, allocations: 0 / 435.6 MB, free: 3.602 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.02084/0.6103, allocations: 6.347 MB / 442 MB, free: 13.18 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.18e-05/0.6104, allocations: 8.031 kB / 442 MB, free: 13.17 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01337/0.6238, allocations: 2.622 MB / 444.6 MB, free: 10.54 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01278/0.6366, allocations: 4.031 MB / 448.6 MB, free: 6.445 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005337/0.6372, allocations: 316.5 kB / 448.9 MB, free: 6.133 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00282/0.64, allocations: 447.9 kB / 449.4 MB, free: 5.695 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03999/0.68, allocations: 12.24 MB / 461.6 MB, free: 8.684 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003351/0.6805, allocations: 51.5 kB / 461.7 MB, free: 8.633 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001628/0.6821, allocations: 191.8 kB / 461.8 MB, free: 8.445 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006105/0.6882, allocations: 2.218 MB / 464.1 MB, free: 6.227 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03395/0.7223, allocations: 10.54 MB / 474.6 MB, free: 11.66 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08139/0.8037, allocations: 47.34 MB / 0.5097 GB, free: 10.93 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01348/0.8173, allocations: 4.601 MB / 0.5142 GB, free: 6.18 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00429/0.8216, allocations: 2.639 MB / 0.5168 GB, free: 3.531 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02308/0.8447, allocations: 10.45 MB / 0.527 GB, free: 8.914 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.665e-05/0.8449, allocations: 59.81 kB / 0.527 GB, free: 8.848 MB / 462.1 MB Notification: Performance of pre-optimization done (n=192): time 1.057e-05/0.8449, allocations: 0 / 0.527 GB, free: 8.848 MB / 462.1 MB Notification: Performance of matching and sorting (n=218): time 0.1152/0.9601, allocations: 20.97 MB / 0.5475 GB, free: 3.77 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002526/0.9604, allocations: 209.2 kB / 0.5477 GB, free: 3.52 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.4138/1.374, allocations: 4.82 MB / 0.5524 GB, free: 148.3 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008213/1.375, allocations: 56.05 kB / 0.5525 GB, free: 148.3 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.006049/1.381, allocations: 3.728 MB / 0.5561 GB, free: 146.6 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002226/1.383, allocations: 0.8269 MB / 0.5569 GB, free: 146 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.007728/1.391, allocations: 1.398 MB / 0.5583 GB, free: 145.3 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 6.736e-05/1.391, allocations: 305.5 kB / 0.5586 GB, free: 145 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009732/1.401, allocations: 2.58 MB / 0.5611 GB, free: 144.1 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01331/1.414, allocations: 6.557 MB / 0.5675 GB, free: 138 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02206/1.437, allocations: 9.805 MB / 0.5771 GB, free: 129.9 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0004853/1.437, allocations: 39.38 kB / 0.5771 GB, free: 129.9 MB / 478.1 MB Notification: Performance of matching and sorting (n=896) (initialization): time 0.04173/1.479, allocations: 10.26 MB / 0.5871 GB, free: 126.2 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000451/1.479, allocations: 64.91 kB / 0.5872 GB, free: 126.2 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004563/1.48, allocations: 140.2 kB / 0.5873 GB, free: 126.2 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008884/1.489, allocations: 1.617 MB / 0.5889 GB, free: 125.9 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009934/1.499, allocations: 1.562 MB / 0.5904 GB, free: 125.7 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0203/1.519, allocations: 10.26 MB / 0.6005 GB, free: 119.8 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01085/1.53, allocations: 383 kB / 0.6008 GB, free: 119.6 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002257/1.532, allocations: 408 kB / 0.6012 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.009899/1.542, allocations: 2.574 MB / 0.6037 GB, free: 116.9 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002201/1.545, allocations: 426.4 kB / 0.6041 GB, free: 116.5 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01662/1.561, allocations: 4.62 MB / 0.6087 GB, free: 112.4 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.583e-05/1.561, allocations: 23.91 kB / 0.6087 GB, free: 112.3 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.912e-05/1.561, allocations: 8 kB / 0.6087 GB, free: 112.3 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.618e-05/1.561, allocations: 15.97 kB / 0.6087 GB, free: 112.3 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03646/1.598, allocations: 10.43 MB / 0.6189 GB, free: 101.9 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.141e-05/1.598, allocations: 6.688 kB / 0.6189 GB, free: 101.9 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003553/1.602, allocations: 347.5 kB / 0.6192 GB, free: 101.5 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007673/1.609, allocations: 1.353 MB / 0.6205 GB, free: 100.2 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006748/1.61, allocations: 43.92 kB / 0.6206 GB, free: 100.1 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01915/1.629, allocations: 9.393 MB / 0.6298 GB, free: 90.46 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.901e-06/1.629, allocations: 0 / 0.6298 GB, free: 90.46 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02196/1.651, allocations: 7.562 MB / 0.6371 GB, free: 82.86 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003837/1.655, allocations: 0.7806 MB / 0.6379 GB, free: 82.05 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001913/1.657, allocations: 32 kB / 0.6379 GB, free: 82.02 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004056/1.661, allocations: 136 kB / 0.6381 GB, free: 81.89 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009334/1.662, allocations: 129.8 kB / 0.6382 GB, free: 81.77 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004818/1.663, allocations: 59.98 kB / 0.6382 GB, free: 81.71 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.009254/1.672, allocations: 3.045 MB / 0.6412 GB, free: 78.67 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.393e-06/1.672, allocations: 0 / 0.6412 GB, free: 78.67 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.01278/1.685, allocations: 1.261 MB / 0.6424 GB, free: 77.41 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.001141/1.686, allocations: 167.3 kB / 0.6426 GB, free: 77.25 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01818/1.704, allocations: 6.398 MB / 0.6489 GB, free: 70.86 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.3e-05/1.704, allocations: 0 / 0.6489 GB, free: 70.86 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00562/1.71, allocations: 2.198 MB / 0.651 GB, free: 68.64 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006528/1.717, allocations: 0.5602 MB / 0.6515 GB, free: 68.1 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03585/1.752, allocations: 12.23 MB / 0.6635 GB, free: 55.86 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008693/1.761, allocations: 3.968 MB / 0.6674 GB, free: 51.86 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002218/1.763, allocations: 339.4 kB / 0.6677 GB, free: 51.52 MB / 478.1 MB Notification: Performance of SimCode: time 1.703e-06/1.764, allocations: 0 / 0.6677 GB, free: 51.52 MB / 478.1 MB Notification: Performance of Templates: time 0.639/2.403, allocations: 119.7 MB / 0.7846 GB, free: 121.4 MB / 494.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/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