Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.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.0008217/0.0008217, 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.000827/0.000827, 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.8562/0.8562, allocations: 177 MB / 204.1 MB, free: 5.742 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.GearConstraint,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_GearConstraint",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_GearConstraint",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.373e-06/1.373e-06, allocations: 0 / 324.5 MB, free: 15.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.712e-05/1.85e-05, allocations: 2.281 kB / 324.5 MB, free: 15.91 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.008644/0.008663, allocations: 11.75 MB / 336.3 MB, free: 4.09 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.008027/0.01669, allocations: 4.379 MB / 340.6 MB, free: 15.7 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00221/0.0189, allocations: 107.5 kB / 340.8 MB, free: 15.59 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004797/0.0237, allocations: 4.287 MB / 345 MB, free: 11.29 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004099/0.0278, allocations: 2.263 MB / 347.3 MB, free: 9.02 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001436/0.02923, allocations: 1.018 MB / 348.3 MB, free: 8 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.005866/0.0351, allocations: 6.867 MB / 355.2 MB, free: 1.117 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004162/0.03926, allocations: 4.538 MB / 359.7 MB, free: 12.51 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003416/0.04268, allocations: 3.239 MB / 363 MB, free: 9.266 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00276/0.04544, allocations: 3.024 MB / 366 MB, free: 6.234 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005742/0.04601, allocations: 480 kB / 366.5 MB, free: 5.766 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001573/0.04758, allocations: 1.307 MB / 367.8 MB, free: 4.457 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001513/0.0491, allocations: 2.688 MB / 370.5 MB, free: 1.762 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001409/0.05051, allocations: 1.761 MB / 372.2 MB, free: 15.99 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006494/0.057, allocations: 9.32 MB / 381.5 MB, free: 6.648 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.658e-06/0.057, allocations: 0 / 381.5 MB, free: 6.648 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.844e-06/0.05701, allocations: 4 kB / 381.5 MB, free: 6.645 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0001653/0.05717, allocations: 0 / 381.5 MB, free: 6.645 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.00845/0.06562, allocations: 6.42 MB / 388 MB, free: 164 kB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.505e-05/0.06567, allocations: 15.98 kB / 388 MB, free: 148 kB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008266/0.06649, allocations: 0.8307 MB / 388.8 MB, free: 15.3 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01831/0.08481, allocations: 6.539 MB / 395.3 MB, free: 8.754 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006488/0.09129, allocations: 3.817 MB / 399.2 MB, free: 4.895 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001433/0.09144, allocations: 296.1 kB / 399.4 MB, free: 4.605 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007369/0.09217, allocations: 440.4 kB / 399.9 MB, free: 4.176 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01241/0.1046, allocations: 11.46 MB / 411.3 MB, free: 7.953 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001033/0.1047, allocations: 59.53 kB / 411.4 MB, free: 7.895 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00032/0.105, allocations: 183.9 kB / 411.6 MB, free: 7.715 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001794/0.1068, allocations: 2.022 MB / 413.6 MB, free: 5.684 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01211/0.1189, allocations: 9.639 MB / 423.2 MB, free: 12.03 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1904/0.3093, allocations: 42.45 MB / 465.7 MB, free: 84.49 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005728/0.3151, allocations: 3.79 MB / 469.5 MB, free: 84.16 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001794/0.3169, allocations: 2.179 MB / 471.7 MB, free: 83.25 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008365/0.3252, allocations: 8.759 MB / 480.4 MB, free: 79.46 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.852e-05/0.3253, allocations: 55.27 kB / 480.5 MB, free: 79.41 MB / 410.7 MB Notification: Performance of pre-optimization done (n=171): time 4.278e-06/0.3253, allocations: 0 / 480.5 MB, free: 79.41 MB / 410.7 MB Notification: Performance of matching and sorting (n=197): time 0.02496/0.3502, allocations: 19.07 MB / 499.5 MB, free: 61.33 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.538e-05/0.3503, allocations: 200.8 kB / 499.7 MB, free: 61.1 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003494/0.3538, allocations: 5.292 MB / 0.4932 GB, free: 55.96 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001878/0.3539, allocations: 53.7 kB / 0.4932 GB, free: 55.9 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009503/0.3549, allocations: 3.702 MB / 0.4969 GB, free: 52.39 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004435/0.3553, allocations: 0.7806 MB / 0.4976 GB, free: 51.62 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007685/0.3561, allocations: 1.247 MB / 0.4988 GB, free: 50.36 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.143e-05/0.3561, allocations: 305.1 kB / 0.4991 GB, free: 50.06 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001598/0.3577, allocations: 2.185 MB / 0.5013 GB, free: 47.87 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002291/0.36, allocations: 6.047 MB / 0.5072 GB, free: 39.96 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004819/0.3648, allocations: 8.901 MB / 0.5159 GB, free: 29.27 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.143e-05/0.3649, allocations: 40 kB / 0.5159 GB, free: 29.23 MB / 410.7 MB Notification: Performance of matching and sorting (n=815) (initialization): time 0.007914/0.3728, allocations: 8.755 MB / 0.5244 GB, free: 20.46 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.692e-05/0.3729, allocations: 68.06 kB / 0.5245 GB, free: 20.4 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.83e-05/0.3729, allocations: 132 kB / 0.5246 GB, free: 20.27 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001473/0.3744, allocations: 1.078 MB / 0.5257 GB, free: 19.19 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002206/0.3766, allocations: 1.423 MB / 0.5271 GB, free: 17.76 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005389/0.382, allocations: 8.652 MB / 0.5355 GB, free: 8.895 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003193/0.3852, allocations: 399.5 kB / 0.5359 GB, free: 8.504 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005583/0.3857, allocations: 387.9 kB / 0.5363 GB, free: 8.129 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 614 * 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 (753): * Single equations (assignments): 748 * 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.002573/0.3883, allocations: 2.444 MB / 0.5387 GB, free: 5.672 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000687/0.389, allocations: 433.1 kB / 0.5391 GB, free: 5.246 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003313/0.3923, allocations: 3.479 MB / 0.5425 GB, free: 1.754 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.739e-05/0.3923, allocations: 20 kB / 0.5425 GB, free: 1.734 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.122e-05/0.3923, allocations: 11.84 kB / 0.5425 GB, free: 1.727 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.449e-05/0.3924, allocations: 7.969 kB / 0.5425 GB, free: 1.719 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01092/0.4033, allocations: 8.686 MB / 0.551 GB, free: 9.004 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.146e-05/0.4033, allocations: 4.031 kB / 0.551 GB, free: 9 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007681/0.4041, allocations: 299.5 kB / 0.5513 GB, free: 8.707 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001409/0.4055, allocations: 0.8467 MB / 0.5521 GB, free: 7.855 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.733e-05/0.4055, allocations: 32 kB / 0.5521 GB, free: 7.824 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006013/0.4116, allocations: 7.751 MB / 0.5597 GB, free: 15.84 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/0.4116, allocations: 4 kB / 0.5597 GB, free: 15.84 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005868/0.4174, allocations: 6.038 MB / 0.5656 GB, free: 9.77 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001091/0.4185, allocations: 472.8 kB / 0.5661 GB, free: 9.305 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003088/0.4188, allocations: 32 kB / 0.5661 GB, free: 9.273 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009197/0.4198, allocations: 151.8 kB / 0.5662 GB, free: 9.125 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002463/0.42, allocations: 129 kB / 0.5664 GB, free: 8.996 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.032e-05/0.4201, allocations: 48 kB / 0.5664 GB, free: 8.949 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.003256/0.4233, allocations: 3.255 MB / 0.5696 GB, free: 5.699 MB / 442.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.4233, allocations: 0 / 0.5696 GB, free: 5.699 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004076/0.4274, allocations: 1.308 MB / 0.5709 GB, free: 4.395 MB / 442.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 (147): * Single equations (assignments): 142 * 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.006179/0.4336, allocations: 6.728 MB / 0.5774 GB, free: 13.63 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.006013/0.4396, allocations: 5.313 MB / 0.5826 GB, free: 8.324 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 5.079e-06/0.4396, allocations: 3.938 kB / 0.5826 GB, free: 8.32 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001767/0.4414, allocations: 1.757 MB / 0.5843 GB, free: 6.535 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00222/0.4436, allocations: 0.5829 MB / 0.5849 GB, free: 5.965 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1859/0.6295, allocations: 52.17 MB / 0.6359 GB, free: 166.1 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00222/0.6317, allocations: 3.293 MB / 0.6391 GB, free: 165.2 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.002609/0.6343, allocations: 1.997 MB / 0.641 GB, free: 165.1 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001735/0.636, allocations: 2.344 MB / 0.6433 GB, free: 163 MB / 490.7 MB Notification: Performance of SimCode: time 2.084e-06/0.636, allocations: 0 / 0.6433 GB, free: 163 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09491/0.7309, allocations: 86.83 MB / 0.7281 GB, free: 77.3 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.23/10.96, allocations: 7.844 kB / 0.7281 GB, free: 77.29 MB / 490.7 MB " [Timeout remaining time 649] (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_GearConstraint_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_GearConstraint.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Rotational3DEffects/GearConstraint/GearConstraint.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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: 13.277561345137656]