Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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_cpp_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_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001039/0.001039, allocations: 191.2 kB / 17.37 MB, free: 4.434 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.254/1.254, allocations: 226.6 MB / 244.7 MB, free: 8.18 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007646/0.0007646, allocations: 98.22 kB / 296.8 MB, free: 6.895 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002235/0.0002236, allocations: 12 kB / 356.8 MB, free: 10.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1997/0.1999, allocations: 51.29 MB / 408 MB, free: 27.71 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.0475/0.2475, allocations: 63.11 MB / 471.2 MB, free: 12.43 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.02607/0.2736, allocations: 13.33 MB / 484.5 MB, free: 15.08 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01005/0.2837, allocations: 303.2 kB / 484.8 MB, free: 14.79 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00892/0.2927, allocations: 3.301 MB / 488.1 MB, free: 11.47 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02293/0.3156, allocations: 9.673 MB / 497.8 MB, free: 1.758 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00414/0.3198, allocations: 0.8426 MB / 498.6 MB, free: 0.9141 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.248/0.5678, allocations: 62.13 MB / 0.5476 GB, free: 5.801 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007791/0.5756, allocations: 7.051 MB / 0.5545 GB, free: 0.7969 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002464/0.5781, allocations: 1.662 MB / 0.5561 GB, free: 15.68 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003336/0.5815, allocations: 2.522 MB / 0.5586 GB, free: 13.89 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000732/0.5822, allocations: 180 kB / 0.5587 GB, free: 13.71 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00223/0.5845, allocations: 1.114 MB / 0.5598 GB, free: 12.84 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002169/0.5867, allocations: 2.172 MB / 0.5619 GB, free: 11.26 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002695/0.5894, allocations: 2.364 MB / 0.5642 GB, free: 10.43 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007119/0.5965, allocations: 7.12 MB / 0.5712 GB, free: 4.258 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.102e-05/0.5966, allocations: 0 / 0.5712 GB, free: 4.258 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.016e-06/0.5966, allocations: 0 / 0.5712 GB, free: 4.258 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.000474/0.5971, allocations: 3.844 kB / 0.5712 GB, free: 4.258 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1760 * Number of variables: 1760 Notification: Performance of Generate backend data structure: time 0.01093/0.608, allocations: 5.055 MB / 0.5761 GB, free: 15.58 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.822e-05/0.6081, allocations: 10 kB / 0.5761 GB, free: 15.57 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01123/0.6193, allocations: 2.674 MB / 0.5788 GB, free: 13 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007496/0.6269, allocations: 3.744 MB / 0.5824 GB, free: 10.26 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002149/0.6271, allocations: 312 kB / 0.5827 GB, free: 10.09 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001217/0.6284, allocations: 430.5 kB / 0.5831 GB, free: 9.809 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01825/0.6466, allocations: 11.72 MB / 0.5946 GB, free: 0.7617 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001427/0.6468, allocations: 58.86 kB / 0.5946 GB, free: 0.7266 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000484/0.6473, allocations: 183.5 kB / 0.5948 GB, free: 0.6758 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003118/0.6504, allocations: 2.087 MB / 0.5968 GB, free: 14.95 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01786/0.6683, allocations: 10.07 MB / 0.6067 GB, free: 8.07 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05515/0.7235, allocations: 45.99 MB / 0.6516 GB, free: 14.88 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01041/0.734, allocations: 4.368 MB / 0.6559 GB, free: 10.38 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003405/0.7374, allocations: 2.46 MB / 0.6583 GB, free: 7.91 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01612/0.7536, allocations: 9.856 MB / 0.6679 GB, free: 13.97 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.132e-05/0.7537, allocations: 57.23 kB / 0.6679 GB, free: 13.91 MB / 490.7 MB Notification: Performance of pre-optimization done (n=171): time 7.064e-06/0.7537, allocations: 0 / 0.6679 GB, free: 13.91 MB / 490.7 MB Notification: Performance of matching and sorting (n=197): time 0.2306/0.9843, allocations: 19.96 MB / 0.6874 GB, free: 193.2 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.725e-05/0.9844, allocations: 199.3 kB / 0.6876 GB, free: 193 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007896/0.9923, allocations: 4.686 MB / 0.6922 GB, free: 191.5 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003613/0.9927, allocations: 54.48 kB / 0.6922 GB, free: 191.4 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00202/0.9947, allocations: 3.605 MB / 0.6958 GB, free: 188.7 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008652/0.9956, allocations: 0.7578 MB / 0.6965 GB, free: 188.1 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005317/0.9961, allocations: 133.9 kB / 0.6966 GB, free: 188 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.000371/0.9965, allocations: 0.5855 MB / 0.6972 GB, free: 187.6 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003299/0.9998, allocations: 2.39 MB / 0.6995 GB, free: 186.8 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004642/1.004, allocations: 6.251 MB / 0.7056 GB, free: 180.8 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008095/1.013, allocations: 9.311 MB / 0.7147 GB, free: 173.2 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001004/1.013, allocations: 43.94 kB / 0.7148 GB, free: 173.1 MB / 490.7 MB Notification: Performance of matching and sorting (n=858) (initialization): time 0.01622/1.029, allocations: 9.739 MB / 0.7243 GB, free: 163.8 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001651/1.029, allocations: 66.81 kB / 0.7244 GB, free: 163.7 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002228/1.029, allocations: 136 kB / 0.7245 GB, free: 163.6 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004068/1.033, allocations: 1.614 MB / 0.7261 GB, free: 162 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004286/1.038, allocations: 1.485 MB / 0.7275 GB, free: 160.5 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01076/1.049, allocations: 9.553 MB / 0.7368 GB, free: 150.6 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005369/1.054, allocations: 371.4 kB / 0.7372 GB, free: 150.3 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001136/1.055, allocations: 392.2 kB / 0.7376 GB, free: 149.9 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 617 * Number of states: 0 () * Number of discrete variables: 47 (torque1.torqueArrow.arrowLine.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 (796): * Single equations (assignments): 791 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(3,77.8%) 31,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004927/1.06, allocations: 2.472 MB / 0.74 GB, free: 147.4 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009428/1.061, allocations: 414.7 kB / 0.7404 GB, free: 147 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007605/1.069, allocations: 4.24 MB / 0.7445 GB, free: 142.7 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.047e-05/1.069, allocations: 20 kB / 0.7445 GB, free: 142.7 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.208e-05/1.069, allocations: 8 kB / 0.7445 GB, free: 142.7 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.309e-05/1.069, allocations: 11.25 kB / 0.7446 GB, free: 142.7 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01717/1.086, allocations: 9.779 MB / 0.7541 GB, free: 132.9 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.434e-05/1.086, allocations: 1.5 kB / 0.7541 GB, free: 132.9 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001387/1.087, allocations: 303.5 kB / 0.7544 GB, free: 132.6 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003604/1.091, allocations: 1.355 MB / 0.7557 GB, free: 131.2 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002282/1.091, allocations: 40 kB / 0.7558 GB, free: 131.2 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008938/1.1, allocations: 8.723 MB / 0.7643 GB, free: 122.2 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.898e-06/1.1, allocations: 7.922 kB / 0.7643 GB, free: 122.2 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009285/1.11, allocations: 6.973 MB / 0.7711 GB, free: 115.2 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001071/1.111, allocations: 459.6 kB / 0.7715 GB, free: 114.7 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008446/1.112, allocations: 32 kB / 0.7716 GB, free: 114.7 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001828/1.113, allocations: 116.9 kB / 0.7717 GB, free: 114.6 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003454/1.114, allocations: 125.1 kB / 0.7718 GB, free: 114.5 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001426/1.114, allocations: 53 kB / 0.7718 GB, free: 114.4 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.004081/1.118, allocations: 2.94 MB / 0.7747 GB, free: 111.5 MB / 490.7 MB Notification: Performance of sort global known variables: time 2.31e-07/1.118, allocations: 3.938 kB / 0.7747 GB, free: 111.5 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.004921/1.123, allocations: 1.203 MB / 0.7759 GB, free: 110.3 MB / 490.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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 27,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004124/1.123, allocations: 171.9 kB / 0.7761 GB, free: 110.1 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.007798/1.131, allocations: 5.95 MB / 0.7819 GB, free: 104.2 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 7.444e-06/1.131, allocations: 4 kB / 0.7819 GB, free: 104.2 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002634/1.134, allocations: 2.007 MB / 0.7838 GB, free: 102.1 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003921/1.138, allocations: 0.5078 MB / 0.7843 GB, free: 101.6 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0183/1.156, allocations: 13.66 MB / 0.7977 GB, free: 87.93 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003342/1.159, allocations: 3.844 MB / 0.8014 GB, free: 84.05 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001019/1.161, allocations: 319.4 kB / 0.8017 GB, free: 83.74 MB / 490.7 MB Notification: Performance of SimCode: time 5.91e-07/1.161, allocations: 0 / 0.8017 GB, free: 83.74 MB / 490.7 MB Notification: Performance of Templates: time 0.2892/1.45, allocations: 112.1 MB / 0.9112 GB, free: 153.9 MB / 490.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.makefile (rm -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.sim & ./Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches