Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.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.BevelGear1D,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia2.phi|inertia2.w|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w|revolute3.phi|revolute3.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D") translateModel(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia2.phi|inertia2.w|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w|revolute3.phi|revolute3.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001385/0.001385, allocations: 110.2 kB / 18.25 MB, free: 4.898 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.001297/0.001297, allocations: 195.3 kB / 19.18 MB, free: 3.977 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.382/1.382, allocations: 205.1 MB / 225 MB, free: 12.3 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.001206/0.001206, allocations: 47.92 kB / 281.3 MB, free: 3.168 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09454/0.09576, allocations: 46.63 MB / 328 MB, free: 4.469 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D): time 0.01585/0.1117, allocations: 13.95 MB / 341.9 MB, free: 6.445 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01033/0.122, allocations: 4.724 MB / 346.6 MB, free: 1.707 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002601/0.1247, allocations: 83.75 kB / 346.7 MB, free: 1.625 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007418/0.1322, allocations: 4.092 MB / 350.8 MB, free: 13.52 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00656/0.1388, allocations: 2.077 MB / 352.9 MB, free: 11.43 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002461/0.1412, allocations: 0.8072 MB / 353.7 MB, free: 10.62 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.007619/0.1489, allocations: 4.608 MB / 358.3 MB, free: 6.004 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008364/0.1573, allocations: 5.133 MB / 363.4 MB, free: 0.8047 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004218/0.1615, allocations: 1.939 MB / 365.4 MB, free: 14.86 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004756/0.1663, allocations: 2.715 MB / 368.1 MB, free: 12.14 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00173/0.1681, allocations: 452 kB / 368.5 MB, free: 11.7 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00402/0.1721, allocations: 1.323 MB / 369.8 MB, free: 10.37 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003918/0.1761, allocations: 2.342 MB / 372.2 MB, free: 8.023 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005254/0.1813, allocations: 2.731 MB / 374.9 MB, free: 5.277 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1881/0.3695, allocations: 8.514 MB / 383.4 MB, free: 23.58 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.804e-06/0.3696, allocations: 0.5312 kB / 383.4 MB, free: 23.58 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.254e-06/0.3696, allocations: 0 / 383.4 MB, free: 23.58 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003217/0.3699, allocations: 0.5312 kB / 383.4 MB, free: 23.58 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: 1755 * Number of variables: 1755 Notification: Performance of Generate backend data structure: time 0.03559/0.4055, allocations: 6.962 MB / 390.4 MB, free: 21.41 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.782e-05/0.4056, allocations: 9.75 kB / 390.4 MB, free: 21.41 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01977/0.4254, allocations: 2.534 MB / 392.9 MB, free: 21.07 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009364/0.4348, allocations: 3.132 MB / 396.1 MB, free: 20.43 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004208/0.4353, allocations: 301 kB / 396.4 MB, free: 20.42 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003245/0.4385, allocations: 407.7 kB / 396.8 MB, free: 20.41 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03285/0.4714, allocations: 13.28 MB / 410 MB, free: 14.91 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002153/0.4717, allocations: 52.09 kB / 410.1 MB, free: 14.9 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001652/0.4733, allocations: 191 kB / 410.3 MB, free: 14.8 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00445/0.4778, allocations: 2.194 MB / 412.5 MB, free: 13.97 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02644/0.5043, allocations: 12.7 MB / 425.2 MB, free: 1.953 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08025/0.5846, allocations: 49.42 MB / 474.6 MB, free: 12 kB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02579/0.6104, allocations: 6.446 MB / 481 MB, free: 9.43 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00594/0.6164, allocations: 3.916 MB / 485 MB, free: 5.512 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001209/0.6176, allocations: 423.1 kB / 485.4 MB, free: 5.059 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.511e-05/0.6177, allocations: 55.88 kB / 485.4 MB, free: 4.992 MB / 382.1 MB Notification: Performance of pre-optimization done (n=217): time 5.26e-06/0.6177, allocations: 4 kB / 485.4 MB, free: 4.988 MB / 382.1 MB Notification: Performance of matching and sorting (n=255): time 0.1152/0.733, allocations: 36.18 MB / 0.5094 GB, free: 0.6914 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001205/0.7331, allocations: 205.9 kB / 0.5096 GB, free: 456 kB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007229/0.7404, allocations: 4.434 MB / 0.5139 GB, free: 11.99 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001058/0.7415, allocations: 61.7 kB / 0.514 GB, free: 11.93 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002778/0.7443, allocations: 3.448 MB / 0.5173 GB, free: 8.492 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001876/0.7462, allocations: 0.9563 MB / 0.5183 GB, free: 7.543 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003111/0.7493, allocations: 1.6 MB / 0.5198 GB, free: 5.938 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001029/0.7494, allocations: 309.1 kB / 0.5201 GB, free: 5.633 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006484/0.7559, allocations: 4.331 MB / 0.5244 GB, free: 1.297 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01048/0.7664, allocations: 8.233 MB / 0.5324 GB, free: 7.219 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2358/1.002, allocations: 13.38 MB / 0.5455 GB, free: 153.3 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001375/1.002, allocations: 42.2 kB / 0.5455 GB, free: 153.3 MB / 446.1 MB Notification: Performance of matching and sorting (n=903) (initialization): time 0.029/1.031, allocations: 14.79 MB / 0.5599 GB, free: 148.8 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.513e-05/1.032, allocations: 61.75 kB / 0.56 GB, free: 148.8 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001781/1.032, allocations: 137.7 kB / 0.5601 GB, free: 148.8 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006652/1.038, allocations: 2.455 MB / 0.5625 GB, free: 148.3 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006624/1.045, allocations: 1.788 MB / 0.5643 GB, free: 148.2 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01855/1.064, allocations: 17.06 MB / 0.5809 GB, free: 134.7 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007813/1.072, allocations: 470.9 kB / 0.5814 GB, free: 134.2 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001846/1.073, allocations: 0.494 MB / 0.5819 GB, free: 133.7 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 619 * Number of states: 0 () * Number of discrete variables: 36 (sensor2.torqueColor[3],sensor2.torqueColor[2],sensor2.torqueColor[1],bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],inertia2.cylinderColor[3],inertia2.cylinderColor[2],inertia2.cylinderColor[1],inertia1.cylinderColor[3],inertia1.cylinderColor[2],inertia1.cylinderColor[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]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (830): * Single equations (assignments): 824 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,16,100.0%), (4,21,100.0%), (2,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005069/1.079, allocations: 2.385 MB / 0.5842 GB, free: 131.4 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001154/1.08, allocations: 397 kB / 0.5846 GB, free: 131.2 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01393/1.094, allocations: 9.666 MB / 0.594 GB, free: 121.5 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.435e-05/1.094, allocations: 31.94 kB / 0.594 GB, free: 121.5 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.639e-05/1.094, allocations: 8 kB / 0.5941 GB, free: 121.5 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.107e-05/1.094, allocations: 15.95 kB / 0.5941 GB, free: 121.5 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0271/1.121, allocations: 18.15 MB / 0.6118 GB, free: 103.4 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.08e-05/1.121, allocations: 4 kB / 0.6118 GB, free: 103.4 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003244/1.124, allocations: 0.5888 MB / 0.6124 GB, free: 102.8 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00604/1.13, allocations: 2.239 MB / 0.6146 GB, free: 100.5 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007819/1.131, allocations: 127.8 kB / 0.6147 GB, free: 100.4 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01607/1.147, allocations: 15.63 MB / 0.6299 GB, free: 84.47 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.308e-06/1.147, allocations: 7.25 kB / 0.63 GB, free: 84.47 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01988/1.167, allocations: 15.17 MB / 0.6448 GB, free: 69.24 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002764/1.17, allocations: 1.062 MB / 0.6458 GB, free: 68.15 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001243/1.171, allocations: 40 kB / 0.6458 GB, free: 68.11 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003365/1.175, allocations: 219.7 kB / 0.646 GB, free: 67.9 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007401/1.175, allocations: 242.6 kB / 0.6463 GB, free: 67.66 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003193/1.176, allocations: 151.8 kB / 0.6464 GB, free: 67.51 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004114/1.18, allocations: 2.784 MB / 0.6491 GB, free: 64.72 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.234e-06/1.18, allocations: 0 / 0.6491 GB, free: 64.72 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.007895/1.188, allocations: 1.441 MB / 0.6506 GB, free: 63.29 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (inertia1.phi,inertia1.w,revolute1.phi,revolute1.w,revolute2.phi,revolute2.w,revolute3.phi,revolute3.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 (198): * Single equations (assignments): 192 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(3,12,100.0%), (4,18,100.0%), (2,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0009683/1.189, allocations: 188.9 kB / 0.6507 GB, free: 63.1 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01866/1.207, allocations: 13.07 MB / 0.6635 GB, free: 50.03 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.062e-05/1.207, allocations: 5.312 kB / 0.6635 GB, free: 50.03 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006552/1.214, allocations: 4.631 MB / 0.668 GB, free: 45.36 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004511/1.219, allocations: 0.4941 MB / 0.6685 GB, free: 44.88 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02607/1.245, allocations: 13.82 MB / 0.682 GB, free: 31.02 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005563/1.25, allocations: 3.748 MB / 0.6857 GB, free: 27.24 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002863/1.253, allocations: 0.5808 MB / 0.6862 GB, free: 26.66 MB / 446.1 MB Notification: Performance of SimCode: time 7.91e-07/1.253, allocations: 0 / 0.6862 GB, free: 26.66 MB / 446.1 MB Notification: Performance of Templates: time 0.3392/1.592, allocations: 146.7 MB / 0.8295 GB, free: 35.77 MB / 446.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Rotational3DEffects/BevelGear1D/BevelGear1D.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,inertia2.phi,inertia2.w,revolute1.phi,revolute1.w,revolute2.phi,revolute2.w,revolute3.phi,revolute3.w Variables in the result:inertia2.phi,inertia2.w,revolute1.phi,revolute1.w,revolute2.phi,revolute2.w,revolute3.phi,revolute3.w,time