Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.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.0007804/0.0007804, allocations: 83.62 kB / 21.43 MB, free: 3.133 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.003197/0.003197, allocations: 166 kB / 24.7 MB, free: 8.887 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8749/0.8749, allocations: 158.6 MB / 186.5 MB, free: 3.039 MB / 170.7 MB " [Timeout remaining time 179] 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 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.GearConstraint,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_GearConstraint",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_GearConstraint",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.633e-06/1.633e-06, allocations: 0 / 298.4 MB, free: 3.523 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.009e-05/2.172e-05, allocations: 2.281 kB / 298.4 MB, free: 3.52 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.1251/0.1251, allocations: 12.41 MB / 310.8 MB, free: 8.816 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.006477/0.1316, allocations: 4.474 MB / 315.3 MB, free: 5.949 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001047/0.1326, allocations: 112.4 kB / 315.4 MB, free: 5.914 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004075/0.1367, allocations: 4.323 MB / 319.7 MB, free: 4.078 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002954/0.1396, allocations: 2.401 MB / 322.1 MB, free: 2.641 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001203/0.1409, allocations: 1.033 MB / 323.2 MB, free: 1.906 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.004918/0.1458, allocations: 6.567 MB / 329.7 MB, free: 14.32 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004019/0.1498, allocations: 4.654 MB / 334.4 MB, free: 10.61 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003115/0.1529, allocations: 3.372 MB / 337.8 MB, free: 7.23 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00253/0.1554, allocations: 3.176 MB / 341 MB, free: 4.047 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005081/0.1559, allocations: 0.4922 MB / 341.4 MB, free: 3.555 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001437/0.1574, allocations: 1.342 MB / 342.8 MB, free: 2.207 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001626/0.159, allocations: 2.844 MB / 345.6 MB, free: 15.36 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001495/0.1605, allocations: 1.862 MB / 347.5 MB, free: 13.49 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006176/0.1667, allocations: 9.885 MB / 357.4 MB, free: 3.574 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.1667, allocations: 0 / 357.4 MB, free: 3.574 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.532e-06/0.1667, allocations: 0 / 357.4 MB, free: 3.574 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001041/0.1668, allocations: 0 / 357.4 MB, free: 3.574 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1846 * Number of variables: 1846 Notification: Performance of Generate backend data structure: time 0.007708/0.1745, allocations: 6.714 MB / 364.1 MB, free: 12.79 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.353e-05/0.1745, allocations: 11.98 kB / 364.1 MB, free: 12.78 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007182/0.1753, allocations: 0.8843 MB / 365 MB, free: 11.88 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01839/0.1936, allocations: 6.586 MB / 371.6 MB, free: 5.281 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005688/0.1993, allocations: 4.235 MB / 375.8 MB, free: 0.9961 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001415/0.1995, allocations: 316.5 kB / 376.1 MB, free: 0.6836 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005589/0.2, allocations: 444.7 kB / 376.6 MB, free: 256 kB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01198/0.212, allocations: 12.17 MB / 388.7 MB, free: 3.293 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.971e-05/0.2121, allocations: 47.59 kB / 388.8 MB, free: 3.246 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003519/0.2125, allocations: 197.7 kB / 389 MB, free: 3.055 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001955/0.2144, allocations: 2.206 MB / 391.2 MB, free: 0.8477 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01152/0.2259, allocations: 10.22 MB / 401.4 MB, free: 6.621 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03475/0.2607, allocations: 44.44 MB / 445.8 MB, free: 9.031 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005909/0.2666, allocations: 4.013 MB / 449.8 MB, free: 4.984 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0019/0.2685, allocations: 2.338 MB / 452.2 MB, free: 2.633 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009035/0.2775, allocations: 9.359 MB / 461.5 MB, free: 9.23 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.44e-05/0.2776, allocations: 55.81 kB / 461.6 MB, free: 9.168 MB / 426.7 MB Notification: Performance of pre-optimization done (n=192): time 3.586e-06/0.2776, allocations: 0 / 461.6 MB, free: 9.168 MB / 426.7 MB Notification: Performance of matching and sorting (n=218): time 0.1615/0.4391, allocations: 20.54 MB / 482.1 MB, free: 132.8 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.498e-05/0.4392, allocations: 204.2 kB / 482.3 MB, free: 132.6 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005746/0.4449, allocations: 5.513 MB / 487.8 MB, free: 130.7 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001346/0.4451, allocations: 57.42 kB / 487.9 MB, free: 130.6 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00146/0.4465, allocations: 3.876 MB / 491.8 MB, free: 128 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004962/0.447, allocations: 0.8601 MB / 492.6 MB, free: 127.3 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001089/0.4481, allocations: 1.303 MB / 493.9 MB, free: 126.7 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 3.004e-05/0.4481, allocations: 303.3 kB / 494.2 MB, free: 126.4 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00216/0.4503, allocations: 2.352 MB / 496.6 MB, free: 125.6 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002827/0.4531, allocations: 6.365 MB / 0.4912 GB, free: 119.5 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004832/0.458, allocations: 9.408 MB / 0.5004 GB, free: 111.8 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.082e-05/0.458, allocations: 38.53 kB / 0.5004 GB, free: 111.8 MB / 426.7 MB Notification: Performance of matching and sorting (n=856) (initialization): time 0.007826/0.4658, allocations: 9.241 MB / 0.5094 GB, free: 105.4 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.703e-05/0.4659, allocations: 64 kB / 0.5095 GB, free: 105.4 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.048e-05/0.4659, allocations: 140 kB / 0.5096 GB, free: 105.2 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001439/0.4674, allocations: 1.087 MB / 0.5107 GB, free: 104.4 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002065/0.4694, allocations: 1.506 MB / 0.5121 GB, free: 103.1 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005436/0.4749, allocations: 8.654 MB / 0.5206 GB, free: 94.29 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003109/0.478, allocations: 435.5 kB / 0.521 GB, free: 93.86 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002501/0.4782, allocations: 399.9 kB / 0.5214 GB, free: 93.47 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 634 * Number of states: 0 () * Number of discrete variables: 45 (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 (794): * Single equations (assignments): 789 * 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,33,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002224/0.4804, allocations: 2.566 MB / 0.5239 GB, free: 90.9 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003389/0.4808, allocations: 460.9 kB / 0.5243 GB, free: 90.45 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003356/0.4841, allocations: 3.861 MB / 0.5281 GB, free: 86.56 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.493e-05/0.4842, allocations: 24 kB / 0.5281 GB, free: 86.54 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.081e-05/0.4842, allocations: 8 kB / 0.5281 GB, free: 86.53 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.101e-05/0.4842, allocations: 12.83 kB / 0.5281 GB, free: 86.52 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007986/0.4922, allocations: 9.424 MB / 0.5373 GB, free: 77.09 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.7e-06/0.4922, allocations: 0 / 0.5373 GB, free: 77.09 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000741/0.4929, allocations: 339.5 kB / 0.5377 GB, free: 76.76 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001225/0.4941, allocations: 0.8516 MB / 0.5385 GB, free: 75.9 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.265e-05/0.4942, allocations: 35.98 kB / 0.5385 GB, free: 75.87 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004564/0.4988, allocations: 7.757 MB / 0.5461 GB, free: 67.89 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.355e-06/0.4988, allocations: 6.672 kB / 0.5461 GB, free: 67.88 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004904/0.5037, allocations: 6.648 MB / 0.5526 GB, free: 61.21 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008651/0.5046, allocations: 0.7701 MB / 0.5534 GB, free: 60.43 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002564/0.5048, allocations: 36.25 kB / 0.5534 GB, free: 60.4 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009404/0.5058, allocations: 183.7 kB / 0.5536 GB, free: 60.22 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001909/0.5059, allocations: 146.1 kB / 0.5537 GB, free: 60.07 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.4e-05/0.506, allocations: 52 kB / 0.5538 GB, free: 60.02 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002268/0.5083, allocations: 3.402 MB / 0.5571 GB, free: 56.63 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.31e-07/0.5083, allocations: 0 / 0.5571 GB, free: 56.63 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003003/0.5113, allocations: 1.402 MB / 0.5585 GB, free: 55.23 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (169): * Single equations (assignments): 164 * 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,27,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.005058/0.5163, allocations: 7.332 MB / 0.5656 GB, free: 47.86 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004428/0.5208, allocations: 5.715 MB / 0.5712 GB, free: 42.15 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.5208, allocations: 0 / 0.5712 GB, free: 42.15 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001389/0.5222, allocations: 1.933 MB / 0.5731 GB, free: 40.19 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001623/0.5238, allocations: 0.5986 MB / 0.5737 GB, free: 39.61 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1661/0.6899, allocations: 55.37 MB / 0.6277 GB, free: 138 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003936/0.6939, allocations: 3.483 MB / 0.6311 GB, free: 137.3 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.003236/0.6971, allocations: 2.113 MB / 0.6332 GB, free: 137.2 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001838/0.6989, allocations: 2.476 MB / 0.6356 GB, free: 135.2 MB / 442.7 MB Notification: Performance of SimCode: time 1.914e-06/0.6989, allocations: 2 kB / 0.6356 GB, free: 135.2 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08306/0.782, allocations: 90.88 MB / 0.7244 GB, free: 55.28 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 11/11.78, allocations: 0 / 0.7244 GB, free: 55.28 MB / 442.7 MB " [Timeout remaining time 648] (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_GearConstraint_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_GearConstraint.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Rotational3DEffects/GearConstraint/GearConstraint.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.0575564019382]