Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.MultiBody.Joints.GearConstraint,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gearConstraint.actuatedRevolute_b.phi|gearConstraint.actuatedRevolute_b.w|inertia2.phi|inertia2.w",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.GearConstraint") translateModel(ModelicaTest.MultiBody.Joints.GearConstraint,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gearConstraint.actuatedRevolute_b.phi|gearConstraint.actuatedRevolute_b.w|inertia2.phi|inertia2.w",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.GearConstraint") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009679/0.0009678, allocations: 203.2 kB / 15.8 MB, free: 6.309 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.274/1.274, allocations: 226.5 MB / 243.1 MB, free: 12.58 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007211/0.0007211, allocations: 96.08 kB / 295.1 MB, free: 4.434 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1895/0.1895, allocations: 44.83 MB / 392 MB, free: 11.39 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000279/0.0002792, allocations: 8 kB / 464.7 MB, free: 68.09 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09903/0.09933, allocations: 62.96 MB / 0.5153 GB, free: 5.125 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.GearConstraint): time 0.2983/0.3977, allocations: 74.04 MB / 0.5876 GB, free: 1.742 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.03598/0.4337, allocations: 15.17 MB / 0.6025 GB, free: 7.086 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01875/0.4525, allocations: 354.2 kB / 0.6028 GB, free: 7.031 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01276/0.4653, allocations: 3.945 MB / 0.6066 GB, free: 4.105 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02939/0.4947, allocations: 11.44 MB / 0.6178 GB, free: 9.871 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005031/0.4998, allocations: 0.7997 MB / 0.6186 GB, free: 9.07 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.06906/0.5688, allocations: 64.64 MB / 0.6817 GB, free: 8.359 MB / 474.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0117/0.5806, allocations: 7.779 MB / 0.6893 GB, free: 0.5156 MB / 474.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004492/0.5851, allocations: 2.359 MB / 0.6916 GB, free: 14.14 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005181/0.5903, allocations: 3.676 MB / 0.6952 GB, free: 10.46 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001576/0.5919, allocations: 276 kB / 0.6955 GB, free: 10.19 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003135/0.5951, allocations: 1.007 MB / 0.6965 GB, free: 9.18 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003948/0.599, allocations: 3.234 MB / 0.6996 GB, free: 5.938 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002547/0.6016, allocations: 1.594 MB / 0.7012 GB, free: 4.332 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01061/0.6122, allocations: 10.54 MB / 0.7115 GB, free: 9.773 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.6123, allocations: 4 kB / 0.7115 GB, free: 9.77 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.696e-06/0.6123, allocations: 0 / 0.7115 GB, free: 9.77 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0005006/0.6128, allocations: 0 / 0.7115 GB, free: 9.77 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3026 * Number of variables: 3026 Notification: Performance of Generate backend data structure: time 0.01496/0.6278, allocations: 7.309 MB / 0.7186 GB, free: 2.379 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.06e-05/0.6278, allocations: 12.03 kB / 0.7186 GB, free: 2.367 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01994/0.6478, allocations: 5.616 MB / 0.7241 GB, free: 12.73 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01034/0.6581, allocations: 4.778 MB / 0.7288 GB, free: 7.891 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004448/0.6586, allocations: 447.2 kB / 0.7292 GB, free: 7.453 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002169/0.6608, allocations: 0.5698 MB / 0.7297 GB, free: 6.883 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0364/0.6972, allocations: 20.01 MB / 0.7493 GB, free: 1.844 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003355/0.6976, allocations: 75.3 kB / 0.7494 GB, free: 1.77 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00206/0.6997, allocations: 279.7 kB / 0.7496 GB, free: 1.496 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.2432/0.9429, allocations: 4.222 MB / 0.7537 GB, free: 181.8 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03479/0.9777, allocations: 17.75 MB / 0.7711 GB, free: 176.7 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08033/1.058, allocations: 73.99 MB / 0.8433 GB, free: 106.3 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01444/1.073, allocations: 7.945 MB / 0.8511 GB, free: 98.08 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005562/1.078, allocations: 5.173 MB / 0.8561 GB, free: 92.9 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003165/1.079, allocations: 63.64 kB / 0.8562 GB, free: 92.85 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.616e-05/1.079, allocations: 69.09 kB / 0.8563 GB, free: 92.77 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=429): time 7.103e-06/1.079, allocations: 7.938 kB / 0.8563 GB, free: 92.76 MB / 0.5261 GB Notification: Performance of matching and sorting (n=476): time 0.08575/1.164, allocations: 41.74 MB / 0.897 GB, free: 50.93 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.462e-05/1.164, allocations: 222.8 kB / 0.8972 GB, free: 50.67 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008249/1.173, allocations: 6.367 MB / 0.9035 GB, free: 44.29 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0008245/1.174, allocations: 94.88 kB / 0.9036 GB, free: 44.2 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.002567/1.176, allocations: 5.525 MB / 0.909 GB, free: 38.67 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001691/1.178, allocations: 1.729 MB / 0.9106 GB, free: 36.96 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001076/1.179, allocations: 221.2 kB / 0.9109 GB, free: 36.74 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0006647/1.18, allocations: 0.7973 MB / 0.9116 GB, free: 35.94 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006325/1.186, allocations: 4.996 MB / 0.9165 GB, free: 30.94 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008473/1.194, allocations: 11.07 MB / 0.9273 GB, free: 16.93 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008983/1.203, allocations: 7.387 MB / 0.9345 GB, free: 9.531 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001669/1.204, allocations: 60 kB / 0.9346 GB, free: 9.473 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1486) (initialization): time 0.02851/1.232, allocations: 17.8 MB / 0.952 GB, free: 7.645 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001899/1.232, allocations: 101.7 kB / 0.9521 GB, free: 7.547 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002697/1.233, allocations: 212 kB / 0.9523 GB, free: 7.34 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005774/1.238, allocations: 2.373 MB / 0.9546 GB, free: 4.953 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008303/1.247, allocations: 2.569 MB / 0.9571 GB, free: 2.379 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2254/1.472, allocations: 16.11 MB / 0.9728 GB, free: 163.1 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007107/1.479, allocations: 0.6682 MB / 0.9735 GB, free: 162.9 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0014/1.481, allocations: 0.6237 MB / 0.9741 GB, free: 162.8 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 958 * Number of states: 0 () * Number of discrete variables: 53 (torque1.torqueArrow.arrowLine.twoHeadedArrow,torque1.torqueArrow.headAtOrigin,fixedFrame1.color_x[3],fixedFrame1.color_x[2],fixedFrame1.color_x[1],fixedFrame2.color_x[3],fixedFrame2.color_x[2],fixedFrame2.color_x[1],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 (1362): * Single equations (assignments): 1349 * Array equations: 9 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 2,(1,100.0%) 2,(3,77.8%) 40,(1,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006723/1.488, allocations: 4.107 MB / 0.9781 GB, free: 161.3 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001113/1.489, allocations: 0.5916 MB / 0.9787 GB, free: 161.3 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01505/1.504, allocations: 10.19 MB / 0.9886 GB, free: 157.6 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001084/1.504, allocations: 87.44 kB / 0.9887 GB, free: 157.6 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.586e-05/1.504, allocations: 12.28 kB / 0.9887 GB, free: 157.6 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.599e-05/1.504, allocations: 21.66 kB / 0.9888 GB, free: 157.6 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03236/1.536, allocations: 21.93 MB / 1.01 GB, free: 149.9 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.962e-05/1.536, allocations: 11.38 kB / 1.01 GB, free: 149.9 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003158/1.54, allocations: 0.7447 MB / 1.011 GB, free: 149.9 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004741/1.544, allocations: 2.032 MB / 1.013 GB, free: 149.5 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005427/1.545, allocations: 87.58 kB / 1.013 GB, free: 149.4 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01419/1.559, allocations: 15.02 MB / 1.028 GB, free: 136.4 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.098e-05/1.559, allocations: 17.19 kB / 1.028 GB, free: 136.4 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0225/1.582, allocations: 16.06 MB / 1.043 GB, free: 120.5 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001721/1.583, allocations: 0.6362 MB / 1.044 GB, free: 119.9 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001877/1.585, allocations: 84.31 kB / 1.044 GB, free: 119.8 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003823/1.589, allocations: 318 kB / 1.044 GB, free: 119.5 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001027/1.59, allocations: 283.6 kB / 1.045 GB, free: 119.2 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006665/1.591, allocations: 121.2 kB / 1.045 GB, free: 119.1 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.006495/1.597, allocations: 3.936 MB / 1.049 GB, free: 115.2 MB / 0.5417 GB Notification: Performance of sort global known variables: time 3.51e-07/1.597, allocations: 0 / 1.049 GB, free: 115.2 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01032/1.608, allocations: 2.05 MB / 1.051 GB, free: 113.1 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 48 * 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 (359): * Single equations (assignments): 346 * Array equations: 9 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(3,77.8%) 37,(1,100.0%) 2,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001239/1.609, allocations: 241 kB / 1.051 GB, free: 112.9 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01926/1.628, allocations: 12.25 MB / 1.063 GB, free: 100.7 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.473e-05/1.628, allocations: 3.844 kB / 1.063 GB, free: 100.7 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.007286/1.636, allocations: 4.935 MB / 1.068 GB, free: 95.73 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007709/1.643, allocations: 0.7571 MB / 1.068 GB, free: 95 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04332/1.687, allocations: 24.49 MB / 1.092 GB, free: 70.44 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009177/1.696, allocations: 5.936 MB / 1.098 GB, free: 64.46 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002845/1.699, allocations: 0.5111 MB / 1.099 GB, free: 63.95 MB / 0.5417 GB Notification: Performance of SimCode: time 7.91e-07/1.699, allocations: 7 kB / 1.099 GB, free: 63.95 MB / 0.5417 GB Notification: Performance of Templates: time 0.4652/2.164, allocations: 264.3 MB / 1.357 GB, free: 2.527 MB / 0.5573 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.GearConstraint.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.GearConstraint.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.GearConstraint.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.GearConstraint.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.GearConstraint.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.GearConstraint --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.GearConstraint.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.GearConstraint_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/GearConstraint/GearConstraint.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.GearConstraint.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches