Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.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.001429/0.001429, allocations: 80.8 kB / 21.5 MB, free: 2.988 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.001544/0.001544, allocations: 169.9 kB / 24.91 MB, free: 9.195 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.9258/0.9258, allocations: 177.1 MB / 205.3 MB, free: 5.492 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2292/0.2292, allocations: 32.8 MB / 294.6 MB, free: 1.25 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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: translateModel(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|gearConstraint.actuatedRevolute_b.phi|gearConstraint.actuatedRevolute_b.w|inertia2.phi|inertia2.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint") translateModel(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|gearConstraint.actuatedRevolute_b.phi|gearConstraint.actuatedRevolute_b.w|inertia2.phi|inertia2.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.052e-06/1.052e-06, allocations: 0 / 323.2 MB, free: 9.703 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.849e-05/1.954e-05, allocations: 3.016 kB / 323.2 MB, free: 9.699 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint): time 0.01109/0.01111, allocations: 12.75 MB / 336 MB, free: 12.89 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.008713/0.01982, allocations: 4.64 MB / 340.6 MB, free: 8.23 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002309/0.02213, allocations: 107.4 kB / 340.7 MB, free: 8.125 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005066/0.0272, allocations: 4.493 MB / 345.2 MB, free: 3.617 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005116/0.03231, allocations: 2.282 MB / 347.5 MB, free: 1.324 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002037/0.03435, allocations: 1.049 MB / 348.6 MB, free: 280 kB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.007432/0.04178, allocations: 6.862 MB / 355.4 MB, free: 9.406 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005301/0.04708, allocations: 4.778 MB / 360.2 MB, free: 4.539 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006638/0.05372, allocations: 4.211 MB / 364.4 MB, free: 328 kB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004428/0.05815, allocations: 2.981 MB / 367.4 MB, free: 13.33 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001717/0.05986, allocations: 484 kB / 367.9 MB, free: 12.86 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002859/0.06272, allocations: 1.299 MB / 369.2 MB, free: 11.56 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003038/0.06576, allocations: 2.704 MB / 371.9 MB, free: 8.848 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003247/0.06901, allocations: 1.718 MB / 373.6 MB, free: 7.125 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00818/0.07719, allocations: 5.844 MB / 379.4 MB, free: 1.262 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.831e-06/0.07719, allocations: 0 / 379.4 MB, free: 1.262 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.434e-06/0.0772, allocations: 0 / 379.4 MB, free: 1.262 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.000248/0.07744, allocations: 0 / 379.4 MB, free: 1.262 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: 1731 * Number of variables: 1731 Notification: Performance of Generate backend data structure: time 0.0101/0.08754, allocations: 5.736 MB / 385.2 MB, free: 11.47 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.044e-05/0.08758, allocations: 12.03 kB / 385.2 MB, free: 11.46 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005433/0.09301, allocations: 1.433 MB / 386.6 MB, free: 10.02 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005927/0.09894, allocations: 2.654 MB / 389.3 MB, free: 7.316 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002877/0.09923, allocations: 300.1 kB / 389.6 MB, free: 7.023 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001266/0.1005, allocations: 424.6 kB / 390 MB, free: 6.609 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01141/0.1119, allocations: 5.816 MB / 395.8 MB, free: 24 kB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001953/0.1121, allocations: 47.67 kB / 395.8 MB, free: 15.97 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006229/0.1127, allocations: 187.9 kB / 396 MB, free: 15.79 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002084/0.1148, allocations: 1.769 MB / 397.8 MB, free: 14.02 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007812/0.1226, allocations: 2.868 MB / 400.7 MB, free: 11.1 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03376/0.1564, allocations: 34.61 MB / 435.3 MB, free: 7.25 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004166/0.1605, allocations: 1.724 MB / 437 MB, free: 5.488 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007138/0.1613, allocations: 415.7 kB / 437.4 MB, free: 5.07 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006866/0.1681, allocations: 4.099 MB / 441.5 MB, free: 0.9492 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.887e-05/0.1682, allocations: 51.56 kB / 441.5 MB, free: 0.8906 MB / 410.7 MB Notification: Performance of pre-optimization done (n=142): time 4.378e-06/0.1682, allocations: 0 / 441.5 MB, free: 0.8906 MB / 410.7 MB Notification: Performance of matching and sorting (n=158): time 0.1758/0.344, allocations: 5.345 MB / 446.9 MB, free: 113.1 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.873e-05/0.3441, allocations: 199.6 kB / 447.1 MB, free: 112.9 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004084/0.3481, allocations: 3.71 MB / 450.8 MB, free: 112.6 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002239/0.3484, allocations: 46.67 kB / 450.8 MB, free: 112.5 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001588/0.35, allocations: 3.5 MB / 454.3 MB, free: 110.6 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006599/0.3506, allocations: 0.6559 MB / 455 MB, free: 110.2 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001203/0.3518, allocations: 1.24 MB / 456.2 MB, free: 110.1 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 5.144e-05/0.3519, allocations: 305.1 kB / 456.5 MB, free: 109.8 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001259/0.3531, allocations: 0.759 MB / 457.3 MB, free: 109.8 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002489/0.3556, allocations: 4.697 MB / 462 MB, free: 104.5 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00407/0.3597, allocations: 5.976 MB / 468 MB, free: 98.13 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001196/0.3598, allocations: 44 kB / 468 MB, free: 98.09 MB / 410.7 MB Notification: Performance of matching and sorting (n=844) (initialization): time 0.006201/0.366, allocations: 4.419 MB / 472.4 MB, free: 94.61 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.53e-05/0.3661, allocations: 64 kB / 472.5 MB, free: 94.54 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001164/0.3662, allocations: 147.9 kB / 472.6 MB, free: 94.4 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007625/0.367, allocations: 408.5 kB / 473 MB, free: 94.07 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00252/0.3695, allocations: 1.455 MB / 474.5 MB, free: 92.68 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002019/0.3715, allocations: 3.558 MB / 478 MB, free: 89.08 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003318/0.3748, allocations: 290.4 kB / 478.3 MB, free: 88.8 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005755/0.3754, allocations: 344 kB / 478.7 MB, free: 88.46 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 650 * Number of states: 0 () * Number of discrete variables: 47 (torque1.torqueArrow.twoHeadedArrow,torque1.torqueArrow.headAtOrigin,fixed.color[3],fixed.color[2],fixed.color[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueColor[3],torque1.torqueColor[2],torque1.torqueColor[1],cyl2.color[3],cyl2.color[2],cyl2.color[1],cyl2.body.sphereColor[3],cyl2.body.sphereColor[2],cyl2.body.sphereColor[1],cyl1.color[3],cyl1.color[2],cyl1.color[1],cyl1.body.sphereColor[3],cyl1.body.sphereColor[2],cyl1.body.sphereColor[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],gearConstraint.fixedTranslation2.color[3],gearConstraint.fixedTranslation2.color[2],gearConstraint.fixedTranslation2.color[1],gearConstraint.fixedTranslation1.color[3],gearConstraint.fixedTranslation1.color[2],gearConstraint.fixedTranslation1.color[1],gearConstraint.actuatedRevolute_b.cylinderColor[3],gearConstraint.actuatedRevolute_b.cylinderColor[2],gearConstraint.actuatedRevolute_b.cylinderColor[1],gearConstraint.actuatedRevolute_a.cylinderColor[3],gearConstraint.actuatedRevolute_a.cylinderColor[2],gearConstraint.actuatedRevolute_a.cylinderColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (804): * Single equations (assignments): 799 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,11,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001578/0.377, allocations: 0.6534 MB / 479.3 MB, free: 87.8 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005501/0.3775, allocations: 243.6 kB / 479.6 MB, free: 87.56 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00117/0.3787, allocations: 0.8642 MB / 480.4 MB, free: 86.67 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.989e-05/0.3787, allocations: 19.61 kB / 480.4 MB, free: 86.65 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.125e-06/0.3787, allocations: 4 kB / 480.4 MB, free: 86.65 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.035e-05/0.3787, allocations: 7.969 kB / 480.5 MB, free: 86.64 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006883/0.3856, allocations: 4.237 MB / 484.7 MB, free: 82.29 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.059e-05/0.3856, allocations: 4 kB / 484.7 MB, free: 82.29 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006279/0.3862, allocations: 238.6 kB / 484.9 MB, free: 82.05 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008472/0.3871, allocations: 423.8 kB / 485.3 MB, free: 81.63 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000103/0.3872, allocations: 28 kB / 485.4 MB, free: 81.6 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001424/0.3886, allocations: 2.766 MB / 488.1 MB, free: 78.66 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.589e-06/0.3886, allocations: 8 kB / 488.1 MB, free: 78.65 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00202/0.3906, allocations: 1.771 MB / 489.9 MB, free: 76.77 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007959/0.3914, allocations: 362.2 kB / 490.3 MB, free: 76.41 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004337/0.3919, allocations: 36 kB / 490.3 MB, free: 76.38 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008031/0.3927, allocations: 35.98 kB / 490.3 MB, free: 76.34 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001686/0.3928, allocations: 112.7 kB / 490.4 MB, free: 76.23 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.105e-05/0.3929, allocations: 39.98 kB / 490.5 MB, free: 76.2 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001467/0.3944, allocations: 1.389 MB / 491.9 MB, free: 74.79 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.3944, allocations: 0 / 491.9 MB, free: 74.79 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004466/0.3988, allocations: 1.144 MB / 493 MB, free: 73.65 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 4 (gearConstraint.actuatedRevolute_b.phi,gearConstraint.actuatedRevolute_b.w,inertia1.phi,inertia1.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 (130): * Single equations (assignments): 125 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,9,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004136/0.3993, allocations: 168 kB / 493.2 MB, free: 73.48 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003411/0.4027, allocations: 2.718 MB / 495.9 MB, free: 70.76 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0002465/0.4029, allocations: 104.2 kB / 496 MB, free: 70.65 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007419/0.4037, allocations: 0.6435 MB / 496.6 MB, free: 69.99 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003007/0.4067, allocations: 0.7361 MB / 497.4 MB, free: 69.27 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01264/0.4193, allocations: 8.613 MB / 0.4941 GB, free: 60.5 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001712/0.421, allocations: 1.464 MB / 0.4956 GB, free: 59.01 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0018/0.4228, allocations: 0.5379 MB / 0.4961 GB, free: 58.46 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008704/0.4237, allocations: 0.6026 MB / 0.4967 GB, free: 57.86 MB / 410.7 MB Notification: Performance of SimCode: time 1.993e-06/0.4237, allocations: 0 / 0.4967 GB, free: 57.86 MB / 410.7 MB Notification: Performance of Templates: time 0.04765/0.4713, allocations: 31.9 MB / 0.5278 GB, free: 26.38 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Parts/Rotor1D/GearConstraint/GearConstraint.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.10013003507629]