Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.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.Parts.Rotor1D.GearConstraint2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gc1.actuatedRevolute_b.phi|gc1.actuatedRevolute_b.w|gc2.actuatedRevolute_b.phi|gc2.actuatedRevolute_b.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2") translateModel(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gc1.actuatedRevolute_b.phi|gc1.actuatedRevolute_b.w|gc2.actuatedRevolute_b.phi|gc2.actuatedRevolute_b.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009444/0.0009444, allocations: 197.1 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.179/1.179, allocations: 225.4 MB / 240.1 MB, free: 15.16 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009794/0.0009794, allocations: 89.31 kB / 292.1 MB, free: 5.879 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1704/0.1704, allocations: 45.15 MB / 389.3 MB, free: 11.89 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 2.438e-05/2.442e-05, allocations: 4 kB / 460.4 MB, free: 70.03 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1022/0.1023, allocations: 63.24 MB / 0.5114 GB, free: 6.805 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.351/0.4533, allocations: 111.5 MB / 0.6202 GB, free: 14.83 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002453/0.4536, allocations: 83.45 kB / 0.6203 GB, free: 14.79 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8268/1.28, allocations: 286.2 MB / 0.8998 GB, free: 49.24 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.663e-06/1.28, allocations: 0 / 0.8998 GB, free: 49.24 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0005755/1.281, allocations: 275.9 kB / 0.9001 GB, free: 48.97 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5288 * Number of variables: 5288 Notification: Performance of Generate backend data structure: time 0.03716/1.318, allocations: 12.95 MB / 0.9127 GB, free: 35.91 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.929e-05/1.318, allocations: 11.97 kB / 0.9127 GB, free: 35.9 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06522/1.383, allocations: 18.46 MB / 0.9307 GB, free: 17.4 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03054/1.414, allocations: 13.2 MB / 0.9436 GB, free: 4.117 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009484/1.415, allocations: 1.071 MB / 0.9447 GB, free: 3.043 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007163/1.422, allocations: 1.421 MB / 0.9461 GB, free: 1.621 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.373/1.795, allocations: 35.31 MB / 0.9805 GB, free: 65.48 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.00101/1.796, allocations: 132.1 kB / 0.9807 GB, free: 65.48 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.007045/1.803, allocations: 0.6475 MB / 0.9813 GB, free: 65.48 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006394/1.81, allocations: 3.589 MB / 0.9848 GB, free: 65.45 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06135/1.871, allocations: 31.7 MB / 1.016 GB, free: 65.32 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1664/2.038, allocations: 137.3 MB / 1.15 GB, free: 13.48 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03149/2.069, allocations: 15.05 MB / 1.165 GB, free: 248 kB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0123/2.082, allocations: 9.245 MB / 1.174 GB, free: 7.734 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3514/2.433, allocations: 34.57 MB / 1.207 GB, free: 117.7 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.297e-05/2.433, allocations: 94.48 kB / 1.207 GB, free: 117.6 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=705): time 9.328e-06/2.433, allocations: 0 / 1.207 GB, free: 117.6 MB / 0.5886 GB Notification: Performance of matching and sorting (n=787): time 0.1667/2.6, allocations: 68.63 MB / 1.274 GB, free: 108.5 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001005/2.6, allocations: 303.1 kB / 1.275 GB, free: 108.2 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01324/2.613, allocations: 9.08 MB / 1.284 GB, free: 105.2 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 0.001428/2.615, allocations: 129.2 kB / 1.284 GB, free: 105.1 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.006349/2.621, allocations: 9.575 MB / 1.293 GB, free: 98.09 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.00396/2.625, allocations: 2.855 MB / 1.296 GB, free: 95.98 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00175/2.627, allocations: 348.3 kB / 1.296 GB, free: 95.71 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.001018/2.628, allocations: 1.078 MB / 1.297 GB, free: 95.07 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01028/2.638, allocations: 7.802 MB / 1.305 GB, free: 91.11 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01437/2.652, allocations: 17.15 MB / 1.322 GB, free: 70.88 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01538/2.668, allocations: 11.65 MB / 1.333 GB, free: 61.54 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002812/2.668, allocations: 99.42 kB / 1.333 GB, free: 61.44 MB / 0.5886 GB Notification: Performance of matching and sorting (n=2328) (initialization): time 0.04395/2.712, allocations: 26.6 MB / 1.359 GB, free: 38.86 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001665/2.712, allocations: 144 kB / 1.359 GB, free: 38.72 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003373/2.713, allocations: 328.1 kB / 1.36 GB, free: 38.4 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005678/2.718, allocations: 2.395 MB / 1.362 GB, free: 36.54 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01386/2.732, allocations: 4.137 MB / 1.366 GB, free: 33.01 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01571/2.748, allocations: 14.32 MB / 1.38 GB, free: 20.31 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01296/2.761, allocations: 1.062 MB / 1.381 GB, free: 19.45 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003308/2.764, allocations: 0.964 MB / 1.382 GB, free: 18.5 MB / 0.5886 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1479 * Number of states: 0 () * Number of discrete variables: 97 (torque2.connectionLineColor[3],torque2.connectionLineColor[2],torque2.connectionLineColor[1],torque2.torqueArrow.arrowLine.twoHeadedArrow,torque2.torqueArrow.headAtOrigin,torque2.torqueColor[3],torque2.torqueColor[2],torque2.torqueColor[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueArrow.arrowLine.twoHeadedArrow,torque1.torqueArrow.headAtOrigin,torque1.torqueColor[3],torque1.torqueColor[2],torque1.torqueColor[1],fixedTranslation2.color[3],fixedTranslation2.color[2],fixedTranslation2.color[1],fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],fixedFrame3.color_x[3],fixedFrame3.color_x[2],fixedFrame3.color_x[1],fixedFrame2.color_x[3],fixedFrame2.color_x[2],fixedFrame2.color_x[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],fixedFrame1.color_x[3],fixedFrame1.color_x[2],fixedFrame1.color_x[1],fixedFrame.color_x[3],fixedFrame.color_x[2],fixedFrame.color_x[1],bodyCylinder3.color[3],bodyCylinder3.color[2],bodyCylinder3.color[1],bodyCylinder3.body.sphereColor[3],bodyCylinder3.body.sphereColor[2],bodyCylinder3.body.sphereColor[1],bodyCylinder2.color[3],bodyCylinder2.color[2],bodyCylinder2.color[1],bodyCylinder2.body.sphereColor[3],bodyCylinder2.body.sphereColor[2],bodyCylinder2.body.sphereColor[1],bodyCylinder1.color[3],bodyCylinder1.color[2],bodyCylinder1.color[1],bodyCylinder1.body.sphereColor[3],bodyCylinder1.body.sphereColor[2],bodyCylinder1.body.sphereColor[1],bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],gc2.fixedTranslation2.color[3],gc2.fixedTranslation2.color[2],gc2.fixedTranslation2.color[1],gc2.fixedTranslation1.color[3],gc2.fixedTranslation1.color[2],gc2.fixedTranslation1.color[1],gc2.actuatedRevolute_b.cylinderColor[3],gc2.actuatedRevolute_b.cylinderColor[2],gc2.actuatedRevolute_b.cylinderColor[1],gc2.actuatedRevolute_a.cylinderColor[3],gc2.actuatedRevolute_a.cylinderColor[2],gc2.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],gc1.fixedTranslation2.color[3],gc1.fixedTranslation2.color[2],gc1.fixedTranslation2.color[1],gc1.fixedTranslation1.color[3],gc1.fixedTranslation1.color[2],gc1.fixedTranslation1.color[1],gc1.actuatedRevolute_b.cylinderColor[3],gc1.actuatedRevolute_b.cylinderColor[2],gc1.actuatedRevolute_b.cylinderColor[1],gc1.actuatedRevolute_a.cylinderColor[3],gc1.actuatedRevolute_a.cylinderColor[2],gc1.actuatedRevolute_a.cylinderColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2132): * Single equations (assignments): 2115 * Array equations: 15 * 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%) 36,(3,77.8%) 36} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003592/2.768, allocations: 1.39 MB / 1.383 GB, free: 17.12 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001847/2.77, allocations: 0.9833 MB / 1.384 GB, free: 16.12 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.31/3.08, allocations: 15.09 MB / 1.399 GB, free: 97.97 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002386/3.08, allocations: 162.8 kB / 1.399 GB, free: 97.97 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.512e-05/3.08, allocations: 14.59 kB / 1.399 GB, free: 97.97 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001515/3.08, allocations: 35.11 kB / 1.399 GB, free: 97.97 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06688/3.147, allocations: 33.33 MB / 1.432 GB, free: 96.45 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.019e-05/3.147, allocations: 9.141 kB / 1.432 GB, free: 96.45 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005806/3.153, allocations: 1.311 MB / 1.433 GB, free: 96.45 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004927/3.158, allocations: 1.769 MB / 1.435 GB, free: 96.43 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009985/3.159, allocations: 121.9 kB / 1.435 GB, free: 96.43 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01377/3.173, allocations: 12.92 MB / 1.447 GB, free: 93.72 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.634e-06/3.173, allocations: 10.59 kB / 1.447 GB, free: 93.72 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03072/3.204, allocations: 25.28 MB / 1.472 GB, free: 87.98 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002822/3.206, allocations: 0.9685 MB / 1.473 GB, free: 87.84 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003121/3.21, allocations: 118.1 kB / 1.473 GB, free: 87.76 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006271/3.216, allocations: 0.5123 MB / 1.474 GB, free: 87.68 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001511/3.217, allocations: 415.3 kB / 1.474 GB, free: 87.62 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004927/3.218, allocations: 187.6 kB / 1.474 GB, free: 87.57 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.01058/3.229, allocations: 6.264 MB / 1.48 GB, free: 85.49 MB / 0.5886 GB Notification: Performance of sort global known variables: time 5.11e-07/3.229, allocations: 0 / 1.48 GB, free: 85.49 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.01555/3.244, allocations: 3.327 MB / 1.484 GB, free: 85.12 MB / 0.5886 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * Number of states: 4 (gc1.actuatedRevolute_b.phi,gc1.actuatedRevolute_b.w,gc2.actuatedRevolute_b.phi,gc2.actuatedRevolute_b.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (611): * Single equations (assignments): 594 * Array equations: 15 * 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%) 32,(1,100.0%) 32} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0012/3.245, allocations: 307.3 kB / 1.484 GB, free: 84.96 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.02438/3.27, allocations: 18.75 MB / 1.502 GB, free: 79.21 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 9.628e-06/3.27, allocations: 3.656 kB / 1.502 GB, free: 79.21 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.009338/3.279, allocations: 7.28 MB / 1.509 GB, free: 76.55 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007597/3.287, allocations: 1.254 MB / 1.511 GB, free: 76.04 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05696/3.344, allocations: 28.34 MB / 1.538 GB, free: 56.3 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01836/3.362, allocations: 10.29 MB / 1.548 GB, free: 48.87 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.01925/3.381, allocations: 6.479 MB / 1.555 GB, free: 44.99 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004367/3.386, allocations: 0.6919 MB / 1.555 GB, free: 44.32 MB / 0.5886 GB Notification: Performance of SimCode: time 1.112e-06/3.386, allocations: 0 / 1.555 GB, free: 44.32 MB / 0.5886 GB Notification: Performance of Templates: time 0.484/3.87, allocations: 99.79 MB / 1.653 GB, free: 102.4 MB / 0.6042 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Parts/Rotor1D/GearConstraint2/GearConstraint2.csv","../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches