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.001774/0.001774, allocations: 111.1 kB / 20.44 MB, free: 1.176 MB / 14.72 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.002234/0.002234, allocations: 205.4 kB / 23.73 MB, free: 4.379 MB / 14.72 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 1.406/1.406, allocations: 230.6 MB / 257.5 MB, free: 7.777 MB / 206.1 MB " [Timeout remaining time 178] 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 0.00148/0.00148, allocations: 47.92 kB / 377.7 MB, free: 2.949 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2486/0.2501, allocations: 53.36 MB / 431.1 MB, free: 6.645 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D): time 0.015/0.2651, allocations: 11.53 MB / 442.6 MB, free: 11.07 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009656/0.2747, allocations: 4.467 MB / 447.1 MB, free: 6.586 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001937/0.2767, allocations: 103.5 kB / 447.2 MB, free: 6.484 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007839/0.2845, allocations: 3.956 MB / 451.1 MB, free: 2.516 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005621/0.2901, allocations: 2.097 MB / 453.2 MB, free: 420 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002193/0.2923, allocations: 0.8384 MB / 454.1 MB, free: 15.57 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.008/0.3003, allocations: 4.771 MB / 458.9 MB, free: 10.79 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005244/0.3056, allocations: 3.934 MB / 462.8 MB, free: 6.785 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003121/0.3087, allocations: 1.963 MB / 464.8 MB, free: 4.816 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004483/0.3132, allocations: 2.874 MB / 467.6 MB, free: 1.934 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001087/0.3143, allocations: 452 kB / 468.1 MB, free: 1.492 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00248/0.3167, allocations: 1.237 MB / 469.3 MB, free: 260 kB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002642/0.3194, allocations: 2.361 MB / 471.7 MB, free: 13.89 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003451/0.3228, allocations: 2.098 MB / 473.8 MB, free: 11.78 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01067/0.3335, allocations: 8.939 MB / 482.7 MB, free: 2.805 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.033e-06/0.3335, allocations: 0 / 482.7 MB, free: 2.805 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.3335, allocations: 0 / 482.7 MB, free: 2.805 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002364/0.3337, allocations: 0 / 482.7 MB, free: 2.805 MB / 382.1 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.03219/0.3659, allocations: 7.162 MB / 489.9 MB, free: 11.58 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.794e-05/0.366, allocations: 12.03 kB / 489.9 MB, free: 11.57 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002147/0.3681, allocations: 0.8389 MB / 490.7 MB, free: 10.72 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07786/0.446, allocations: 7.199 MB / 497.9 MB, free: 3.508 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009703/0.4557, allocations: 3.428 MB / 0.4896 GB, free: 28 kB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002893/0.456, allocations: 299.8 kB / 0.4899 GB, free: 15.73 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001244/0.4572, allocations: 415.7 kB / 0.4903 GB, free: 15.33 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02782/0.485, allocations: 13.33 MB / 0.5033 GB, free: 1.23 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001414/0.4852, allocations: 43.62 kB / 0.5033 GB, free: 1.188 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006539/0.4858, allocations: 187.9 kB / 0.5035 GB, free: 1.004 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004548/0.4904, allocations: 2.198 MB / 0.5057 GB, free: 14.8 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02919/0.5196, allocations: 12.63 MB / 0.518 GB, free: 2.16 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.255/0.7746, allocations: 46.91 MB / 0.5638 GB, free: 62.24 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02235/0.7969, allocations: 5.78 MB / 0.5694 GB, free: 61.2 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003583/0.8005, allocations: 3.684 MB / 0.573 GB, free: 59.98 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007309/0.8012, allocations: 186.4 kB / 0.5732 GB, free: 59.96 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.433e-05/0.8013, allocations: 59.66 kB / 0.5733 GB, free: 59.9 MB / 446.1 MB Notification: Performance of pre-optimization done (n=214): time 5.781e-06/0.8013, allocations: 0 / 0.5733 GB, free: 59.9 MB / 446.1 MB Notification: Performance of matching and sorting (n=252): time 0.09187/0.8931, allocations: 36.01 MB / 0.6084 GB, free: 29 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.892e-05/0.8932, allocations: 209.9 kB / 0.6087 GB, free: 28.76 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006422/0.8996, allocations: 4.678 MB / 0.6132 GB, free: 24.23 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007546/0.9004, allocations: 65.7 kB / 0.6133 GB, free: 24.16 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001662/0.9021, allocations: 3.608 MB / 0.6168 GB, free: 20.81 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001245/0.9033, allocations: 0.9929 MB / 0.6178 GB, free: 19.83 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002534/0.9058, allocations: 1.564 MB / 0.6193 GB, free: 18.26 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.149e-05/0.9059, allocations: 301.1 kB / 0.6196 GB, free: 17.96 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004354/0.9102, allocations: 4.276 MB / 0.6238 GB, free: 13.68 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005948/0.9162, allocations: 8.201 MB / 0.6318 GB, free: 3.621 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01626/0.9324, allocations: 13.3 MB / 0.6448 GB, free: 4.781 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001418/0.9326, allocations: 40 kB / 0.6448 GB, free: 4.742 MB / 462.1 MB Notification: Performance of matching and sorting (n=880) (initialization): time 0.0296/0.9622, allocations: 14.61 MB / 0.6591 GB, free: 6.113 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001735/0.9624, allocations: 68.03 kB / 0.6591 GB, free: 6.047 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002439/0.9626, allocations: 140 kB / 0.6593 GB, free: 5.91 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007279/0.9699, allocations: 2.496 MB / 0.6617 GB, free: 3.406 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007116/0.977, allocations: 1.754 MB / 0.6634 GB, free: 1.648 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0247/1.002, allocations: 16.74 MB / 0.6798 GB, free: 0.5781 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006533/1.008, allocations: 481 kB / 0.6802 GB, free: 112 kB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001595/1.01, allocations: 499.7 kB / 0.6807 GB, free: 15.62 MB / 0.4981 GB 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.005142/1.015, allocations: 2.379 MB / 0.683 GB, free: 13.23 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001465/1.016, allocations: 425.1 kB / 0.6834 GB, free: 12.81 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01841/1.035, allocations: 9.602 MB / 0.6928 GB, free: 3.18 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.375e-05/1.035, allocations: 24 kB / 0.6928 GB, free: 3.156 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.057e-05/1.035, allocations: 12 kB / 0.6928 GB, free: 3.145 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.064e-05/1.035, allocations: 14.36 kB / 0.6929 GB, free: 3.133 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03515/1.07, allocations: 17.4 MB / 0.7099 GB, free: 1.734 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.578e-05/1.07, allocations: 0 / 0.7099 GB, free: 1.734 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003515/1.074, allocations: 0.5849 MB / 0.7104 GB, free: 1.148 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006989/1.081, allocations: 2.28 MB / 0.7127 GB, free: 14.86 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007856/1.081, allocations: 130 kB / 0.7128 GB, free: 14.74 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02182/1.103, allocations: 15.21 MB / 0.7276 GB, free: 15.19 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.839e-06/1.103, allocations: 4.031 kB / 0.7276 GB, free: 15.19 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2417/1.345, allocations: 15.13 MB / 0.7424 GB, free: 190.3 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001288/1.346, allocations: 400.3 kB / 0.7428 GB, free: 190.3 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001384/1.348, allocations: 42.28 kB / 0.7428 GB, free: 190.3 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003572/1.351, allocations: 220.9 kB / 0.743 GB, free: 190.3 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009858/1.352, allocations: 246.8 kB / 0.7433 GB, free: 190.3 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004623/1.353, allocations: 148.1 kB / 0.7434 GB, free: 190.3 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.005006/1.358, allocations: 2.806 MB / 0.7462 GB, free: 190.1 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.51e-07/1.358, allocations: 0 / 0.7462 GB, free: 190.1 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.006136/1.364, allocations: 1.412 MB / 0.7475 GB, free: 190.1 MB / 0.545 GB 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.01769/1.381, allocations: 15.8 MB / 0.763 GB, free: 185.5 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01133/1.393, allocations: 10.12 MB / 0.7728 GB, free: 179.5 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 6.061e-06/1.393, allocations: 0 / 0.7728 GB, free: 179.5 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.005255/1.398, allocations: 4.392 MB / 0.7771 GB, free: 175.8 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003247/1.401, allocations: 0.5022 MB / 0.7776 GB, free: 175.4 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08477/1.486, allocations: 69.97 MB / 0.8459 GB, free: 101.4 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005117/1.491, allocations: 3.223 MB / 0.8491 GB, free: 98.12 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.008724/1.5, allocations: 2.379 MB / 0.8514 GB, free: 95.74 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005115/1.505, allocations: 2.514 MB / 0.8539 GB, free: 93.22 MB / 0.545 GB Notification: Performance of SimCode: time 1.483e-06/1.505, allocations: 4 kB / 0.8539 GB, free: 93.22 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3739/1.879, allocations: 122 MB / 0.973 GB, free: 175.9 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.89/18.77, allocations: 3.984 kB / 0.973 GB, free: 175.9 MB / 0.545 GB " [Timeout remaining time 641] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Rotational3DEffects/BevelGear1D/BevelGear1D.csv","/var/lib/jenkins1/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[2503]=1.000000 " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 21.81178667099448]