Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008368/0.0008368, allocations: 80.34 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008211/0.0008211, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8386/0.8386, allocations: 177 MB / 204.1 MB, free: 5.75 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_BevelGear1D",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_BevelGear1D",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.403e-06/1.403e-06, allocations: 0 / 324.5 MB, free: 15.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.27e-05/1.411e-05, allocations: 2.281 kB / 324.5 MB, free: 15.88 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D): time 0.008555/0.008569, allocations: 11.55 MB / 336.1 MB, free: 4.273 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.005472/0.01404, allocations: 4.47 MB / 340.5 MB, free: 15.79 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000763/0.0148, allocations: 99.5 kB / 340.6 MB, free: 15.69 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003365/0.01817, allocations: 4.166 MB / 344.8 MB, free: 11.51 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002479/0.02065, allocations: 2.161 MB / 347 MB, free: 9.336 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001305/0.02195, allocations: 0.9003 MB / 347.9 MB, free: 8.434 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.003243/0.0252, allocations: 5.198 MB / 353.1 MB, free: 3.227 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003038/0.02823, allocations: 4.179 MB / 357.2 MB, free: 14.98 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00231/0.03054, allocations: 2.908 MB / 360.2 MB, free: 12.07 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002378/0.03292, allocations: 2.728 MB / 362.9 MB, free: 9.336 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004344/0.03336, allocations: 456 kB / 363.3 MB, free: 8.891 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001313/0.03467, allocations: 1.272 MB / 364.6 MB, free: 7.617 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001317/0.03599, allocations: 2.458 MB / 367.1 MB, free: 5.152 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001171/0.03716, allocations: 1.675 MB / 368.7 MB, free: 3.473 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006044/0.0432, allocations: 8.973 MB / 377.7 MB, free: 10.47 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.04321, allocations: 0 / 377.7 MB, free: 10.47 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.393e-06/0.04321, allocations: 4 kB / 377.7 MB, free: 10.46 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.852e-05/0.04328, allocations: 7.938 kB / 377.7 MB, free: 10.46 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.01409/0.05737, allocations: 7.47 MB / 385.2 MB, free: 2.922 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.932e-05/0.05741, allocations: 11.98 kB / 385.2 MB, free: 2.91 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006912/0.0581, allocations: 0.8506 MB / 386.1 MB, free: 2.051 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03841/0.09651, allocations: 7.421 MB / 393.5 MB, free: 10.62 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00516/0.1017, allocations: 3.269 MB / 396.7 MB, free: 7.297 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001398/0.1018, allocations: 299.8 kB / 397 MB, free: 7.004 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005628/0.1024, allocations: 411.8 kB / 397.4 MB, free: 6.602 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01496/0.1173, allocations: 13.48 MB / 410.9 MB, free: 8.348 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.351e-05/0.1174, allocations: 55.53 kB / 411 MB, free: 8.293 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003971/0.1178, allocations: 195.8 kB / 411.2 MB, free: 8.102 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002585/0.1204, allocations: 2.194 MB / 413.4 MB, free: 5.906 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01507/0.1355, allocations: 12.83 MB / 426.2 MB, free: 9.059 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1685/0.304, allocations: 47.24 MB / 473.4 MB, free: 83.65 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01128/0.3153, allocations: 6.141 MB / 479.6 MB, free: 82.3 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002381/0.3176, allocations: 3.711 MB / 483.3 MB, free: 81.09 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003801/0.318, allocations: 196.1 kB / 483.5 MB, free: 81.06 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.755e-05/0.318, allocations: 56.5 kB / 483.5 MB, free: 81.01 MB / 410.7 MB Notification: Performance of pre-optimization done (n=214): time 4.298e-06/0.318, allocations: 0 / 483.5 MB, free: 81.01 MB / 410.7 MB Notification: Performance of matching and sorting (n=252): time 0.04944/0.3675, allocations: 37.27 MB / 0.5086 GB, free: 44.8 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.363e-05/0.3676, allocations: 209.7 kB / 0.5088 GB, free: 44.55 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003702/0.3713, allocations: 4.852 MB / 0.5135 GB, free: 39.84 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002686/0.3715, allocations: 81.39 kB / 0.5136 GB, free: 39.76 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009223/0.3724, allocations: 3.574 MB / 0.5171 GB, free: 36.45 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005442/0.373, allocations: 0.9723 MB / 0.518 GB, free: 35.49 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001277/0.3743, allocations: 1.619 MB / 0.5196 GB, free: 33.86 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.866e-05/0.3743, allocations: 305.1 kB / 0.5199 GB, free: 33.56 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003373/0.3777, allocations: 4.308 MB / 0.5241 GB, free: 29.25 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003878/0.3816, allocations: 8.239 MB / 0.5322 GB, free: 19.12 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007644/0.3892, allocations: 13.37 MB / 0.5452 GB, free: 3.844 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.054e-05/0.3892, allocations: 44 kB / 0.5453 GB, free: 3.801 MB / 410.7 MB Notification: Performance of matching and sorting (n=880) (initialization): time 0.01419/0.4034, allocations: 14.74 MB / 0.5597 GB, free: 5.035 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.194e-05/0.4035, allocations: 60 kB / 0.5597 GB, free: 4.977 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.179e-05/0.4035, allocations: 136.9 kB / 0.5598 GB, free: 4.844 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003961/0.4075, allocations: 2.504 MB / 0.5623 GB, free: 2.328 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003066/0.4106, allocations: 1.825 MB / 0.5641 GB, free: 0.5 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01394/0.4245, allocations: 16.75 MB / 0.5804 GB, free: 15.43 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003462/0.428, allocations: 0.5145 MB / 0.5809 GB, free: 14.91 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004487/0.4284, allocations: 0.5114 MB / 0.5814 GB, free: 14.4 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.002785/0.4312, allocations: 2.398 MB / 0.5838 GB, free: 11.99 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005113/0.4317, allocations: 425.2 kB / 0.5842 GB, free: 11.57 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009594/0.4413, allocations: 9.743 MB / 0.5937 GB, free: 1.801 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.193e-05/0.4413, allocations: 31.98 kB / 0.5937 GB, free: 1.77 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.114e-05/0.4413, allocations: 8 kB / 0.5937 GB, free: 1.762 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.379e-05/0.4414, allocations: 11.97 kB / 0.5937 GB, free: 1.75 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01804/0.4594, allocations: 17.65 MB / 0.611 GB, free: 84 kB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.657e-06/0.4594, allocations: 7.938 kB / 0.611 GB, free: 76 kB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001511/0.4609, allocations: 0.6591 MB / 0.6116 GB, free: 15.41 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003424/0.4643, allocations: 2.266 MB / 0.6138 GB, free: 13.14 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000209/0.4646, allocations: 151.8 kB / 0.614 GB, free: 12.99 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1615/0.626, allocations: 15.23 MB / 0.6289 GB, free: 174 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/0.626, allocations: 9.5 kB / 0.6289 GB, free: 174 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01254/0.6386, allocations: 15.29 MB / 0.6438 GB, free: 170.1 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006341/0.6392, allocations: 437.1 kB / 0.6442 GB, free: 170 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003364/0.6395, allocations: 57.38 kB / 0.6443 GB, free: 170 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00142/0.641, allocations: 267.3 kB / 0.6445 GB, free: 170 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000459/0.6414, allocations: 275.8 kB / 0.6448 GB, free: 170 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001907/0.6416, allocations: 171.4 kB / 0.645 GB, free: 169.9 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002404/0.644, allocations: 2.948 MB / 0.6478 GB, free: 168.5 MB / 490.7 MB Notification: Performance of sort global known variables: time 9.1e-08/0.644, allocations: 1.094 kB / 0.6478 GB, free: 168.5 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.003629/0.6476, allocations: 1.505 MB / 0.6493 GB, free: 167 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.01194/0.6596, allocations: 16 MB / 0.6649 GB, free: 153.5 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.008281/0.6679, allocations: 10.21 MB / 0.6749 GB, free: 143.4 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.6679, allocations: 0 / 0.6749 GB, free: 143.4 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003096/0.671, allocations: 4.444 MB / 0.6792 GB, free: 138.9 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001808/0.6728, allocations: 0.5299 MB / 0.6798 GB, free: 138.5 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0572/0.73, allocations: 70.58 MB / 0.7487 GB, free: 61.84 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002779/0.7328, allocations: 3.224 MB / 0.7518 GB, free: 58.58 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.003344/0.7361, allocations: 2.387 MB / 0.7542 GB, free: 56.18 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00258/0.7387, allocations: 2.62 MB / 0.7567 GB, free: 53.56 MB / 490.7 MB Notification: Performance of SimCode: time 2.004e-06/0.7387, allocations: 0 / 0.7567 GB, free: 53.56 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2511/0.9898, allocations: 119.3 MB / 0.8732 GB, free: 111.1 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.06/13.05, allocations: 6.578 kB / 0.8732 GB, free: 111.1 MB / 490.7 MB " [Timeout remaining time 647] (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_BevelGear1D_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_BevelGear1D.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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: 15.048236674629152]