Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_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_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_ModelicaTest.MultiBody.Joints.GearConstraint") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001111/0.001111, allocations: 196.8 kB / 18.11 MB, free: 3.613 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.461/1.461, allocations: 226.5 MB / 245.4 MB, free: 8.18 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000876/0.0008759, allocations: 93.61 kB / 297.5 MB, free: 6.871 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3846/0.3846, allocations: 44.81 MB / 394.3 MB, free: 35.7 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002506/0.0002505, allocations: 8 kB / 467.9 MB, free: 12.04 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3989/0.3992, allocations: 62.95 MB / 0.5184 GB, free: 37.29 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1562/0.5555, allocations: 112.4 MB / 0.6282 GB, free: 8.816 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002465/0.5558, allocations: 87.89 kB / 0.6283 GB, free: 8.734 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6239/1.18, allocations: 161.1 MB / 0.7857 GB, free: 57.82 MB / 490.7 MB Notification: Performance of FrontEnd: time 5.491e-06/1.18, allocations: 0 / 0.7857 GB, free: 57.82 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0007776/1.181, allocations: 159.9 kB / 0.7858 GB, free: 57.66 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.02782/1.208, allocations: 7.651 MB / 0.7933 GB, free: 49.92 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.036e-05/1.208, allocations: 8.031 kB / 0.7933 GB, free: 49.91 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03301/1.242, allocations: 8.397 MB / 0.8015 GB, free: 41.49 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01881/1.26, allocations: 6.718 MB / 0.8081 GB, free: 34.68 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007064/1.261, allocations: 0.61 MB / 0.8087 GB, free: 34.07 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005309/1.267, allocations: 0.7969 MB / 0.8095 GB, free: 33.27 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05383/1.32, allocations: 19.97 MB / 0.829 GB, free: 11.86 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006424/1.321, allocations: 83.41 kB / 0.829 GB, free: 11.78 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004827/1.326, allocations: 391.7 kB / 0.8294 GB, free: 11.39 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002965/1.329, allocations: 2.042 MB / 0.8314 GB, free: 9.344 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0346/1.364, allocations: 17.47 MB / 0.8485 GB, free: 7.844 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.7119/2.075, allocations: 83.47 MB / 0.93 GB, free: 54.41 MB / 0.5262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01889/2.094, allocations: 7.726 MB / 0.9375 GB, free: 53.16 MB / 0.5262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007/2.101, allocations: 4.978 MB / 0.9424 GB, free: 53.11 MB / 0.5262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002187/2.102, allocations: 60.52 kB / 0.9424 GB, free: 53.11 MB / 0.5262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.611e-05/2.102, allocations: 79.91 kB / 0.9425 GB, free: 53.07 MB / 0.5262 GB Notification: Performance of pre-optimization done (n=429): time 7.444e-06/2.102, allocations: 0 / 0.9425 GB, free: 53.07 MB / 0.5262 GB Notification: Performance of matching and sorting (n=476): time 0.0954/2.197, allocations: 39.1 MB / 0.9807 GB, free: 46.07 MB / 0.5262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001561/2.197, allocations: 223.9 kB / 0.9809 GB, free: 45.84 MB / 0.5262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01373/2.211, allocations: 6.34 MB / 0.9871 GB, free: 43.71 MB / 0.5262 GB Notification: Performance of collectPreVariables (initialization): time 0.0009909/2.212, allocations: 86.42 kB / 0.9872 GB, free: 43.63 MB / 0.5262 GB Notification: Performance of collectInitialEqns (initialization): time 0.003851/2.216, allocations: 5.574 MB / 0.9926 GB, free: 39.51 MB / 0.5262 GB Notification: Performance of collectInitialBindings (initialization): time 0.002291/2.218, allocations: 1.735 MB / 0.9943 GB, free: 38.23 MB / 0.5262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009322/2.219, allocations: 217.2 kB / 0.9945 GB, free: 38.06 MB / 0.5262 GB Notification: Performance of setup shared object (initialization): time 0.0005789/2.22, allocations: 0.7818 MB / 0.9953 GB, free: 37.56 MB / 0.5262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006124/2.226, allocations: 4.703 MB / 0.9999 GB, free: 36.01 MB / 0.5262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0113/2.237, allocations: 10.78 MB / 1.01 GB, free: 26.45 MB / 0.5262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01919/2.257, allocations: 16.92 MB / 1.027 GB, free: 14.37 MB / 0.5262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002864/2.257, allocations: 59.19 kB / 1.027 GB, free: 14.37 MB / 0.5262 GB Notification: Performance of matching and sorting (n=1448) (initialization): time 0.03358/2.29, allocations: 16.6 MB / 1.043 GB, free: 1.133 MB / 0.5262 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001588/2.291, allocations: 96 kB / 1.043 GB, free: 1.039 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003325/2.291, allocations: 215.1 kB / 1.043 GB, free: 0.832 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005357/2.296, allocations: 1.775 MB / 1.045 GB, free: 15.75 MB / 0.5418 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01066/2.307, allocations: 2.521 MB / 1.048 GB, free: 13.57 MB / 0.5418 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01876/2.326, allocations: 14.06 MB / 1.061 GB, free: 440 kB / 0.5418 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01118/2.337, allocations: 0.6889 MB / 1.062 GB, free: 0 / 0.5418 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.006172/2.343, allocations: 0.8949 MB / 1.063 GB, free: 0 / 0.5418 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 962 * Number of states: 0 () * Number of discrete variables: 53 (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.torqueArrow.arrowLine.twoHeadedArrow,torque1.torqueArrow.headAtOrigin,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 (1324): * Single equations (assignments): 1311 * 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,(1,100.0%) 42,(1,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01134/2.355, allocations: 4.108 MB / 1.067 GB, free: 12.43 MB / 0.5574 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001631/2.356, allocations: 0.5977 MB / 1.068 GB, free: 11.82 MB / 0.5574 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0163/2.373, allocations: 9.218 MB / 1.077 GB, free: 4.102 MB / 0.5574 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001392/2.373, allocations: 95.91 kB / 1.077 GB, free: 4.016 MB / 0.5574 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.747e-05/2.373, allocations: 8 kB / 1.077 GB, free: 4.008 MB / 0.5574 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.511e-05/2.373, allocations: 26.28 kB / 1.077 GB, free: 4 MB / 0.5574 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0456/2.419, allocations: 20.82 MB / 1.097 GB, free: 2.648 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.01e-05/2.419, allocations: 12 kB / 1.097 GB, free: 2.637 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003661/2.422, allocations: 0.7565 MB / 1.098 GB, free: 2.039 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003769/2.426, allocations: 1.357 MB / 1.099 GB, free: 1.062 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009076/2.427, allocations: 91.61 kB / 1.099 GB, free: 0.9766 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.328/2.755, allocations: 12.9 MB / 1.112 GB, free: 136.9 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.165e-05/2.755, allocations: 20.75 kB / 1.112 GB, free: 136.9 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02127/2.776, allocations: 14.75 MB / 1.126 GB, free: 135.8 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001903/2.778, allocations: 0.6217 MB / 1.127 GB, free: 135.7 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001527/2.78, allocations: 81.67 kB / 1.127 GB, free: 135.7 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00288/2.783, allocations: 299.2 kB / 1.127 GB, free: 135.7 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007542/2.784, allocations: 290.5 kB / 1.127 GB, free: 135.7 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003203/2.784, allocations: 124.8 kB / 1.128 GB, free: 135.7 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.006091/2.79, allocations: 3.925 MB / 1.131 GB, free: 135.5 MB / 0.573 GB Notification: Performance of sort global known variables: time 2.81e-07/2.79, allocations: 0 / 1.131 GB, free: 135.5 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.01068/2.801, allocations: 1.988 MB / 1.133 GB, free: 135.5 MB / 0.573 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 {(1,100.0%) 39,(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.000968/2.802, allocations: 248 kB / 1.134 GB, free: 135.4 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.0188/2.821, allocations: 11.65 MB / 1.145 GB, free: 134.4 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.628e-05/2.821, allocations: 3.906 kB / 1.145 GB, free: 134.4 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.007342/2.828, allocations: 4.697 MB / 1.15 GB, free: 132.4 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01504/2.843, allocations: 0.7829 MB / 1.15 GB, free: 132.1 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03682/2.88, allocations: 23.28 MB / 1.173 GB, free: 120.8 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01339/2.893, allocations: 5.957 MB / 1.179 GB, free: 118.8 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.01155/2.905, allocations: 4.002 MB / 1.183 GB, free: 118.6 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0018/2.907, allocations: 431.3 kB / 1.183 GB, free: 118.6 MB / 0.573 GB Notification: Performance of SimCode: time 1.212e-06/2.907, allocations: 0 / 1.183 GB, free: 118.6 MB / 0.573 GB Notification: Performance of Templates: time 0.1145/3.021, allocations: 67.51 MB / 1.249 GB, free: 71.91 MB / 0.573 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.GearConstraint.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.GearConstraint.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.GearConstraint.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.GearConstraint.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.GearConstraint.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.GearConstraint -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.GearConstraint.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.GearConstraint_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/GearConstraint/GearConstraint.csv","../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.GearConstraint.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches