Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.000858/0.000858, allocations: 83.69 kB / 20.67 MB, free: 3.887 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001022/0.001022, allocations: 170.3 kB / 23.95 MB, free: 0.6094 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8566/0.8566, allocations: 177.1 MB / 204.3 MB, free: 5.73 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_BevelGear1D",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_BevelGear1D",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.383e-06/1.383e-06, allocations: 0 / 324.6 MB, free: 15.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.852e-05/1.99e-05, allocations: 6.219 kB / 324.6 MB, free: 15.94 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D): time 0.008725/0.008745, allocations: 11.54 MB / 336.1 MB, free: 4.34 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00673/0.01547, allocations: 4.474 MB / 340.6 MB, free: 15.85 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001292/0.01677, allocations: 103.5 kB / 340.7 MB, free: 15.75 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003706/0.02047, allocations: 4.17 MB / 344.9 MB, free: 11.56 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003556/0.02403, allocations: 2.161 MB / 347 MB, free: 9.391 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001244/0.02527, allocations: 0.8965 MB / 347.9 MB, free: 8.492 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.004143/0.02942, allocations: 5.198 MB / 353.1 MB, free: 3.285 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003594/0.03301, allocations: 4.183 MB / 357.3 MB, free: 15.04 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003429/0.03644, allocations: 2.896 MB / 360.2 MB, free: 12.14 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003387/0.03983, allocations: 2.736 MB / 362.9 MB, free: 9.395 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007749/0.0406, allocations: 456 kB / 363.4 MB, free: 8.949 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001759/0.04236, allocations: 1.276 MB / 364.7 MB, free: 7.672 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001721/0.04408, allocations: 2.454 MB / 367.1 MB, free: 5.211 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00218/0.04626, allocations: 1.675 MB / 368.8 MB, free: 3.531 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007852/0.05411, allocations: 8.977 MB / 377.8 MB, free: 10.53 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.751e-06/0.05412, allocations: 4 kB / 377.8 MB, free: 10.52 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.05412, allocations: 0 / 377.8 MB, free: 10.52 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0002426/0.05436, allocations: 0 / 377.8 MB, free: 10.52 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1750 * Number of variables: 1750 Notification: Performance of Generate backend data structure: time 0.01921/0.07357, allocations: 7.474 MB / 385.2 MB, free: 2.984 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.767e-05/0.07362, allocations: 11.97 kB / 385.3 MB, free: 2.973 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001633/0.07526, allocations: 0.8468 MB / 386.1 MB, free: 2.117 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03736/0.1126, allocations: 7.414 MB / 393.5 MB, free: 10.69 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006341/0.119, allocations: 3.277 MB / 396.8 MB, free: 7.363 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001809/0.1191, allocations: 303.8 kB / 397.1 MB, free: 7.066 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001128/0.1203, allocations: 407.8 kB / 397.5 MB, free: 6.668 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01948/0.1397, allocations: 13.49 MB / 411 MB, free: 8.41 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001181/0.1399, allocations: 51.53 kB / 411 MB, free: 8.359 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007314/0.1406, allocations: 195.9 kB / 411.2 MB, free: 8.168 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002421/0.143, allocations: 2.186 MB / 413.4 MB, free: 5.98 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01901/0.162, allocations: 12.84 MB / 426.2 MB, free: 9.125 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1921/0.3541, allocations: 47.25 MB / 473.5 MB, free: 83.65 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01265/0.3668, allocations: 6.136 MB / 479.6 MB, free: 82.3 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003089/0.3698, allocations: 3.709 MB / 483.3 MB, free: 81.09 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004405/0.3703, allocations: 189.7 kB / 483.5 MB, free: 81.06 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.257e-05/0.3703, allocations: 55.62 kB / 483.6 MB, free: 81.01 MB / 410.7 MB Notification: Performance of pre-optimization done (n=214): time 5.661e-06/0.3703, allocations: 3.906 kB / 483.6 MB, free: 81.01 MB / 410.7 MB Notification: Performance of matching and sorting (n=252): time 0.05544/0.4258, allocations: 37.27 MB / 0.5086 GB, free: 44.73 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.278e-05/0.4258, allocations: 201.9 kB / 0.5088 GB, free: 44.49 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004062/0.4299, allocations: 4.859 MB / 0.5136 GB, free: 39.78 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004836/0.4304, allocations: 69.7 kB / 0.5136 GB, free: 39.7 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009869/0.4313, allocations: 3.581 MB / 0.5171 GB, free: 36.38 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006771/0.432, allocations: 0.978 MB / 0.5181 GB, free: 35.42 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001366/0.4334, allocations: 1.607 MB / 0.5197 GB, free: 33.8 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.174e-05/0.4334, allocations: 309.1 kB / 0.52 GB, free: 33.5 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003278/0.4367, allocations: 4.308 MB / 0.5242 GB, free: 29.18 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004141/0.4408, allocations: 8.235 MB / 0.5322 GB, free: 19.07 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009301/0.4501, allocations: 13.37 MB / 0.5453 GB, free: 3.789 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.571e-05/0.4502, allocations: 36 kB / 0.5453 GB, free: 3.754 MB / 410.7 MB Notification: Performance of matching and sorting (n=880) (initialization): time 0.01881/0.469, allocations: 14.74 MB / 0.5597 GB, free: 4.992 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.057e-05/0.4691, allocations: 68.06 kB / 0.5598 GB, free: 4.926 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003816/0.4695, allocations: 136 kB / 0.5599 GB, free: 4.793 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004157/0.4736, allocations: 2.505 MB / 0.5623 GB, free: 2.277 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004171/0.4778, allocations: 1.821 MB / 0.5641 GB, free: 464 kB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01565/0.4935, allocations: 16.76 MB / 0.5805 GB, free: 15.37 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004695/0.4982, allocations: 0.511 MB / 0.581 GB, free: 14.86 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001466/0.4996, allocations: 0.5169 MB / 0.5815 GB, free: 14.34 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 618 * 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 (807): * Single equations (assignments): 801 * 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,15,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.004034/0.5037, allocations: 2.391 MB / 0.5838 GB, free: 11.94 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001018/0.5047, allocations: 425.2 kB / 0.5842 GB, free: 11.52 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01117/0.5158, allocations: 9.747 MB / 0.5938 GB, free: 1.746 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.848e-05/0.5159, allocations: 31.77 kB / 0.5938 GB, free: 1.719 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.473e-05/0.5159, allocations: 12 kB / 0.5938 GB, free: 1.707 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.177e-05/0.5159, allocations: 7.969 kB / 0.5938 GB, free: 1.699 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02318/0.5391, allocations: 17.66 MB / 0.611 GB, free: 24 kB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.327e-05/0.5391, allocations: 3.938 kB / 0.611 GB, free: 20 kB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001758/0.5409, allocations: 0.6552 MB / 0.6117 GB, free: 15.36 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003811/0.5447, allocations: 2.269 MB / 0.6139 GB, free: 13.08 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005306/0.5452, allocations: 157.8 kB / 0.6141 GB, free: 12.93 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1795/0.7247, allocations: 15.22 MB / 0.6289 GB, free: 173.6 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.477e-06/0.7247, allocations: 3.5 kB / 0.6289 GB, free: 173.6 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0145/0.7392, allocations: 15.29 MB / 0.6439 GB, free: 170 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00117/0.7404, allocations: 430.3 kB / 0.6443 GB, free: 170 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006269/0.741, allocations: 50.5 kB / 0.6443 GB, free: 170 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001791/0.7428, allocations: 275.7 kB / 0.6446 GB, free: 169.9 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005394/0.7434, allocations: 277.7 kB / 0.6448 GB, free: 169.9 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002148/0.7436, allocations: 177.5 kB / 0.645 GB, free: 169.9 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.00312/0.7467, allocations: 2.943 MB / 0.6479 GB, free: 168.4 MB / 490.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.7467, allocations: 0 / 0.6479 GB, free: 168.4 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.005557/0.7523, allocations: 1.503 MB / 0.6494 GB, free: 166.9 MB / 490.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 (195): * Single equations (assignments): 189 * 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.01379/0.7661, allocations: 15.99 MB / 0.665 GB, free: 153.4 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01206/0.7781, allocations: 10.21 MB / 0.675 GB, free: 143.3 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 9.448e-06/0.7781, allocations: 0 / 0.675 GB, free: 143.3 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004825/0.7829, allocations: 4.446 MB / 0.6793 GB, free: 138.8 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003985/0.7869, allocations: 0.5234 MB / 0.6798 GB, free: 138.4 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07599/0.8629, allocations: 70.6 MB / 0.7488 GB, free: 61.72 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002871/0.8658, allocations: 3.212 MB / 0.7519 GB, free: 58.47 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.003636/0.8694, allocations: 2.399 MB / 0.7542 GB, free: 56.07 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002973/0.8724, allocations: 2.624 MB / 0.7568 GB, free: 53.44 MB / 490.7 MB Notification: Performance of SimCode: time 2.044e-06/0.8724, allocations: 4 kB / 0.7568 GB, free: 53.44 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2635/1.136, allocations: 119.3 MB / 0.8733 GB, free: 110.7 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.86/12, allocations: 23.73 kB / 0.8733 GB, free: 110.6 MB / 490.7 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_BevelGear1D_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_BevelGear1D.fmu > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Rotational3DEffects/BevelGear1D/BevelGear1D.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Warning: Resultfile and Reference have different end time points! Reffile[2001]=0.400000 File[2502]=1.000000 " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.030744302086532]