Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gearConstraint.actuatedRevolute_b.phi|gearConstraint.actuatedRevolute_b.w|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w|revolute3.phi|revolute3.w",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3") translateModel(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gearConstraint.actuatedRevolute_b.phi|gearConstraint.actuatedRevolute_b.w|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w|revolute3.phi|revolute3.w",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001837/0.001837, allocations: 181.7 kB / 17.41 MB, free: 4.285 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.966/2.966, allocations: 205.4 MB / 223.6 MB, free: 8.93 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001321/0.001321, allocations: 94.3 kB / 271.9 MB, free: 8.219 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.7282/0.7282, allocations: 43.56 MB / 363.7 MB, free: 52.16 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007243/0.0007247, allocations: 8 kB / 432.6 MB, free: 5.852 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2286/0.2293, allocations: 58.84 MB / 491.5 MB, free: 10.92 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7953/1.025, allocations: 108 MB / 0.5854 GB, free: 10.31 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0005575/1.025, allocations: 83.95 kB / 0.5855 GB, free: 10.23 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.102/2.127, allocations: 129.8 MB / 0.7123 GB, free: 83.16 MB / 490.7 MB Notification: Performance of FrontEnd: time 6.081e-06/2.127, allocations: 0 / 0.7123 GB, free: 83.16 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.001244/2.129, allocations: 136.2 kB / 0.7124 GB, free: 83.15 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: 2235 * Number of variables: 2235 Notification: Performance of Generate backend data structure: time 0.05068/2.179, allocations: 7.154 MB / 0.7194 GB, free: 80.26 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 0.0001081/2.179, allocations: 9.594 kB / 0.7194 GB, free: 80.26 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05179/2.231, allocations: 6.945 MB / 0.7262 GB, free: 79.79 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03305/2.264, allocations: 7.795 MB / 0.7338 GB, free: 78.74 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001063/2.266, allocations: 492 kB / 0.7343 GB, free: 78.72 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007573/2.273, allocations: 0.6467 MB / 0.7349 GB, free: 78.71 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07513/2.348, allocations: 16.22 MB / 0.7507 GB, free: 71.82 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001266/2.35, allocations: 86.31 kB / 0.7508 GB, free: 71.77 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.007597/2.357, allocations: 306.4 kB / 0.7511 GB, free: 71.6 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005657/2.363, allocations: 1.54 MB / 0.7526 GB, free: 71.32 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05644/2.42, allocations: 14.11 MB / 0.7664 GB, free: 66.88 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1604/2.58, allocations: 70.57 MB / 0.8353 GB, free: 7.316 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02621/2.607, allocations: 7.169 MB / 0.8423 GB, free: 16 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01354/2.62, allocations: 5.324 MB / 0.8475 GB, free: 10.66 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06992/2.69, allocations: 17.84 MB / 0.8649 GB, free: 8.723 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001713/2.691, allocations: 64.58 kB / 0.865 GB, free: 8.648 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=310): time 1.367e-05/2.691, allocations: 0 / 0.865 GB, free: 8.648 MB / 0.5105 GB Notification: Performance of matching and sorting (n=404): time 1.011/3.702, allocations: 58.57 MB / 0.9222 GB, free: 104.2 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003136/3.702, allocations: 327.1 kB / 0.9225 GB, free: 103.8 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02565/3.728, allocations: 5.602 MB / 0.928 GB, free: 102 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.002317/3.731, allocations: 95.61 kB / 0.9281 GB, free: 101.9 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.008399/3.739, allocations: 4.429 MB / 0.9324 GB, free: 98.74 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.005101/3.744, allocations: 1.455 MB / 0.9338 GB, free: 97.65 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003289/3.748, allocations: 173.6 kB / 0.934 GB, free: 97.52 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.001955/3.75, allocations: 0.6707 MB / 0.9346 GB, free: 97.05 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01901/3.769, allocations: 5.029 MB / 0.9396 GB, free: 95.25 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02493/3.794, allocations: 9.476 MB / 0.9488 GB, free: 87.6 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0431/3.837, allocations: 15.58 MB / 0.964 GB, free: 77.31 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0005509/3.838, allocations: 45.56 kB / 0.9641 GB, free: 77.31 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1107) (initialization): time 0.08426/3.922, allocations: 18.65 MB / 0.9823 GB, free: 70.79 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006812/3.923, allocations: 71.03 kB / 0.9823 GB, free: 70.79 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0007894/3.924, allocations: 154.8 kB / 0.9825 GB, free: 70.79 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02759/3.951, allocations: 4.767 MB / 0.9872 GB, free: 69.95 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01807/3.969, allocations: 2.024 MB / 0.9891 GB, free: 68.32 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0662/4.036, allocations: 25.47 MB / 1.014 GB, free: 46.29 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02023/4.056, allocations: 0.6163 MB / 1.015 GB, free: 45.8 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005725/4.062, allocations: 499.6 kB / 1.015 GB, free: 45.35 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 693 * Number of states: 0 () * Number of discrete variables: 57 (torque.connectionLineColor[3],torque.connectionLineColor[2],torque.connectionLineColor[1],torque.torqueColor[3],torque.torqueColor[2],torque.torqueColor[1],bodyBox3.color[3],bodyBox3.color[2],bodyBox3.color[1],bodyBox3.body.sphereColor[3],bodyBox3.body.sphereColor[2],bodyBox3.body.sphereColor[1],bodyBox2.color[3],bodyBox2.color[2],bodyBox2.color[1],bodyBox2.body.sphereColor[3],bodyBox2.body.sphereColor[2],bodyBox2.body.sphereColor[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.body.sphereColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[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],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]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1004): * Single equations (assignments): 998 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(3,100.0%) 15,(14,44.4%) 41,(2,100.0%) 7} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.02009/4.082, allocations: 3.18 MB / 1.018 GB, free: 42.55 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005451/4.088, allocations: 0.5468 MB / 1.019 GB, free: 42 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.06437/4.152, allocations: 13.5 MB / 1.032 GB, free: 29.94 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001824/4.152, allocations: 40.94 kB / 1.032 GB, free: 29.9 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001773/4.153, allocations: 16 kB / 1.032 GB, free: 29.89 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002518/4.153, allocations: 15.94 kB / 1.032 GB, free: 29.87 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1129/4.266, allocations: 23.92 MB / 1.055 GB, free: 5.941 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001113/4.266, allocations: 3.188 kB / 1.055 GB, free: 5.941 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008182/4.274, allocations: 0.706 MB / 1.056 GB, free: 5.234 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02657/4.301, allocations: 4.523 MB / 1.06 GB, free: 0.6953 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002626/4.304, allocations: 67.98 kB / 1.061 GB, free: 0.6289 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.7609/5.065, allocations: 24.64 MB / 1.085 GB, free: 112.4 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.015e-05/5.065, allocations: 0.5625 kB / 1.085 GB, free: 112.4 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.08654/5.151, allocations: 20.21 MB / 1.104 GB, free: 108.8 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01192/5.163, allocations: 1.463 MB / 1.106 GB, free: 108.4 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005742/5.169, allocations: 64.62 kB / 1.106 GB, free: 108.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01258/5.182, allocations: 358.5 kB / 1.106 GB, free: 108.3 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004085/5.186, allocations: 254.7 kB / 1.106 GB, free: 108.2 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002476/5.189, allocations: 104.9 kB / 1.106 GB, free: 108.2 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0205/5.209, allocations: 3.543 MB / 1.11 GB, free: 107.1 MB / 0.5261 GB Notification: Performance of sort global known variables: time 2.314e-06/5.209, allocations: 0 / 1.11 GB, free: 107.1 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.02561/5.235, allocations: 1.93 MB / 1.112 GB, free: 106.9 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (gearConstraint.actuatedRevolute_a.phi,gearConstraint.actuatedRevolute_a.w,revolute1.phi,revolute1.w,revolute2.phi,revolute2.w,revolute3.phi,revolute3.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 (315): * Single equations (assignments): 309 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(3,100.0%) 12,(14,43.4%) 41,(2,100.0%) 7} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003806/5.239, allocations: 224.3 kB / 1.112 GB, free: 106.7 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.04539/5.284, allocations: 13.16 MB / 1.125 GB, free: 102.3 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.887e-05/5.284, allocations: 0 / 1.125 GB, free: 102.3 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.02373/5.308, allocations: 6.327 MB / 1.131 GB, free: 99.89 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01797/5.326, allocations: 0.7605 MB / 1.132 GB, free: 99.57 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08196/5.408, allocations: 21.48 MB / 1.153 GB, free: 89.28 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0233/5.432, allocations: 4.975 MB / 1.158 GB, free: 87.59 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006046/5.438, allocations: 458.6 kB / 1.158 GB, free: 87.57 MB / 0.5261 GB Notification: Performance of SimCode: time 1.713e-06/5.438, allocations: 0 / 1.158 GB, free: 87.57 MB / 0.5261 GB Notification: Performance of Templates: time 1.136/6.574, allocations: 193.1 MB / 1.347 GB, free: 89.81 MB / 0.5261 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3 --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Parts/Rotor1D/GearConstraint3/GearConstraint3.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,gearConstraint.actuatedRevolute_b.phi,gearConstraint.actuatedRevolute_b.w,revolute1.phi,revolute1.w,revolute2.phi,revolute2.w,revolute3.phi,revolute3.w Variables in the result:gearConstraint.actuatedRevolute_b.phi,gearConstraint.actuatedRevolute_b.w,revolute1.phi,revolute1.w,revolute2.phi,revolute2.w,revolute3.phi,revolute3.w,time