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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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: translateModel(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gearConstraint.actuatedRevolute_b.phi|gearConstraint.actuatedRevolute_b.w|inertia2.phi|inertia2.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint") translateModel(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gearConstraint.actuatedRevolute_b.phi|gearConstraint.actuatedRevolute_b.w|inertia2.phi|inertia2.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00159/0.00159, allocations: 121.7 kB / 18.46 MB, free: 4.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001795/0.001795, allocations: 212.8 kB / 19.41 MB, free: 3.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.419/1.419, allocations: 227.4 MB / 247.6 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001286/0.001286, allocations: 55.91 kB / 359.4 MB, free: 12.92 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2687/0.27, allocations: 50.54 MB / 409.9 MB, free: 1.578 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.01428/0.2843, allocations: 13.45 MB / 423.4 MB, free: 4.066 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.009482/0.2939, allocations: 4.544 MB / 427.9 MB, free: 15.51 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002327/0.2962, allocations: 95.69 kB / 428 MB, free: 15.42 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008148/0.3044, allocations: 4.182 MB / 432.2 MB, free: 11.22 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005919/0.3104, allocations: 2.12 MB / 434.3 MB, free: 9.094 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002437/0.3129, allocations: 0.9359 MB / 435.2 MB, free: 8.156 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.008838/0.3217, allocations: 6.128 MB / 441.4 MB, free: 2.016 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007391/0.3292, allocations: 5.189 MB / 446.6 MB, free: 12.77 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004128/0.3333, allocations: 2.119 MB / 448.7 MB, free: 10.64 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004728/0.3381, allocations: 2.804 MB / 451.5 MB, free: 7.828 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001774/0.3399, allocations: 476 kB / 452 MB, free: 7.363 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003604/0.3435, allocations: 1.338 MB / 453.3 MB, free: 6.023 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003489/0.3471, allocations: 2.513 MB / 455.8 MB, free: 3.504 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004973/0.3521, allocations: 2.832 MB / 458.6 MB, free: 0.6562 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01126/0.3633, allocations: 9.029 MB / 467.7 MB, free: 7.598 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.903e-06/0.3634, allocations: 0 / 467.7 MB, free: 7.598 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.3634, allocations: 0 / 467.7 MB, free: 7.598 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003263/0.3637, allocations: 0 / 467.7 MB, free: 7.598 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: 1731 * Number of variables: 1731 Notification: Performance of Generate backend data structure: time 0.01597/0.3797, allocations: 6.079 MB / 473.7 MB, free: 1.445 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.749e-05/0.3798, allocations: 12.03 kB / 473.8 MB, free: 1.434 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01272/0.3925, allocations: 2.576 MB / 476.3 MB, free: 14.85 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008623/0.4012, allocations: 3.804 MB / 480.1 MB, free: 10.99 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000286/0.4015, allocations: 300.1 kB / 480.4 MB, free: 10.7 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001613/0.4031, allocations: 423.8 kB / 480.8 MB, free: 10.28 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02269/0.4258, allocations: 11.55 MB / 492.4 MB, free: 13.98 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001698/0.426, allocations: 51.5 kB / 492.4 MB, free: 13.93 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007011/0.4268, allocations: 191.8 kB / 492.6 MB, free: 13.74 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003528/0.4303, allocations: 2.022 MB / 494.7 MB, free: 11.71 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0199/0.4502, allocations: 9.932 MB / 0.4928 GB, free: 1.762 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05877/0.509, allocations: 45.35 MB / 0.537 GB, free: 3.027 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.232/0.7411, allocations: 4.369 MB / 0.5413 GB, free: 122.5 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003064/0.7442, allocations: 2.465 MB / 0.5437 GB, free: 121.6 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01306/0.7573, allocations: 9.846 MB / 0.5533 GB, free: 117 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.503e-05/0.7574, allocations: 55.69 kB / 0.5534 GB, free: 116.9 MB / 462.1 MB Notification: Performance of pre-optimization done (n=171): time 6.141e-06/0.7574, allocations: 4.922 kB / 0.5534 GB, free: 116.9 MB / 462.1 MB Notification: Performance of matching and sorting (n=197): time 0.04739/0.8048, allocations: 19.9 MB / 0.5728 GB, free: 102.4 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.68e-05/0.8049, allocations: 209.1 kB / 0.573 GB, free: 102.2 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005252/0.8102, allocations: 4.685 MB / 0.5776 GB, free: 97.51 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000438/0.8106, allocations: 61.53 kB / 0.5777 GB, free: 97.45 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001515/0.8122, allocations: 3.548 MB / 0.5811 GB, free: 93.89 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007412/0.8129, allocations: 0.7703 MB / 0.5819 GB, free: 93.13 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001343/0.8143, allocations: 1.336 MB / 0.5832 GB, free: 91.79 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.633e-05/0.8143, allocations: 305.1 kB / 0.5835 GB, free: 91.48 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002632/0.817, allocations: 2.406 MB / 0.5858 GB, free: 89.08 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003784/0.8208, allocations: 6.249 MB / 0.5919 GB, free: 80.97 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007427/0.8282, allocations: 9.298 MB / 0.601 GB, free: 69.78 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.01e-05/0.8283, allocations: 36 kB / 0.601 GB, free: 69.75 MB / 462.1 MB Notification: Performance of matching and sorting (n=855) (initialization): time 0.01502/0.8434, allocations: 9.771 MB / 0.6106 GB, free: 59.96 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.197e-05/0.8435, allocations: 60 kB / 0.6106 GB, free: 59.9 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001159/0.8436, allocations: 136 kB / 0.6108 GB, free: 59.77 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003931/0.8475, allocations: 1.613 MB / 0.6123 GB, free: 58.15 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004242/0.8518, allocations: 1.478 MB / 0.6138 GB, free: 56.67 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009946/0.8618, allocations: 10.26 MB / 0.6238 GB, free: 46.13 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004689/0.8665, allocations: 363.4 kB / 0.6241 GB, free: 45.78 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009182/0.8674, allocations: 395.9 kB / 0.6245 GB, free: 45.39 MB / 462.1 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 (793): * Single equations (assignments): 788 * 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 {(3,31,77.8%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003444/0.8709, allocations: 2.454 MB / 0.6269 GB, free: 42.92 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007681/0.8717, allocations: 402.8 kB / 0.6273 GB, free: 42.52 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006779/0.8785, allocations: 4.24 MB / 0.6314 GB, free: 38.27 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.783e-05/0.8785, allocations: 23.91 kB / 0.6315 GB, free: 38.25 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.659e-05/0.8786, allocations: 8 kB / 0.6315 GB, free: 38.24 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.143e-05/0.8786, allocations: 7.969 kB / 0.6315 GB, free: 38.23 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0148/0.8934, allocations: 9.668 MB / 0.6409 GB, free: 28.52 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.465e-05/0.8934, allocations: 7.938 kB / 0.6409 GB, free: 28.52 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00133/0.8948, allocations: 291.6 kB / 0.6412 GB, free: 28.23 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003526/0.8983, allocations: 1.358 MB / 0.6425 GB, free: 26.87 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001905/0.8985, allocations: 35.98 kB / 0.6426 GB, free: 26.83 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00892/0.9074, allocations: 9.39 MB / 0.6517 GB, free: 17.16 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.9075, allocations: 0 / 0.6517 GB, free: 17.16 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008943/0.9164, allocations: 6.981 MB / 0.6586 GB, free: 10.16 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009745/0.9174, allocations: 451.7 kB / 0.659 GB, free: 9.695 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000599/0.9181, allocations: 32 kB / 0.659 GB, free: 9.664 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001597/0.9197, allocations: 111.8 kB / 0.6591 GB, free: 9.555 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003362/0.92, allocations: 121.1 kB / 0.6592 GB, free: 9.434 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001241/0.9201, allocations: 55.98 kB / 0.6593 GB, free: 9.379 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003546/0.9237, allocations: 2.952 MB / 0.6622 GB, free: 6.43 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.51e-07/0.9237, allocations: 0 / 0.6622 GB, free: 6.43 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004783/0.9285, allocations: 1.193 MB / 0.6633 GB, free: 5.242 MB / 462.1 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.0004205/0.9289, allocations: 165.6 kB / 0.6635 GB, free: 5.074 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.007767/0.9367, allocations: 5.975 MB / 0.6693 GB, free: 15.1 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 4.989e-06/0.9368, allocations: 0 / 0.6693 GB, free: 15.1 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003163/0.9399, allocations: 2.003 MB / 0.6713 GB, free: 13.07 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003125/0.9431, allocations: 0.5286 MB / 0.6718 GB, free: 12.55 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01909/0.9622, allocations: 11.54 MB / 0.6831 GB, free: 0.9688 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00478/0.967, allocations: 3.792 MB / 0.6868 GB, free: 13.14 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00112/0.9682, allocations: 315.4 kB / 0.6871 GB, free: 12.84 MB / 494.1 MB Notification: Performance of SimCode: time 8.11e-07/0.9682, allocations: 0 / 0.6871 GB, free: 12.84 MB / 494.1 MB Notification: Performance of Templates: time 0.5347/1.503, allocations: 112.4 MB / 0.7969 GB, free: 111.2 MB / 0.5138 GB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.makefile (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 & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Rotational3DEffects/GearConstraint/GearConstraint.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches