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.001203/0.001202, allocations: 109.3 kB / 18.45 MB, free: 4.625 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.001315/0.001315, allocations: 185.1 kB / 19.37 MB, free: 3.707 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.267/1.267, allocations: 222.9 MB / 243.1 MB, free: 15.08 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.1946/0.1946, allocations: 44.18 MB / 337.4 MB, free: 2.68 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001341/0.001341, allocations: 59.91 kB / 471.2 MB, free: 13.17 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3286/0.3299, allocations: 60.82 MB / 0.5196 GB, free: 3.605 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.GearConstraint): time 0.01926/0.3493, allocations: 18.73 MB / 0.5379 GB, free: 5.82 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01268/0.362, allocations: 5.313 MB / 0.5431 GB, free: 1.629 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004866/0.3669, allocations: 119.3 kB / 0.5432 GB, free: 1.609 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00964/0.3766, allocations: 4.785 MB / 0.5478 GB, free: 14.41 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008789/0.3854, allocations: 3.111 MB / 0.5509 GB, free: 11.93 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002818/0.3883, allocations: 0.9048 MB / 0.5518 GB, free: 11.03 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01586/0.4042, allocations: 8.405 MB / 0.56 GB, free: 2.609 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01178/0.416, allocations: 6.43 MB / 0.5662 GB, free: 12.1 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005723/0.4218, allocations: 2.944 MB / 0.5691 GB, free: 9.148 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006297/0.4281, allocations: 3.991 MB / 0.573 GB, free: 5.145 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002325/0.4305, allocations: 0.6211 MB / 0.5736 GB, free: 4.523 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004427/0.4349, allocations: 1.463 MB / 0.5751 GB, free: 3.059 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005014/0.44, allocations: 3.705 MB / 0.5787 GB, free: 15.34 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007406/0.4474, allocations: 4.291 MB / 0.5829 GB, free: 11.03 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01601/0.4635, allocations: 13.64 MB / 0.5962 GB, free: 13.34 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.893e-06/0.4635, allocations: 0 / 0.5962 GB, free: 13.34 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.214e-06/0.4635, allocations: 4 kB / 0.5962 GB, free: 13.34 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0004682/0.464, allocations: 0 / 0.5962 GB, free: 13.34 MB / 462.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.02239/0.4864, allocations: 8.822 MB / 0.6048 GB, free: 4.43 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.842e-05/0.4865, allocations: 8.031 kB / 0.6048 GB, free: 4.422 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02232/0.5088, allocations: 5.429 MB / 0.6101 GB, free: 14.97 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01254/0.5214, allocations: 4.992 MB / 0.615 GB, free: 9.922 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005683/0.522, allocations: 443.6 kB / 0.6154 GB, free: 9.488 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002987/0.525, allocations: 0.5778 MB / 0.616 GB, free: 8.91 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03755/0.5626, allocations: 20.03 MB / 0.6355 GB, free: 3.844 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003401/0.563, allocations: 75.3 kB / 0.6356 GB, free: 3.77 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002305/0.5653, allocations: 271.7 kB / 0.6359 GB, free: 3.504 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007071/0.5724, allocations: 4.231 MB / 0.64 GB, free: 15.27 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0345/0.6069, allocations: 17.8 MB / 0.6574 GB, free: 13.44 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6081/1.215, allocations: 73.58 MB / 0.7292 GB, free: 121 MB / 0.5607 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01611/1.231, allocations: 7.921 MB / 0.737 GB, free: 119.8 MB / 0.5607 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006077/1.237, allocations: 5.191 MB / 0.742 GB, free: 118.6 MB / 0.5607 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002053/1.238, allocations: 64.34 kB / 0.7421 GB, free: 118.6 MB / 0.5607 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.044e-05/1.238, allocations: 63.78 kB / 0.7422 GB, free: 118.5 MB / 0.5607 GB Notification: Performance of pre-optimization done (n=429): time 6.322e-06/1.238, allocations: 3.938 kB / 0.7422 GB, free: 118.5 MB / 0.5607 GB Notification: Performance of matching and sorting (n=476): time 0.08715/1.325, allocations: 41.76 MB / 0.7829 GB, free: 94.18 MB / 0.5607 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.228e-05/1.325, allocations: 229.2 kB / 0.7832 GB, free: 93.91 MB / 0.5607 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007278/1.332, allocations: 6.398 MB / 0.7894 GB, free: 87.5 MB / 0.5607 GB Notification: Performance of collectPreVariables (initialization): time 0.0009457/1.333, allocations: 89.7 kB / 0.7895 GB, free: 87.41 MB / 0.5607 GB Notification: Performance of collectInitialEqns (initialization): time 0.00238/1.336, allocations: 5.53 MB / 0.7949 GB, free: 81.88 MB / 0.5607 GB Notification: Performance of collectInitialBindings (initialization): time 0.001865/1.337, allocations: 1.73 MB / 0.7966 GB, free: 80.17 MB / 0.5607 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002988/1.34, allocations: 2.259 MB / 0.7988 GB, free: 77.9 MB / 0.5607 GB Notification: Performance of setup shared object (initialization): time 4.63e-05/1.341, allocations: 309.1 kB / 0.7991 GB, free: 77.6 MB / 0.5607 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005564/1.346, allocations: 5.031 MB / 0.804 GB, free: 72.56 MB / 0.5607 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008558/1.355, allocations: 11.12 MB / 0.8149 GB, free: 58.65 MB / 0.5607 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01619/1.371, allocations: 17.46 MB / 0.8319 GB, free: 38.41 MB / 0.5607 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001756/1.371, allocations: 60 kB / 0.832 GB, free: 38.36 MB / 0.5607 GB Notification: Performance of matching and sorting (n=1486) (initialization): time 0.02898/1.4, allocations: 17.88 MB / 0.8494 GB, free: 20.45 MB / 0.5607 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001213/1.4, allocations: 96 kB / 0.8495 GB, free: 20.35 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002005/1.401, allocations: 212 kB / 0.8497 GB, free: 20.14 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005554/1.406, allocations: 2.345 MB / 0.852 GB, free: 17.79 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008307/1.414, allocations: 2.566 MB / 0.8545 GB, free: 15.21 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01757/1.432, allocations: 17.43 MB / 0.8715 GB, free: 13.25 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009149/1.441, allocations: 0.6632 MB / 0.8722 GB, free: 12.58 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002534/1.444, allocations: 0.621 MB / 0.8728 GB, free: 11.96 MB / 0.5763 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.009168/1.453, allocations: 4.105 MB / 0.8768 GB, free: 7.852 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001693/1.455, allocations: 0.5938 MB / 0.8774 GB, free: 7.25 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0207/1.475, allocations: 10.2 MB / 0.8873 GB, free: 12.99 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001476/1.476, allocations: 87.97 kB / 0.8874 GB, free: 12.91 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.705e-05/1.476, allocations: 12 kB / 0.8874 GB, free: 12.89 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.383e-05/1.476, allocations: 19.92 kB / 0.8875 GB, free: 12.88 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04578/1.522, allocations: 21.88 MB / 0.9088 GB, free: 6.855 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.161e-05/1.522, allocations: 8 kB / 0.9088 GB, free: 6.848 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003721/1.525, allocations: 0.7418 MB / 0.9096 GB, free: 6.105 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005515/1.531, allocations: 2.025 MB / 0.9115 GB, free: 4.066 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000673/1.532, allocations: 91.98 kB / 0.9116 GB, free: 3.977 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01844/1.55, allocations: 16.19 MB / 0.9274 GB, free: 3.227 MB / 0.6232 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-05/1.55, allocations: 15.94 kB / 0.9274 GB, free: 3.211 MB / 0.6232 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0256/1.576, allocations: 16.1 MB / 0.9432 GB, free: 2.871 MB / 0.6388 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001728/1.577, allocations: 0.6221 MB / 0.9438 GB, free: 2.223 MB / 0.6388 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001785/1.579, allocations: 83.34 kB / 0.9439 GB, free: 2.145 MB / 0.6388 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003918/1.583, allocations: 315.5 kB / 0.9442 GB, free: 1.836 MB / 0.6388 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001111/1.584, allocations: 285.7 kB / 0.9444 GB, free: 1.555 MB / 0.6388 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005733/1.585, allocations: 123.3 kB / 0.9445 GB, free: 1.438 MB / 0.6388 GB Notification: Performance of sorting global known variables: time 0.007375/1.592, allocations: 3.995 MB / 0.9484 GB, free: 13.45 MB / 0.6544 GB Notification: Performance of sort global known variables: time 6.21e-07/1.592, allocations: 7.5 kB / 0.9485 GB, free: 13.45 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.009997/1.602, allocations: 2.038 MB / 0.9504 GB, free: 11.41 MB / 0.6544 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.001158/1.603, allocations: 243.6 kB / 0.9507 GB, free: 11.17 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.2633/1.867, allocations: 12.35 MB / 0.9627 GB, free: 239.2 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 1.326e-05/1.867, allocations: 2.75 kB / 0.9627 GB, free: 239.2 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.007834/1.875, allocations: 4.935 MB / 0.9676 GB, free: 238.7 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005767/1.881, allocations: 0.7867 MB / 0.9683 GB, free: 238.6 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03475/1.915, allocations: 20.99 MB / 0.9888 GB, free: 230.4 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008306/1.924, allocations: 5.94 MB / 0.9946 GB, free: 228.4 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002353/1.926, allocations: 0.5117 MB / 0.9951 GB, free: 228.4 MB / 0.6544 GB Notification: Performance of SimCode: time 1.052e-06/1.926, allocations: 3.875 kB / 0.9951 GB, free: 228.4 MB / 0.6544 GB Notification: Performance of Templates: time 0.517/2.443, allocations: 266.7 MB / 1.256 GB, free: 198.5 MB / 0.6544 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