Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_cpp_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_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00143/0.00143, allocations: 174.2 kB / 16.72 MB, free: 5.051 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.378/1.378, allocations: 205.4 MB / 222.9 MB, free: 9.023 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008055/0.0008053, allocations: 90.31 kB / 271.2 MB, free: 8.254 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003072/0.0003074, allocations: 8 kB / 327.5 MB, free: 15.9 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2184/0.2187, allocations: 47.58 MB / 375.1 MB, free: 45.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D): time 0.04497/0.2637, allocations: 60.25 MB / 435.3 MB, free: 4.316 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.02895/0.2927, allocations: 12.77 MB / 448.1 MB, free: 7.496 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01086/0.3036, allocations: 283.3 kB / 448.4 MB, free: 7.219 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.009057/0.3127, allocations: 2.939 MB / 451.3 MB, free: 4.266 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02227/0.335, allocations: 8.626 MB / 460 MB, free: 11.61 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003887/0.3389, allocations: 0.7489 MB / 460.7 MB, free: 10.86 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.02396/0.3629, allocations: 19.54 MB / 480.3 MB, free: 7.285 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009741/0.3727, allocations: 6.894 MB / 487.1 MB, free: 316 kB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002722/0.3755, allocations: 1.448 MB / 488.6 MB, free: 14.86 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003482/0.379, allocations: 2.387 MB / 491 MB, free: 12.46 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009312/0.3799, allocations: 176 kB / 491.2 MB, free: 12.29 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002623/0.3826, allocations: 1.108 MB / 492.3 MB, free: 11.18 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002509/0.3851, allocations: 1.983 MB / 494.2 MB, free: 9.191 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003223/0.3884, allocations: 2.231 MB / 496.5 MB, free: 6.941 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007631/0.396, allocations: 6.784 MB / 0.4915 GB, free: 144 kB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.127e-06/0.3961, allocations: 0 / 0.4915 GB, free: 144 kB / 378.7 MB Notification: Performance of FrontEnd: time 1.903e-06/0.3961, allocations: 0 / 0.4915 GB, free: 144 kB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003171/0.3964, allocations: 0 / 0.4915 GB, free: 144 kB / 378.7 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.1883/0.5847, allocations: 5.753 MB / 0.4971 GB, free: 113 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.757e-05/0.5848, allocations: 8.625 kB / 0.4971 GB, free: 113 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01478/0.5996, allocations: 2.591 MB / 0.4996 GB, free: 111.8 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007502/0.6071, allocations: 3.138 MB / 0.5027 GB, free: 109.8 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000264/0.6074, allocations: 301.9 kB / 0.503 GB, free: 109.7 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001086/0.6085, allocations: 404.5 kB / 0.5034 GB, free: 109.6 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0232/0.6318, allocations: 13.27 MB / 0.5163 GB, free: 96.38 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001383/0.6319, allocations: 43.59 kB / 0.5164 GB, free: 96.34 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005988/0.6326, allocations: 193.2 kB / 0.5165 GB, free: 96.19 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003578/0.6361, allocations: 2.204 MB / 0.5187 GB, free: 94.01 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02306/0.6592, allocations: 12.67 MB / 0.5311 GB, free: 81.34 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05355/0.7128, allocations: 49.4 MB / 0.5793 GB, free: 31 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02019/0.7331, allocations: 6.457 MB / 0.5856 GB, free: 24.39 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003896/0.737, allocations: 3.924 MB / 0.5894 GB, free: 20.46 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007129/0.7377, allocations: 424.3 kB / 0.5898 GB, free: 19.99 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.84e-05/0.7378, allocations: 51.88 kB / 0.5899 GB, free: 19.93 MB / 378.7 MB Notification: Performance of pre-optimization done (n=217): time 6.312e-06/0.7378, allocations: 5.125 kB / 0.5899 GB, free: 19.93 MB / 378.7 MB Notification: Performance of matching and sorting (n=255): time 0.0917/0.8295, allocations: 36.2 MB / 0.6252 GB, free: 15.51 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001234/0.8297, allocations: 209.9 kB / 0.6254 GB, free: 15.26 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006847/0.8365, allocations: 4.403 MB / 0.6297 GB, free: 10.83 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009622/0.8375, allocations: 65.7 kB / 0.6298 GB, free: 10.76 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002762/0.8403, allocations: 3.461 MB / 0.6332 GB, free: 7.25 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001501/0.8418, allocations: 0.9523 MB / 0.6341 GB, free: 6.285 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005189/0.8423, allocations: 136 kB / 0.6343 GB, free: 6.152 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0004486/0.8428, allocations: 0.5994 MB / 0.6348 GB, free: 5.547 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00635/0.8491, allocations: 4.316 MB / 0.6391 GB, free: 1.227 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009965/0.8591, allocations: 8.213 MB / 0.6471 GB, free: 7.098 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1816/1.041, allocations: 13.37 MB / 0.6601 GB, free: 135.2 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.016e-05/1.041, allocations: 38.91 kB / 0.6602 GB, free: 135.2 MB / 426.7 MB Notification: Performance of matching and sorting (n=903) (initialization): time 0.02445/1.065, allocations: 14.73 MB / 0.6746 GB, free: 130.6 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001009/1.066, allocations: 64.09 kB / 0.6746 GB, free: 130.6 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001907/1.066, allocations: 135.8 kB / 0.6747 GB, free: 130.6 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0061/1.072, allocations: 2.46 MB / 0.6772 GB, free: 130.1 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006042/1.078, allocations: 1.796 MB / 0.6789 GB, free: 129.9 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01587/1.094, allocations: 15.83 MB / 0.6944 GB, free: 115.2 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005819/1.1, allocations: 488.1 kB / 0.6948 GB, free: 114.7 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001194/1.101, allocations: 499.7 kB / 0.6953 GB, free: 114.2 MB / 426.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 16,(4,100.0%) 21,(2,100.0%) 7} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003766/1.105, allocations: 2.385 MB / 0.6976 GB, free: 111.9 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008037/1.105, allocations: 394.8 kB / 0.698 GB, free: 111.7 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01334/1.119, allocations: 9.672 MB / 0.7075 GB, free: 102 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.793e-05/1.119, allocations: 31.28 kB / 0.7075 GB, free: 102 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.992e-05/1.119, allocations: 8 kB / 0.7075 GB, free: 102 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.7e-05/1.119, allocations: 11.95 kB / 0.7075 GB, free: 102 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02566/1.145, allocations: 18.15 MB / 0.7252 GB, free: 83.87 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.404e-05/1.145, allocations: 0 / 0.7252 GB, free: 83.87 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003052/1.148, allocations: 0.5967 MB / 0.7258 GB, free: 83.27 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005533/1.153, allocations: 2.229 MB / 0.728 GB, free: 81.03 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008624/1.154, allocations: 127.8 kB / 0.7281 GB, free: 80.91 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01504/1.169, allocations: 14.55 MB / 0.7423 GB, free: 66.06 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/1.169, allocations: 7.938 kB / 0.7423 GB, free: 66.05 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0185/1.188, allocations: 15.17 MB / 0.7571 GB, free: 50.82 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002466/1.19, allocations: 1.066 MB / 0.7582 GB, free: 49.73 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008686/1.191, allocations: 39.94 kB / 0.7582 GB, free: 49.69 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002779/1.194, allocations: 225.5 kB / 0.7584 GB, free: 49.47 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006575/1.195, allocations: 245.5 kB / 0.7587 GB, free: 49.23 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000317/1.195, allocations: 155.7 kB / 0.7588 GB, free: 49.08 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.003443/1.198, allocations: 2.76 MB / 0.7615 GB, free: 46.31 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.81e-07/1.198, allocations: 0 / 0.7615 GB, free: 46.31 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005918/1.204, allocations: 1.433 MB / 0.7629 GB, free: 44.88 MB / 426.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(3,100.0%) 12,(4,100.0%) 18,(2,100.0%) 7} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005852/1.205, allocations: 194.4 kB / 0.7631 GB, free: 44.69 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01256/1.218, allocations: 10.37 MB / 0.7732 GB, free: 34.31 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.643e-06/1.218, allocations: 4 kB / 0.7732 GB, free: 34.3 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005632/1.223, allocations: 4.615 MB / 0.7777 GB, free: 29.65 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003444/1.227, allocations: 484.9 kB / 0.7782 GB, free: 29.18 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01931/1.246, allocations: 15.81 MB / 0.7936 GB, free: 13.33 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003377/1.25, allocations: 3.74 MB / 0.7973 GB, free: 9.559 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002373/1.252, allocations: 0.5847 MB / 0.7979 GB, free: 8.973 MB / 426.7 MB Notification: Performance of SimCode: time 1.112e-06/1.252, allocations: 0 / 0.7979 GB, free: 8.973 MB / 426.7 MB Notification: Performance of Templates: time 0.3179/1.57, allocations: 145.8 MB / 0.9403 GB, free: 30.83 MB / 442.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Rotational3DEffects/BevelGear1D/BevelGear1D.csv","../files/Modelica_3.2.3_cpp_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