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.001012/0.001012, allocations: 198.9 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.214/1.214, allocations: 227.2 MB / 245 MB, free: 5.898 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009658/0.0009658, allocations: 100.4 kB / 297.3 MB, free: 5.969 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3072/0.3072, allocations: 45.23 MB / 394.7 MB, free: 31.72 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002653/0.0002653, allocations: 4 kB / 468.4 MB, free: 7.703 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2943/0.2946, allocations: 63.25 MB / 0.5192 GB, free: 37.39 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1402/0.4348, allocations: 111.5 MB / 0.6281 GB, free: 7.891 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002587/0.4351, allocations: 95.92 kB / 0.6282 GB, free: 7.797 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.113/1.548, allocations: 285.9 MB / 0.9073 GB, free: 52.46 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.004e-06/1.548, allocations: 0 / 0.9073 GB, free: 52.46 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0009148/1.549, allocations: 276 kB / 0.9076 GB, free: 52.45 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.04273/1.592, allocations: 13.84 MB / 0.9211 GB, free: 47.08 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.814e-05/1.592, allocations: 9.75 kB / 0.9211 GB, free: 47.08 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06777/1.66, allocations: 18.44 MB / 0.9391 GB, free: 46.1 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0378/1.698, allocations: 13.26 MB / 0.9521 GB, free: 44.64 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001435/1.699, allocations: 1.07 MB / 0.9531 GB, free: 44.61 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.008895/1.708, allocations: 1.424 MB / 0.9545 GB, free: 44.6 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08078/1.789, allocations: 35.64 MB / 0.9893 GB, free: 39.01 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008566/1.79, allocations: 132.7 kB / 0.9895 GB, free: 39 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006188/1.796, allocations: 0.6452 MB / 0.9901 GB, free: 39 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004849/1.801, allocations: 3.593 MB / 0.9936 GB, free: 38.97 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06371/1.865, allocations: 32.27 MB / 1.025 GB, free: 24.23 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5032/2.368, allocations: 137.2 MB / 1.159 GB, free: 39.36 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0322/2.4, allocations: 15.2 MB / 1.174 GB, free: 37.47 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0657/2.466, allocations: 34.51 MB / 1.208 GB, free: 34.71 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000108/2.466, allocations: 103.8 kB / 1.208 GB, free: 34.67 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=705): time 1.819e-05/2.466, allocations: 0 / 1.208 GB, free: 34.67 MB / 0.5886 GB Notification: Performance of matching and sorting (n=787): time 0.2129/2.679, allocations: 81.89 MB / 1.288 GB, free: 6.719 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001677/2.679, allocations: 305.6 kB / 1.288 GB, free: 6.363 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02098/2.7, allocations: 9.168 MB / 1.297 GB, free: 14.88 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 0.001789/2.702, allocations: 131.9 kB / 1.297 GB, free: 14.75 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.008422/2.71, allocations: 9.583 MB / 1.306 GB, free: 6.309 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.004119/2.715, allocations: 2.846 MB / 1.309 GB, free: 3.789 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002525/2.717, allocations: 346.5 kB / 1.31 GB, free: 3.453 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 0.002478/2.72, allocations: 1.077 MB / 1.311 GB, free: 2.582 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.03456/2.754, allocations: 9.708 MB / 1.32 GB, free: 0 / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3613/3.116, allocations: 17.34 MB / 1.337 GB, free: 118.9 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02237/3.138, allocations: 11.75 MB / 1.348 GB, free: 118.7 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0008035/3.139, allocations: 91.19 kB / 1.349 GB, free: 118.7 MB / 0.6198 GB Notification: Performance of matching and sorting (n=2328) (initialization): time 0.06311/3.202, allocations: 26.99 MB / 1.375 GB, free: 117.3 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008761/3.203, allocations: 146.4 kB / 1.375 GB, free: 117.3 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00108/3.204, allocations: 323.3 kB / 1.375 GB, free: 117.3 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007678/3.212, allocations: 2.407 MB / 1.378 GB, free: 117.3 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01541/3.227, allocations: 4.133 MB / 1.382 GB, free: 116.9 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0219/3.249, allocations: 14.79 MB / 1.396 GB, free: 114.1 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01609/3.265, allocations: 1.059 MB / 1.397 GB, free: 114.1 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004681/3.27, allocations: 0.9693 MB / 1.398 GB, free: 114.1 MB / 0.6198 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.02136/3.291, allocations: 7 MB / 1.405 GB, free: 113.6 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004112/3.296, allocations: 0.9802 MB / 1.406 GB, free: 113.6 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03593/3.331, allocations: 15.31 MB / 1.421 GB, free: 110.2 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002177/3.332, allocations: 161.2 kB / 1.421 GB, free: 110.1 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.377e-05/3.332, allocations: 14.48 kB / 1.421 GB, free: 110.1 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001718/3.332, allocations: 33.72 kB / 1.421 GB, free: 110.1 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07772/3.41, allocations: 33.56 MB / 1.454 GB, free: 98.11 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.089e-05/3.41, allocations: 11.5 kB / 1.454 GB, free: 98.11 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006036/3.416, allocations: 1.304 MB / 1.455 GB, free: 98.02 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00545/3.421, allocations: 1.773 MB / 1.457 GB, free: 97.66 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001346/3.423, allocations: 128.6 kB / 1.457 GB, free: 97.57 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01524/3.438, allocations: 13.37 MB / 1.47 GB, free: 90.62 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.624e-06/3.438, allocations: 11.56 kB / 1.47 GB, free: 90.62 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0348/3.473, allocations: 25.63 MB / 1.495 GB, free: 70.38 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003185/3.476, allocations: 0.9771 MB / 1.496 GB, free: 69.41 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003258/3.479, allocations: 124.7 kB / 1.496 GB, free: 69.29 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006436/3.486, allocations: 0.5036 MB / 1.497 GB, free: 68.98 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001925/3.488, allocations: 421 kB / 1.497 GB, free: 68.71 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00123/3.489, allocations: 176.1 kB / 1.497 GB, free: 68.55 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.01073/3.5, allocations: 6.358 MB / 1.503 GB, free: 63.38 MB / 0.6198 GB Notification: Performance of sort global known variables: time 5.11e-07/3.5, allocations: 3.391 kB / 1.503 GB, free: 63.38 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.01601/3.516, allocations: 3.33 MB / 1.507 GB, free: 60.06 MB / 0.6198 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.001238/3.517, allocations: 317.5 kB / 1.507 GB, free: 59.77 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0263/3.543, allocations: 19.08 MB / 1.526 GB, free: 42.89 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.395e-05/3.543, allocations: 4.25 kB / 1.526 GB, free: 42.89 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.01106/3.554, allocations: 7.412 MB / 1.533 GB, free: 36.34 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007932/3.562, allocations: 1.254 MB / 1.534 GB, free: 35.29 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3989/3.961, allocations: 39.59 MB / 1.573 GB, free: 109.1 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02025/3.982, allocations: 10.29 MB / 1.583 GB, free: 108 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.01735/3.999, allocations: 6.48 MB / 1.589 GB, free: 107.9 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002928/4.002, allocations: 0.6889 MB / 1.59 GB, free: 107.9 MB / 0.6198 GB Notification: Performance of SimCode: time 8.02e-07/4.002, allocations: 3.812 kB / 1.59 GB, free: 107.9 MB / 0.6198 GB Notification: Performance of Templates: time 0.1708/4.173, allocations: 99.79 MB / 1.687 GB, free: 88.39 MB / 0.6198 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