Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_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_cpp_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_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001304/0.001304, allocations: 198.3 kB / 16.78 MB, free: 4.883 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.238/1.238, allocations: 226.5 MB / 244.1 MB, free: 8.223 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007404/0.0007404, allocations: 105.6 kB / 296.1 MB, free: 6.898 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2798/0.2798, allocations: 44.82 MB / 393 MB, free: 35.74 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000276/0.000276, allocations: 8 kB / 465.9 MB, free: 12.7 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2864/0.2867, allocations: 62.96 MB / 0.5165 GB, free: 36.97 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1249/0.4116, allocations: 111.5 MB / 0.6254 GB, free: 9.852 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002876/0.4119, allocations: 91.94 kB / 0.6254 GB, free: 9.762 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.014/1.426, allocations: 279.8 MB / 0.8987 GB, free: 50.41 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.505e-06/1.426, allocations: 6.562 kB / 0.8987 GB, free: 50.41 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0005769/1.427, allocations: 273.3 kB / 0.899 GB, free: 50.4 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.03447/1.461, allocations: 13.43 MB / 0.9121 GB, free: 45.01 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.435e-05/1.461, allocations: 8.906 kB / 0.9121 GB, free: 45.01 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0568/1.518, allocations: 15.15 MB / 0.9269 GB, free: 44.04 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02978/1.548, allocations: 12.45 MB / 0.9391 GB, free: 42.42 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001055/1.549, allocations: 1.07 MB / 0.9401 GB, free: 42.39 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006619/1.555, allocations: 1.428 MB / 0.9415 GB, free: 42.37 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07421/1.63, allocations: 35.33 MB / 0.976 GB, free: 36.78 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008946/1.631, allocations: 132.2 kB / 0.9761 GB, free: 36.77 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006618/1.637, allocations: 0.6535 MB / 0.9768 GB, free: 36.77 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004607/1.642, allocations: 3.595 MB / 0.9803 GB, free: 36.73 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05651/1.698, allocations: 31.84 MB / 1.011 GB, free: 32.75 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4859/2.184, allocations: 137.4 MB / 1.146 GB, free: 40.95 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.032/2.216, allocations: 15.19 MB / 1.16 GB, free: 39.08 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01283/2.229, allocations: 9.377 MB / 1.17 GB, free: 39.02 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05915/2.288, allocations: 34.24 MB / 1.203 GB, free: 36.59 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.225e-05/2.289, allocations: 99.2 kB / 1.203 GB, free: 36.54 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=705): time 1.241e-05/2.289, allocations: 2.719 kB / 1.203 GB, free: 36.54 MB / 0.5886 GB Notification: Performance of matching and sorting (n=787): time 0.2025/2.491, allocations: 80.56 MB / 1.282 GB, free: 4.438 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001602/2.491, allocations: 307.9 kB / 1.282 GB, free: 4.082 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.03097/2.522, allocations: 11.03 MB / 1.293 GB, free: 13.48 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 0.001526/2.524, allocations: 136.7 kB / 1.293 GB, free: 13.34 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.008165/2.532, allocations: 9.574 MB / 1.302 GB, free: 4.863 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.004204/2.536, allocations: 2.85 MB / 1.305 GB, free: 2.336 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002649/2.539, allocations: 343.4 kB / 1.305 GB, free: 2.004 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 0.002284/2.541, allocations: 1.078 MB / 1.306 GB, free: 1.133 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.04131/2.583, allocations: 10.3 MB / 1.317 GB, free: 0 / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02245/2.605, allocations: 17.4 MB / 1.334 GB, free: 11.93 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.3314/2.937, allocations: 27.54 MB / 1.36 GB, free: 124 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003803/2.937, allocations: 94.31 kB / 1.36 GB, free: 124 MB / 0.6355 GB Notification: Performance of matching and sorting (n=2328) (initialization): time 0.05583/2.993, allocations: 27 MB / 1.387 GB, free: 121.8 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003466/2.993, allocations: 143.4 kB / 1.387 GB, free: 121.8 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0007694/2.994, allocations: 324 kB / 1.387 GB, free: 121.8 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00717/3.001, allocations: 2.361 MB / 1.39 GB, free: 121.7 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01421/3.015, allocations: 4.133 MB / 1.394 GB, free: 121.4 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0171/3.033, allocations: 14.38 MB / 1.408 GB, free: 118.5 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01336/3.046, allocations: 1.06 MB / 1.409 GB, free: 118.5 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00388/3.05, allocations: 0.967 MB / 1.41 GB, free: 118.5 MB / 0.6355 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 () * Number of clocked 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.01709/3.067, allocations: 6.997 MB / 1.417 GB, free: 118 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003002/3.07, allocations: 0.985 MB / 1.417 GB, free: 118 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03211/3.102, allocations: 15.31 MB / 1.432 GB, free: 117.6 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002088/3.102, allocations: 156.5 kB / 1.433 GB, free: 117.6 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.763e-05/3.103, allocations: 13.5 kB / 1.433 GB, free: 117.6 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001565/3.103, allocations: 32.02 kB / 1.433 GB, free: 117.6 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07845/3.181, allocations: 33.56 MB / 1.465 GB, free: 106.1 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.565e-05/3.181, allocations: 7.438 kB / 1.465 GB, free: 106.1 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006739/3.188, allocations: 1.313 MB / 1.467 GB, free: 106 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005517/3.194, allocations: 1.784 MB / 1.468 GB, free: 105.6 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001839/3.195, allocations: 129.4 kB / 1.469 GB, free: 105.6 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01572/3.211, allocations: 12.95 MB / 1.481 GB, free: 98.76 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.073e-06/3.211, allocations: 6.438 kB / 1.481 GB, free: 98.76 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03842/3.25, allocations: 24.12 MB / 1.505 GB, free: 83.47 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003672/3.253, allocations: 0.9682 MB / 1.506 GB, free: 82.51 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00392/3.257, allocations: 117.2 kB / 1.506 GB, free: 82.4 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007688/3.265, allocations: 0.5106 MB / 1.506 GB, free: 82.08 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00223/3.267, allocations: 422.3 kB / 1.507 GB, free: 81.81 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001361/3.269, allocations: 179.2 kB / 1.507 GB, free: 81.64 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 0.0146/3.283, allocations: 6.361 MB / 1.513 GB, free: 76.47 MB / 0.6355 GB Notification: Performance of sort global known variables: time 7.21e-07/3.283, allocations: 4 kB / 1.513 GB, free: 76.46 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.01895/3.302, allocations: 3.328 MB / 1.516 GB, free: 73.16 MB / 0.6355 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 () * Number of clocked 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.002061/3.304, allocations: 318.3 kB / 1.517 GB, free: 72.87 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.02984/3.334, allocations: 19.08 MB / 1.535 GB, free: 55.99 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 1.205e-05/3.334, allocations: 0 / 1.535 GB, free: 55.99 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.0124/3.347, allocations: 7.417 MB / 1.543 GB, free: 49.43 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01883/3.366, allocations: 1.339 MB / 1.544 GB, free: 48.3 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3766/3.742, allocations: 41.4 MB / 1.584 GB, free: 122.8 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02684/3.769, allocations: 10.01 MB / 1.594 GB, free: 121.7 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006154/3.775, allocations: 0.8329 MB / 1.595 GB, free: 121.7 MB / 0.6355 GB Notification: Performance of SimCode: time 1.142e-06/3.775, allocations: 3.75 kB / 1.595 GB, free: 121.7 MB / 0.6355 GB Notification: Performance of Templates: time 0.7772/4.553, allocations: 324.5 MB / 1.912 GB, free: 97.28 MB / 0.6355 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2 --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Parts/Rotor1D/GearConstraint2/GearConstraint2.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches