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.001308/0.001308, allocations: 193.8 kB / 16.09 MB, free: 5.68 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.465/1.465, allocations: 226.6 MB / 243.4 MB, free: 8.16 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007547/0.0007546, allocations: 102.8 kB / 295.5 MB, free: 6.875 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.289/0.289, allocations: 44.83 MB / 392.3 MB, free: 35.7 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002596/0.0002597, allocations: 8 kB / 465.3 MB, free: 12.67 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4085/0.4088, allocations: 62.95 MB / 0.5159 GB, free: 36.96 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.GearConstraint): time 0.1062/0.5151, allocations: 74.06 MB / 0.5882 GB, free: 14.13 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0581/0.5732, allocations: 15.16 MB / 0.603 GB, free: 28 kB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02254/0.5959, allocations: 351.2 kB / 0.6033 GB, free: 15.68 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01946/0.6154, allocations: 3.943 MB / 0.6072 GB, free: 11.72 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03657/0.652, allocations: 11.48 MB / 0.6184 GB, free: 204 kB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006162/0.6582, allocations: 0.8542 MB / 0.6192 GB, free: 15.34 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.3758/1.034, allocations: 64.72 MB / 0.6824 GB, free: 61.26 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01442/1.049, allocations: 8.281 MB / 0.6905 GB, free: 60.49 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007878/1.056, allocations: 2.371 MB / 0.6928 GB, free: 60.49 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007609/1.064, allocations: 3.67 MB / 0.6964 GB, free: 60.48 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002602/1.067, allocations: 279.5 kB / 0.6967 GB, free: 60.48 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005282/1.072, allocations: 1.152 MB / 0.6978 GB, free: 60.48 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 0.006985/1.079, allocations: 3.238 MB / 0.701 GB, free: 60.48 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 0.01066/1.09, allocations: 3.618 MB / 0.7045 GB, free: 60.45 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01391/1.104, allocations: 10.53 MB / 0.7148 GB, free: 57.52 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.77e-06/1.104, allocations: 0 / 0.7148 GB, free: 57.52 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.084e-06/1.104, allocations: 0 / 0.7148 GB, free: 57.52 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.000552/1.104, allocations: 0 / 0.7148 GB, free: 57.52 MB / 490.7 MB 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.01697/1.121, allocations: 7.205 MB / 0.7218 GB, free: 53.18 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.202e-05/1.121, allocations: 10.47 kB / 0.7218 GB, free: 53.18 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0202/1.142, allocations: 5.613 MB / 0.7273 GB, free: 50.55 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01307/1.155, allocations: 4.863 MB / 0.7321 GB, free: 47.77 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00044/1.155, allocations: 446.1 kB / 0.7325 GB, free: 47.53 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002696/1.158, allocations: 0.5672 MB / 0.7331 GB, free: 47.16 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03483/1.193, allocations: 20.02 MB / 0.7526 GB, free: 32.03 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003902/1.193, allocations: 63.25 kB / 0.7527 GB, free: 32 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002531/1.196, allocations: 277.3 kB / 0.7529 GB, free: 31.92 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005858/1.202, allocations: 4.233 MB / 0.7571 GB, free: 28.43 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03308/1.235, allocations: 17.74 MB / 0.7744 GB, free: 16.16 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1079/1.343, allocations: 74.04 MB / 0.8467 GB, free: 12.13 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01737/1.36, allocations: 7.93 MB / 0.8544 GB, free: 3.977 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007995/1.368, allocations: 5.177 MB / 0.8595 GB, free: 14.79 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004263/1.369, allocations: 63.59 kB / 0.8596 GB, free: 14.74 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.031e-05/1.369, allocations: 73.08 kB / 0.8596 GB, free: 14.66 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=429): time 9.517e-06/1.369, allocations: 0 / 0.8596 GB, free: 14.66 MB / 0.5573 GB Notification: Performance of matching and sorting (n=476): time 0.111/1.48, allocations: 41.76 MB / 0.9004 GB, free: 4.887 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001608/1.48, allocations: 228.8 kB / 0.9006 GB, free: 4.621 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2998/1.78, allocations: 6.357 MB / 0.9068 GB, free: 218.5 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 0.001384/1.781, allocations: 96.34 kB / 0.9069 GB, free: 218.5 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.004543/1.786, allocations: 5.524 MB / 0.9123 GB, free: 216.1 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.002773/1.789, allocations: 1.739 MB / 0.914 GB, free: 214.9 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001333/1.79, allocations: 218.3 kB / 0.9142 GB, free: 214.7 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0009722/1.791, allocations: 0.7981 MB / 0.915 GB, free: 214.2 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008469/1.799, allocations: 4.999 MB / 0.9199 GB, free: 212.6 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01279/1.812, allocations: 11.07 MB / 0.9307 GB, free: 202.9 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02475/1.837, allocations: 17.42 MB / 0.9477 GB, free: 189.9 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003373/1.837, allocations: 60.09 kB / 0.9478 GB, free: 189.9 MB / 0.5886 GB Notification: Performance of matching and sorting (n=1486) (initialization): time 0.0362/1.874, allocations: 17.79 MB / 0.9651 GB, free: 183.3 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001706/1.874, allocations: 101.4 kB / 0.9652 GB, free: 183.3 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003524/1.874, allocations: 209.5 kB / 0.9654 GB, free: 183.3 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006141/1.88, allocations: 2.361 MB / 0.9677 GB, free: 182.9 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009012/1.889, allocations: 2.568 MB / 0.9702 GB, free: 182.6 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01654/1.906, allocations: 16.12 MB / 0.986 GB, free: 171.2 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01294/1.919, allocations: 0.6645 MB / 0.9866 GB, free: 170.7 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003337/1.922, allocations: 0.6317 MB / 0.9872 GB, free: 170 MB / 0.5886 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.01392/1.936, allocations: 4.098 MB / 0.9913 GB, free: 166.5 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002779/1.939, allocations: 0.5938 MB / 0.9918 GB, free: 165.9 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02339/1.963, allocations: 10.19 MB / 1.002 GB, free: 157.5 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001106/1.963, allocations: 83.75 kB / 1.002 GB, free: 157.4 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.877e-05/1.963, allocations: 18.78 kB / 1.002 GB, free: 157.4 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.963e-05/1.963, allocations: 26.55 kB / 1.002 GB, free: 157.4 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04335/2.006, allocations: 21.92 MB / 1.023 GB, free: 138.5 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.858e-05/2.006, allocations: 12 kB / 1.023 GB, free: 138.5 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0037/2.01, allocations: 0.7458 MB / 1.024 GB, free: 137.7 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005461/2.015, allocations: 2.026 MB / 1.026 GB, free: 135.7 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001235/2.017, allocations: 93.56 kB / 1.026 GB, free: 135.6 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01542/2.032, allocations: 15.03 MB / 1.041 GB, free: 120.1 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.196e-05/2.032, allocations: 15.94 kB / 1.041 GB, free: 120 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0256/2.058, allocations: 16.06 MB / 1.056 GB, free: 103.7 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001974/2.06, allocations: 0.6299 MB / 1.057 GB, free: 103.1 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00234/2.062, allocations: 79.98 kB / 1.057 GB, free: 103 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004589/2.067, allocations: 321.2 kB / 1.057 GB, free: 102.7 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001319/2.068, allocations: 287.9 kB / 1.058 GB, free: 102.4 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007958/2.069, allocations: 124 kB / 1.058 GB, free: 102.3 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.007878/2.077, allocations: 3.932 MB / 1.062 GB, free: 98.37 MB / 0.5886 GB Notification: Performance of sort global known variables: time 3.6e-07/2.077, allocations: 0 / 1.062 GB, free: 98.37 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.01257/2.09, allocations: 2.044 MB / 1.064 GB, free: 96.33 MB / 0.5886 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.00148/2.091, allocations: 237.4 kB / 1.064 GB, free: 96.09 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.01831/2.109, allocations: 12.25 MB / 1.076 GB, free: 83.83 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.479e-05/2.109, allocations: 6.297 kB / 1.076 GB, free: 83.82 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.007127/2.117, allocations: 4.937 MB / 1.081 GB, free: 78.84 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01492/2.132, allocations: 0.752 MB / 1.081 GB, free: 78.1 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04187/2.173, allocations: 24.49 MB / 1.105 GB, free: 53.42 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009919/2.183, allocations: 5.94 MB / 1.111 GB, free: 47.44 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002988/2.186, allocations: 0.5033 MB / 1.112 GB, free: 46.94 MB / 0.5886 GB Notification: Performance of SimCode: time 1.463e-06/2.186, allocations: 0 / 1.112 GB, free: 46.94 MB / 0.5886 GB Notification: Performance of Templates: time 0.872/3.058, allocations: 264 MB / 1.369 GB, free: 191.6 MB / 0.5886 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