Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.GearConstraint.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_ModelicaTest.MultiBody.Joints.GearConstraint") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001123/0.001123, allocations: 101.5 kB / 17.85 MB, free: 5.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00109/0.00109, allocations: 194 kB / 18.77 MB, free: 4.742 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.427/1.427, allocations: 222.9 MB / 242.4 MB, free: 13.77 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2061/0.2061, allocations: 44.19 MB / 336.8 MB, free: 2.766 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001282/0.001282, allocations: 56.22 kB / 408.3 MB, free: 27.69 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1158/0.1171, allocations: 60.84 MB / 469.2 MB, free: 14.81 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.GearConstraint): time 0.2971/0.4142, allocations: 81.59 MB / 0.5379 GB, free: 6.02 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03317/0.4474, allocations: 15.85 MB / 0.5533 GB, free: 11.57 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02069/0.4682, allocations: 356.1 kB / 0.5537 GB, free: 11.51 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009659/0.4779, allocations: 4.766 MB / 0.5583 GB, free: 8.395 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009084/0.487, allocations: 2.933 MB / 0.5612 GB, free: 6.352 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003064/0.4901, allocations: 0.8276 MB / 0.562 GB, free: 5.703 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01561/0.5058, allocations: 12.16 MB / 0.5739 GB, free: 9.527 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01052/0.5164, allocations: 6.296 MB / 0.58 GB, free: 3.184 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005588/0.522, allocations: 2.581 MB / 0.5825 GB, free: 0.5938 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007247/0.5293, allocations: 4.225 MB / 0.5867 GB, free: 12.36 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002993/0.5323, allocations: 448 kB / 0.5871 GB, free: 11.92 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004699/0.5371, allocations: 1.342 MB / 0.5884 GB, free: 10.57 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00743/0.5445, allocations: 3.541 MB / 0.5919 GB, free: 7.023 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009789/0.5544, allocations: 4.115 MB / 0.5959 GB, free: 2.883 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01381/0.5683, allocations: 10.8 MB / 0.6064 GB, free: 8.062 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.033e-06/0.5683, allocations: 0 / 0.6064 GB, free: 8.062 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.235e-06/0.5683, allocations: 0 / 0.6064 GB, free: 8.062 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0005568/0.5689, allocations: 0 / 0.6064 GB, free: 8.062 MB / 446.1 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.02447/0.5934, allocations: 8.822 MB / 0.615 GB, free: 15.16 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.899e-05/0.5934, allocations: 8.031 kB / 0.6151 GB, free: 15.15 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02108/0.6145, allocations: 5.429 MB / 0.6204 GB, free: 9.695 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01166/0.6262, allocations: 4.922 MB / 0.6252 GB, free: 4.715 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006463/0.6269, allocations: 439.6 kB / 0.6256 GB, free: 4.285 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003301/0.6303, allocations: 0.5781 MB / 0.6261 GB, free: 3.707 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03794/0.6682, allocations: 20.03 MB / 0.6457 GB, free: 14.64 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002487/0.6685, allocations: 67.41 kB / 0.6458 GB, free: 14.57 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001551/0.6701, allocations: 275.7 kB / 0.646 GB, free: 14.3 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007016/0.6771, allocations: 4.235 MB / 0.6502 GB, free: 10.06 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03513/0.7123, allocations: 17.81 MB / 0.6676 GB, free: 8.227 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.9763/1.689, allocations: 73.95 MB / 0.7398 GB, free: 141.4 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03141/1.72, allocations: 7.937 MB / 0.7475 GB, free: 138.8 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01221/1.733, allocations: 5.182 MB / 0.7526 GB, free: 136.6 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004877/1.733, allocations: 60.39 kB / 0.7526 GB, free: 136.6 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.625e-05/1.733, allocations: 78.77 kB / 0.7527 GB, free: 136.6 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=429): time 1.411e-05/1.733, allocations: 0 / 0.7527 GB, free: 136.6 MB / 0.5294 GB Notification: Performance of matching and sorting (n=476): time 0.1837/1.917, allocations: 41.76 MB / 0.7935 GB, free: 109.6 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003525/1.917, allocations: 218.8 kB / 0.7937 GB, free: 109.3 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01995/1.937, allocations: 6.415 MB / 0.8 GB, free: 102.9 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.001969/1.939, allocations: 93.64 kB / 0.8001 GB, free: 102.8 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.008168/1.948, allocations: 5.526 MB / 0.8055 GB, free: 97.29 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.004728/1.953, allocations: 1.731 MB / 0.8072 GB, free: 95.58 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.009339/1.962, allocations: 2.261 MB / 0.8094 GB, free: 93.31 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 9.398e-05/1.962, allocations: 301.1 kB / 0.8096 GB, free: 93.01 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01387/1.976, allocations: 5.031 MB / 0.8146 GB, free: 87.98 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0234/2, allocations: 11.11 MB / 0.8254 GB, free: 73.98 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03778/2.037, allocations: 17.45 MB / 0.8425 GB, free: 53.57 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0004971/2.038, allocations: 60 kB / 0.8425 GB, free: 53.52 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1486) (initialization): time 0.06175/2.1, allocations: 17.89 MB / 0.86 GB, free: 35.6 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002611/2.1, allocations: 96 kB / 0.8601 GB, free: 35.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005845/2.101, allocations: 208.9 kB / 0.8603 GB, free: 35.3 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0105/2.111, allocations: 2.357 MB / 0.8626 GB, free: 32.93 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01629/2.128, allocations: 2.566 MB / 0.8651 GB, free: 30.36 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03118/2.159, allocations: 16.12 MB / 0.8808 GB, free: 13.71 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01888/2.178, allocations: 0.6627 MB / 0.8815 GB, free: 13.05 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004033/2.182, allocations: 0.625 MB / 0.8821 GB, free: 12.43 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 958 * Number of states: 0 () * Number of discrete variables: 53 (torque1.torqueArrow.arrowLine.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 (1362): * Single equations (assignments): 1349 * 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.01865/2.201, allocations: 4.105 MB / 0.8861 GB, free: 8.316 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003066/2.204, allocations: 0.6015 MB / 0.8867 GB, free: 7.707 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03308/2.237, allocations: 10.19 MB / 0.8966 GB, free: 13.46 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002608/2.237, allocations: 95.03 kB / 0.8967 GB, free: 13.37 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.63e-05/2.237, allocations: 8 kB / 0.8967 GB, free: 13.36 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001829/2.238, allocations: 23.92 kB / 0.8967 GB, free: 13.34 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.6975/2.935, allocations: 21.98 MB / 0.9182 GB, free: 179.2 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001153/2.935, allocations: 10.19 kB / 0.9182 GB, free: 179.2 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007364/2.943, allocations: 0.7391 MB / 0.9189 GB, free: 179.1 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01109/2.954, allocations: 2.034 MB / 0.9209 GB, free: 178.7 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001931/2.956, allocations: 86.22 kB / 0.921 GB, free: 178.7 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03341/2.989, allocations: 15.03 MB / 0.9357 GB, free: 169.7 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.527e-05/2.989, allocations: 18.56 kB / 0.9357 GB, free: 169.7 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0452/3.035, allocations: 16.08 MB / 0.9514 GB, free: 163.6 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005042/3.04, allocations: 0.6252 MB / 0.952 GB, free: 163.4 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005677/3.046, allocations: 82.12 kB / 0.9521 GB, free: 163.4 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008606/3.054, allocations: 313.5 kB / 0.9524 GB, free: 163.3 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002757/3.057, allocations: 290.8 kB / 0.9527 GB, free: 163.3 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002072/3.059, allocations: 121.4 kB / 0.9528 GB, free: 163.2 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.01708/3.076, allocations: 3.983 MB / 0.9567 GB, free: 161.9 MB / 0.545 GB Notification: Performance of sort global known variables: time 8.02e-07/3.076, allocations: 1.031 kB / 0.9567 GB, free: 161.9 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.02737/3.104, allocations: 2.044 MB / 0.9587 GB, free: 160.2 MB / 0.545 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.003779/3.108, allocations: 245.5 kB / 0.9589 GB, free: 160 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.03591/3.144, allocations: 12.29 MB / 0.9709 GB, free: 149.1 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.994e-05/3.144, allocations: 4 kB / 0.9709 GB, free: 149.1 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.01418/3.158, allocations: 4.924 MB / 0.9757 GB, free: 144.3 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01661/3.175, allocations: 0.7496 MB / 0.9765 GB, free: 143.6 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0801/3.255, allocations: 25.25 MB / 1.001 GB, free: 118.3 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01887/3.274, allocations: 5.938 MB / 1.007 GB, free: 112.3 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005209/3.279, allocations: 0.5164 MB / 1.007 GB, free: 111.8 MB / 0.545 GB Notification: Performance of SimCode: time 2.284e-06/3.279, allocations: 0 / 1.007 GB, free: 111.8 MB / 0.545 GB Notification: Performance of Templates: time 1.159/4.438, allocations: 265.5 MB / 1.267 GB, free: 41.94 MB / 0.545 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.GearConstraint.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.GearConstraint.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.GearConstraint.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.GearConstraint.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.GearConstraint.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.GearConstraint -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.GearConstraint.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.GearConstraint.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches