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.001032/0.001032, allocations: 96.48 kB / 17.35 MB, free: 6.367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001432/0.001432, allocations: 205.5 kB / 18.29 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.441/1.441, allocations: 227.7 MB / 246.8 MB, free: 11.53 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002311/0.0002309, allocations: 11.98 kB / 307.7 MB, free: 0.8516 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09078/0.09103, allocations: 51.52 MB / 359.3 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.226/0.3171, allocations: 63.87 MB / 423.1 MB, free: 11.04 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02882/0.3459, allocations: 13.1 MB / 436.2 MB, free: 13.9 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0117/0.3577, allocations: 287.2 kB / 436.5 MB, free: 13.62 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00168/0.3594, allocations: 0.4975 MB / 437 MB, free: 13.12 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005282/0.3647, allocations: 2.009 MB / 439 MB, free: 11.11 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00185/0.3665, allocations: 0.8543 MB / 439.9 MB, free: 10.25 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01053/0.3771, allocations: 8.789 MB / 448.7 MB, free: 1.445 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01026/0.3874, allocations: 7.335 MB / 456 MB, free: 10.04 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002616/0.39, allocations: 1.506 MB / 457.5 MB, free: 8.523 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003657/0.3937, allocations: 2.53 MB / 460 MB, free: 5.984 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007497/0.3945, allocations: 176 kB / 460.2 MB, free: 5.812 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002179/0.3967, allocations: 1.123 MB / 461.3 MB, free: 4.688 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001926/0.3986, allocations: 2.17 MB / 463.5 MB, free: 2.512 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002345/0.401, allocations: 2.459 MB / 466 MB, free: 32 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007572/0.4085, allocations: 8.405 MB / 474.4 MB, free: 7.598 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.4086, allocations: 0 / 474.4 MB, free: 7.598 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.494e-06/0.4086, allocations: 0 / 474.4 MB, free: 7.598 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001938/0.4088, allocations: 0 / 474.4 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.009865/0.4187, allocations: 4.988 MB / 479.4 MB, free: 2.539 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.312e-05/0.4187, allocations: 12.03 kB / 479.4 MB, free: 2.527 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0118/0.4305, allocations: 2.646 MB / 482 MB, free: 15.87 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007159/0.4377, allocations: 3.726 MB / 485.7 MB, free: 12.09 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001967/0.4379, allocations: 304.1 kB / 486 MB, free: 11.79 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008652/0.4388, allocations: 431.9 kB / 486.5 MB, free: 11.37 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01781/0.4566, allocations: 11.56 MB / 498 MB, free: 15.06 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001513/0.4568, allocations: 51.5 kB / 498.1 MB, free: 15.01 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005536/0.4574, allocations: 187.9 kB / 498.3 MB, free: 14.82 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003387/0.4608, allocations: 2.03 MB / 0.4886 GB, free: 12.79 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01849/0.4793, allocations: 9.959 MB / 0.4983 GB, free: 2.809 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.263/0.7423, allocations: 45.54 MB / 0.5428 GB, free: 117.5 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01184/0.7542, allocations: 4.385 MB / 0.547 GB, free: 116.9 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003636/0.7579, allocations: 2.476 MB / 0.5495 GB, free: 116.8 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0164/0.7743, allocations: 9.828 MB / 0.5591 GB, free: 112.1 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.161e-05/0.7744, allocations: 61.64 kB / 0.5591 GB, free: 112.1 MB / 446.1 MB Notification: Performance of pre-optimization done (n=171): time 5.35e-06/0.7744, allocations: 3.969 kB / 0.5591 GB, free: 112.1 MB / 446.1 MB Notification: Performance of matching and sorting (n=197): time 0.05282/0.8272, allocations: 19.94 MB / 0.5786 GB, free: 102.8 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.465e-05/0.8273, allocations: 208.8 kB / 0.5788 GB, free: 102.6 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006529/0.8339, allocations: 4.681 MB / 0.5834 GB, free: 97.87 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003727/0.8343, allocations: 61.69 kB / 0.5834 GB, free: 97.8 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001696/0.836, allocations: 3.561 MB / 0.5869 GB, free: 94.25 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00074/0.8367, allocations: 0.7634 MB / 0.5876 GB, free: 93.49 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005944/0.8373, allocations: 0.5631 MB / 0.5882 GB, free: 92.92 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.103e-05/0.8374, allocations: 301.1 kB / 0.5885 GB, free: 92.62 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00293/0.8403, allocations: 2.412 MB / 0.5908 GB, free: 90.21 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004141/0.8445, allocations: 6.258 MB / 0.5969 GB, free: 82.22 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008392/0.8529, allocations: 9.308 MB / 0.606 GB, free: 71.16 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001368/0.8531, allocations: 36 kB / 0.6061 GB, free: 71.13 MB / 446.1 MB Notification: Performance of matching and sorting (n=855) (initialization): time 0.01588/0.8689, allocations: 9.787 MB / 0.6156 GB, free: 61.33 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000102/0.8691, allocations: 72.23 kB / 0.6157 GB, free: 61.26 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001657/0.8692, allocations: 136 kB / 0.6158 GB, free: 61.12 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004082/0.8733, allocations: 1.605 MB / 0.6174 GB, free: 59.52 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004224/0.8776, allocations: 1.482 MB / 0.6188 GB, free: 58.03 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01013/0.8877, allocations: 9.554 MB / 0.6282 GB, free: 48.21 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004477/0.8922, allocations: 367.5 kB / 0.6285 GB, free: 47.85 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007735/0.893, allocations: 389.4 kB / 0.6289 GB, free: 47.47 MB / 446.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.003637/0.8967, allocations: 2.459 MB / 0.6313 GB, free: 45 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008738/0.8976, allocations: 414.6 kB / 0.6317 GB, free: 44.59 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007669/0.9052, allocations: 4.255 MB / 0.6358 GB, free: 40.32 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.029e-05/0.9053, allocations: 21.17 kB / 0.6359 GB, free: 40.3 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.514e-05/0.9053, allocations: 8 kB / 0.6359 GB, free: 40.29 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.921e-05/0.9053, allocations: 7.969 kB / 0.6359 GB, free: 40.28 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01649/0.9218, allocations: 9.726 MB / 0.6454 GB, free: 30.52 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.21e-05/0.9219, allocations: 0 / 0.6454 GB, free: 30.52 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001385/0.9233, allocations: 307.5 kB / 0.6457 GB, free: 30.22 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003698/0.927, allocations: 1.366 MB / 0.647 GB, free: 28.85 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001739/0.9272, allocations: 33.8 kB / 0.647 GB, free: 28.82 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009094/0.9363, allocations: 8.758 MB / 0.6556 GB, free: 19.79 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.9363, allocations: 4.031 kB / 0.6556 GB, free: 19.79 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009481/0.9458, allocations: 6.979 MB / 0.6624 GB, free: 12.78 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001011/0.9468, allocations: 463.7 kB / 0.6628 GB, free: 12.3 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007368/0.9476, allocations: 35.98 kB / 0.6629 GB, free: 12.27 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001799/0.9494, allocations: 123.8 kB / 0.663 GB, free: 12.15 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003383/0.9497, allocations: 121 kB / 0.6631 GB, free: 12.03 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000124/0.9499, allocations: 56.69 kB / 0.6632 GB, free: 11.98 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004068/0.9539, allocations: 2.956 MB / 0.6661 GB, free: 9.023 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.9539, allocations: 0 / 0.6661 GB, free: 9.023 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004943/0.9589, allocations: 1.183 MB / 0.6672 GB, free: 7.844 MB / 446.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.0004459/0.9593, allocations: 167.2 kB / 0.6674 GB, free: 7.676 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007897/0.9673, allocations: 5.966 MB / 0.6732 GB, free: 1.711 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.997e-06/0.9673, allocations: 0.5625 kB / 0.6732 GB, free: 1.711 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002651/0.9699, allocations: 2.016 MB / 0.6752 GB, free: 15.67 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004023/0.974, allocations: 0.5112 MB / 0.6757 GB, free: 15.16 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02037/0.9944, allocations: 13.62 MB / 0.689 GB, free: 1.488 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005039/0.9994, allocations: 3.828 MB / 0.6927 GB, free: 13.63 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.005139/1.005, allocations: 1.98 MB / 0.6946 GB, free: 11.64 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008579/1.005, allocations: 263.4 kB / 0.6949 GB, free: 11.38 MB / 478.1 MB Notification: Performance of SimCode: time 8.51e-07/1.005, allocations: 3.938 kB / 0.6949 GB, free: 11.38 MB / 478.1 MB Notification: Performance of Templates: time 0.2577/1.263, allocations: 42.74 MB / 0.7366 GB, free: 150.2 MB / 478.1 MB 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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) Reference file matches