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/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001302/0.001302, allocations: 95.5 kB / 21.2 MB, free: 3.371 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001716/0.001716, allocations: 160.5 kB / 24.55 MB, free: 16 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.955/0.955, allocations: 177 MB / 204.8 MB, free: 5.59 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2636/0.2636, allocations: 34.87 MB / 296.3 MB, free: 0.5273 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Joints.GearConstraint,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,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=5002,variableFilter="time|gearConstraint.actuatedRevolute_b.phi|gearConstraint.actuatedRevolute_b.w|inertia2.phi|inertia2.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.GearConstraint") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.794e-06/1.794e-06, allocations: 0 / 378.8 MB, free: 2.066 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.881e-05/3.061e-05, allocations: 7.234 kB / 378.8 MB, free: 2.059 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.GearConstraint): time 0.0174/0.01743, allocations: 17.89 MB / 396.7 MB, free: 88 kB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.009469/0.0269, allocations: 5.241 MB / 401.9 MB, free: 10.83 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002164/0.02906, allocations: 139.4 kB / 402.1 MB, free: 10.69 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004813/0.03387, allocations: 5.112 MB / 407.2 MB, free: 5.562 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004759/0.03863, allocations: 3.262 MB / 410.4 MB, free: 2.285 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001345/0.03998, allocations: 1.002 MB / 411.4 MB, free: 1.281 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.00776/0.04774, allocations: 9.224 MB / 420.7 MB, free: 8.035 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005893/0.05363, allocations: 5.916 MB / 426.6 MB, free: 2.047 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00536/0.05899, allocations: 5.446 MB / 432 MB, free: 12.59 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00341/0.0624, allocations: 4.353 MB / 436.4 MB, free: 8.227 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006207/0.06302, allocations: 0.6328 MB / 437 MB, free: 7.594 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00166/0.06468, allocations: 1.467 MB / 438.5 MB, free: 6.125 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002086/0.06677, allocations: 3.9 MB / 442.4 MB, free: 2.215 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.1553/0.2221, allocations: 2.404 MB / 444.8 MB, free: 63.15 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009146/0.2312, allocations: 8.453 MB / 453.2 MB, free: 62.49 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.731e-06/0.2312, allocations: 0 / 453.2 MB, free: 62.49 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.234e-06/0.2312, allocations: 3.281 kB / 453.2 MB, free: 62.49 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0005238/0.2318, allocations: 0 / 453.2 MB, free: 62.49 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2997 * Number of variables: 2997 Notification: Performance of Generate backend data structure: time 0.0101/0.2419, allocations: 9.629 MB / 462.9 MB, free: 58.94 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.822e-05/0.2419, allocations: 9.312 kB / 462.9 MB, free: 58.94 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0111/0.253, allocations: 6.403 MB / 469.3 MB, free: 58.34 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005168/0.2582, allocations: 4.313 MB / 473.6 MB, free: 57.47 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002015/0.2584, allocations: 440.6 kB / 474 MB, free: 57.46 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007572/0.2591, allocations: 0.5797 MB / 474.6 MB, free: 57.42 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01526/0.2744, allocations: 10.94 MB / 485.5 MB, free: 51.66 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001661/0.2746, allocations: 68.69 kB / 485.6 MB, free: 51.64 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005417/0.2751, allocations: 274.5 kB / 485.9 MB, free: 51.52 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004223/0.2793, allocations: 4.117 MB / 490 MB, free: 50.83 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01317/0.2925, allocations: 5.918 MB / 495.9 MB, free: 50.04 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05102/0.3435, allocations: 75.8 MB / 0.5583 GB, free: 1.469 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0071/0.3506, allocations: 3.141 MB / 0.5614 GB, free: 14.32 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001646/0.3523, allocations: 1.129 MB / 0.5625 GB, free: 13.17 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01177/0.364, allocations: 7.696 MB / 0.57 GB, free: 5.574 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.743e-05/0.3641, allocations: 67.11 kB / 0.5701 GB, free: 5.5 MB / 442.7 MB Notification: Performance of pre-optimization done (n=334): time 7.264e-06/0.3641, allocations: 0 / 0.5701 GB, free: 5.5 MB / 442.7 MB Notification: Performance of matching and sorting (n=364): time 0.04189/0.406, allocations: 22.91 MB / 0.5924 GB, free: 14.55 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002648/0.4062, allocations: 213.9 kB / 0.5926 GB, free: 14.3 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006467/0.4127, allocations: 5.936 MB / 0.5984 GB, free: 8.375 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002382/0.413, allocations: 73.7 kB / 0.5985 GB, free: 8.297 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003374/0.4163, allocations: 6.162 MB / 0.6045 GB, free: 2.184 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00117/0.4175, allocations: 1.482 MB / 0.606 GB, free: 0.7188 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.1991/0.6166, allocations: 2.319 MB / 0.6082 GB, free: 140.8 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 5.41e-05/0.6167, allocations: 482.6 kB / 0.6087 GB, free: 140.3 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002073/0.6187, allocations: 1.226 MB / 0.6099 GB, free: 140.3 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00457/0.6233, allocations: 10.4 MB / 0.62 GB, free: 128.6 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007677/0.631, allocations: 12.73 MB / 0.6325 GB, free: 116.3 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.664e-05/0.6311, allocations: 60.25 kB / 0.6325 GB, free: 116.3 MB / 474.7 MB Notification: Performance of matching and sorting (n=1415) (initialization): time 0.01135/0.6424, allocations: 9.339 MB / 0.6417 GB, free: 114.5 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001253/0.6426, allocations: 96.31 kB / 0.6417 GB, free: 114.5 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000246/0.6428, allocations: 214.6 kB / 0.642 GB, free: 114.5 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00143/0.6442, allocations: 0.7017 MB / 0.6426 GB, free: 114.5 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004764/0.649, allocations: 2.494 MB / 0.6451 GB, free: 114.3 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004499/0.6535, allocations: 9.358 MB / 0.6542 GB, free: 106.4 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004077/0.6576, allocations: 0.6829 MB / 0.6549 GB, free: 106.4 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000744/0.6583, allocations: 0.6163 MB / 0.6555 GB, free: 106.4 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 980 * Number of states: 0 () * Number of discrete variables: 53 (torque1.torqueArrow.twoHeadedArrow,torque1.torqueArrow.headAtOrigin,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.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 (1319): * Single equations (assignments): 1306 * Array equations: 9 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,2,100.0%), (1,2,100.0%), (2,13,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002757/0.6611, allocations: 1.014 MB / 0.6565 GB, free: 106 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007607/0.6618, allocations: 0.6478 MB / 0.6571 GB, free: 106 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003639/0.6655, allocations: 2.619 MB / 0.6597 GB, free: 105.7 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.772e-05/0.6655, allocations: 37.41 kB / 0.6597 GB, free: 105.7 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.33e-05/0.6655, allocations: 6.344 kB / 0.6597 GB, free: 105.7 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.722e-05/0.6655, allocations: 13.08 kB / 0.6597 GB, free: 105.7 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01222/0.6777, allocations: 10.23 MB / 0.6697 GB, free: 101.7 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-05/0.6778, allocations: 13.75 kB / 0.6697 GB, free: 101.7 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001201/0.679, allocations: 0.5596 MB / 0.6703 GB, free: 101.7 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006343/0.6796, allocations: 319.2 kB / 0.6706 GB, free: 101.6 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001313/0.6797, allocations: 79.3 kB / 0.6706 GB, free: 101.5 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00265/0.6824, allocations: 8.181 MB / 0.6786 GB, free: 93.53 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.815e-06/0.6824, allocations: 19.94 kB / 0.6787 GB, free: 93.51 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003978/0.6864, allocations: 4.321 MB / 0.6829 GB, free: 89.38 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005188/0.6869, allocations: 0.5481 MB / 0.6834 GB, free: 88.95 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000372/0.6872, allocations: 68.53 kB / 0.6835 GB, free: 88.88 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001148/0.6884, allocations: 233.4 kB / 0.6837 GB, free: 88.74 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003558/0.6888, allocations: 260.4 kB / 0.6839 GB, free: 88.59 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001419/0.6889, allocations: 116.6 kB / 0.6841 GB, free: 88.48 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.002568/0.6915, allocations: 2.429 MB / 0.6864 GB, free: 86.52 MB / 474.7 MB Notification: Performance of sort global known variables: time 4e-08/0.6915, allocations: 0 / 0.6864 GB, free: 86.52 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.004848/0.6963, allocations: 1.829 MB / 0.6882 GB, free: 84.7 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 62 * 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 (283): * Single equations (assignments): 270 * Array equations: 9 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(2,10,100.0%), (1,2,100.0%), (1,1,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003797/0.6967, allocations: 243.9 kB / 0.6884 GB, free: 84.48 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.005864/0.7026, allocations: 5.815 MB / 0.6941 GB, free: 79.26 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 5.27e-06/0.7026, allocations: 0 / 0.6941 GB, free: 79.26 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001461/0.704, allocations: 1.899 MB / 0.696 GB, free: 77.46 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001788/0.7058, allocations: 0.6536 MB / 0.6966 GB, free: 76.9 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01361/0.7194, allocations: 15.01 MB / 0.7113 GB, free: 62.79 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001549/0.721, allocations: 2.462 MB / 0.7137 GB, free: 61.02 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.003369/0.7243, allocations: 3.007 MB / 0.7166 GB, free: 59.31 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007028/0.725, allocations: 415.8 kB / 0.717 GB, free: 58.92 MB / 474.7 MB Notification: Performance of SimCode: time 1.303e-06/0.725, allocations: 8 kB / 0.717 GB, free: 58.91 MB / 474.7 MB Notification: Performance of Templates: time 0.07625/0.8013, allocations: 51.76 MB / 0.7676 GB, free: 9.484 MB / 474.7 MB " [Timeout remaining time 659] make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.GearConstraint.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.GearConstraint.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.GearConstraint_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/MultiBody/Joints/GearConstraint/GearConstraint.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.269488972146064]