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.0008353/0.0008353, allocations: 88.28 kB / 21.44 MB, free: 3.129 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.003584/0.003584, allocations: 156 kB / 24.7 MB, free: 9.434 MB / 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.9065/0.9065, allocations: 177 MB / 204.9 MB, free: 5.746 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.233/0.233, allocations: 34.24 MB / 295.6 MB, free: 0.6836 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 2.816e-06/2.816e-06, allocations: 3.984 kB / 443.4 MB, free: 1.062 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.979e-05/2.26e-05, allocations: 2.281 kB / 443.4 MB, free: 1.059 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.GearConstraint): time 0.1915/0.1915, allocations: 16.1 MB / 459.5 MB, free: 34.71 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.007043/0.1986, allocations: 5.121 MB / 464.7 MB, free: 31.44 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001615/0.2002, allocations: 138.6 kB / 464.8 MB, free: 31.4 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004187/0.2044, allocations: 4.883 MB / 469.7 MB, free: 29.36 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003941/0.2083, allocations: 3.239 MB / 472.9 MB, free: 27.83 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001194/0.2095, allocations: 0.9906 MB / 473.9 MB, free: 27.38 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.006066/0.2156, allocations: 9.228 MB / 483.1 MB, free: 23.79 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005833/0.2214, allocations: 5.743 MB / 488.9 MB, free: 21.24 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006821/0.2282, allocations: 4.445 MB / 493.3 MB, free: 19.31 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006466/0.2347, allocations: 4.271 MB / 497.6 MB, free: 18.16 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001585/0.2363, allocations: 0.6344 MB / 498.2 MB, free: 18.15 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002658/0.239, allocations: 1.459 MB / 499.7 MB, free: 17.95 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003164/0.2421, allocations: 3.872 MB / 0.4918 GB, free: 16.29 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003492/0.2456, allocations: 2.384 MB / 0.4941 GB, free: 15.1 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01073/0.2563, allocations: 13.51 MB / 0.5073 GB, free: 4.402 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.2563, allocations: 4 kB / 0.5073 GB, free: 4.398 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.104e-06/0.2563, allocations: 0 / 0.5073 GB, free: 4.398 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0004531/0.2568, allocations: 0 / 0.5073 GB, free: 4.398 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.01375/0.2706, allocations: 8.909 MB / 0.516 GB, free: 11.41 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.973e-05/0.2706, allocations: 12.03 kB / 0.516 GB, free: 11.4 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01083/0.2814, allocations: 5.603 MB / 0.5215 GB, free: 5.781 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006627/0.288, allocations: 4.851 MB / 0.5262 GB, free: 0.8789 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002126/0.2883, allocations: 439.5 kB / 0.5266 GB, free: 460 kB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007458/0.289, allocations: 0.5781 MB / 0.5272 GB, free: 15.87 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02069/0.3097, allocations: 19.9 MB / 0.5466 GB, free: 10.93 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001602/0.3099, allocations: 71.41 kB / 0.5467 GB, free: 10.86 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000567/0.3104, allocations: 279.7 kB / 0.547 GB, free: 10.58 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003775/0.3142, allocations: 4.168 MB / 0.551 GB, free: 6.402 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02201/0.3362, allocations: 17.61 MB / 0.5682 GB, free: 4.781 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.443/0.7792, allocations: 68.14 MB / 0.6348 GB, free: 124.5 MB / 0.5262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01004/0.7893, allocations: 6.82 MB / 0.6414 GB, free: 124.4 MB / 0.5262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004152/0.7934, allocations: 4.842 MB / 0.6462 GB, free: 124.3 MB / 0.5262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001403/0.7936, allocations: 42.78 kB / 0.6462 GB, free: 124.3 MB / 0.5262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.294e-05/0.7936, allocations: 79.56 kB / 0.6463 GB, free: 124.3 MB / 0.5262 GB Notification: Performance of pre-optimization done (n=429): time 6.852e-06/0.7936, allocations: 1.078 kB / 0.6463 GB, free: 124.3 MB / 0.5262 GB Notification: Performance of matching and sorting (n=476): time 0.05518/0.8488, allocations: 42.82 MB / 0.6881 GB, free: 110.5 MB / 0.5262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.399e-05/0.8489, allocations: 233.6 kB / 0.6883 GB, free: 110.3 MB / 0.5262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00617/0.855, allocations: 6.311 MB / 0.6945 GB, free: 108.1 MB / 0.5262 GB Notification: Performance of collectPreVariables (initialization): time 0.0004773/0.8555, allocations: 92.14 kB / 0.6946 GB, free: 108.1 MB / 0.5262 GB Notification: Performance of collectInitialEqns (initialization): time 0.002859/0.8584, allocations: 5.684 MB / 0.7001 GB, free: 104.1 MB / 0.5262 GB Notification: Performance of collectInitialBindings (initialization): time 0.001422/0.8598, allocations: 1.788 MB / 0.7019 GB, free: 102.7 MB / 0.5262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001966/0.8618, allocations: 2.233 MB / 0.704 GB, free: 101.6 MB / 0.5262 GB Notification: Performance of setup shared object (initialization): time 3.341e-05/0.8618, allocations: 301.9 kB / 0.7043 GB, free: 101.3 MB / 0.5262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004218/0.866, allocations: 5.027 MB / 0.7092 GB, free: 99.68 MB / 0.5262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005373/0.8714, allocations: 11.14 MB / 0.7201 GB, free: 89.91 MB / 0.5262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01075/0.8821, allocations: 17.42 MB / 0.7371 GB, free: 70.84 MB / 0.5262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.103e-05/0.8822, allocations: 60 kB / 0.7372 GB, free: 70.78 MB / 0.5262 GB Notification: Performance of matching and sorting (n=1483) (initialization): time 0.01605/0.8982, allocations: 17.81 MB / 0.7546 GB, free: 55.3 MB / 0.5262 GB Notification: Performance of prepare postOptimizeDAE: time 6.817e-05/0.8983, allocations: 99.75 kB / 0.7547 GB, free: 55.21 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001052/0.8984, allocations: 214 kB / 0.7549 GB, free: 55 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003004/0.9014, allocations: 2.339 MB / 0.7572 GB, free: 53.29 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004062/0.9055, allocations: 2.559 MB / 0.7597 GB, free: 51.04 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01052/0.916, allocations: 16.81 MB / 0.7761 GB, free: 33.83 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005761/0.9218, allocations: 0.7229 MB / 0.7768 GB, free: 33.11 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006661/0.9224, allocations: 0.6187 MB / 0.7774 GB, free: 32.49 MB / 0.5262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 955 * 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 (1359): * Single equations (assignments): 1346 * 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%), (3,40,77.8%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005125/0.9276, allocations: 4.073 MB / 0.7814 GB, free: 28.41 MB / 0.5262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000865/0.9284, allocations: 0.582 MB / 0.7819 GB, free: 27.82 MB / 0.5262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008801/0.9372, allocations: 10.15 MB / 0.7919 GB, free: 17.61 MB / 0.5262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.006e-05/0.9373, allocations: 91.34 kB / 0.7919 GB, free: 17.52 MB / 0.5262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.859e-05/0.9373, allocations: 8 kB / 0.7919 GB, free: 17.51 MB / 0.5262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.302e-05/0.9373, allocations: 23.92 kB / 0.792 GB, free: 17.49 MB / 0.5262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02121/0.9586, allocations: 19.71 MB / 0.8112 GB, free: 13.66 MB / 0.5418 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.831e-05/0.9586, allocations: 11.98 kB / 0.8112 GB, free: 13.64 MB / 0.5418 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001851/0.9604, allocations: 0.7378 MB / 0.8119 GB, free: 12.91 MB / 0.5418 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003098/0.9635, allocations: 2.03 MB / 0.8139 GB, free: 10.86 MB / 0.5418 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002564/0.9638, allocations: 83.98 kB / 0.814 GB, free: 10.78 MB / 0.5418 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01278/0.9766, allocations: 15.6 MB / 0.8292 GB, free: 10.78 MB / 0.5574 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.947e-06/0.9766, allocations: 15.94 kB / 0.8293 GB, free: 10.76 MB / 0.5574 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2161/1.193, allocations: 16.02 MB / 0.8449 GB, free: 168.1 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001473/1.194, allocations: 0.5632 MB / 0.8455 GB, free: 168.1 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007018/1.195, allocations: 78.09 kB / 0.8455 GB, free: 168.1 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001615/1.196, allocations: 380 kB / 0.8459 GB, free: 168.1 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004808/1.197, allocations: 295.8 kB / 0.8462 GB, free: 168.1 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002129/1.197, allocations: 125 kB / 0.8463 GB, free: 168.1 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.003227/1.2, allocations: 3.661 MB / 0.8499 GB, free: 167.8 MB / 0.573 GB Notification: Performance of sort global known variables: time 1.8e-07/1.2, allocations: 0 / 0.8499 GB, free: 167.8 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.006197/1.207, allocations: 2.138 MB / 0.852 GB, free: 167.6 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 (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 {(3,37,77.8%), (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.0005825/1.207, allocations: 257 kB / 0.8522 GB, free: 167.4 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.009895/1.217, allocations: 11.79 MB / 0.8637 GB, free: 163.2 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 7.454e-06/1.217, allocations: 3 kB / 0.8637 GB, free: 163.2 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.003919/1.221, allocations: 4.571 MB / 0.8682 GB, free: 161.4 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00257/1.224, allocations: 0.6467 MB / 0.8688 GB, free: 161.1 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02288/1.246, allocations: 21.2 MB / 0.8895 GB, free: 152.2 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004465/1.251, allocations: 5.431 MB / 0.8948 GB, free: 150.7 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001762/1.253, allocations: 0.4936 MB / 0.8953 GB, free: 150.7 MB / 0.573 GB Notification: Performance of SimCode: time 1.312e-06/1.253, allocations: 0 / 0.8953 GB, free: 150.7 MB / 0.573 GB Notification: Performance of Templates: time 0.374/1.627, allocations: 266.2 MB / 1.155 GB, free: 112.3 MB / 0.573 GB " [Timeout remaining time 658] 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=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.GearConstraint.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.GearConstraint.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.180206722579896]