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.00126/0.00126, allocations: 114.5 kB / 17.78 MB, free: 5.262 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.001263/0.001263, allocations: 187.7 kB / 18.72 MB, free: 4.332 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.432/1.432, allocations: 222.9 MB / 242.4 MB, free: 15.07 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.2085/0.2085, allocations: 44.18 MB / 336.7 MB, free: 2.688 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001164/0.001164, allocations: 63.91 kB / 470.5 MB, free: 13.18 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4719/0.473, allocations: 60.83 MB / 0.5189 GB, free: 3.613 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.GearConstraint): time 0.02014/0.4932, allocations: 18.72 MB / 0.5372 GB, free: 5.816 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01477/0.508, allocations: 5.316 MB / 0.5424 GB, free: 1.625 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006594/0.5147, allocations: 118.5 kB / 0.5425 GB, free: 1.605 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01026/0.525, allocations: 4.795 MB / 0.5472 GB, free: 14.39 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00944/0.5345, allocations: 3.105 MB / 0.5502 GB, free: 11.93 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002738/0.5373, allocations: 0.897 MB / 0.5511 GB, free: 11.04 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01128/0.5486, allocations: 8.409 MB / 0.5593 GB, free: 2.613 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007613/0.5562, allocations: 6.437 MB / 0.5656 GB, free: 12.1 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004839/0.5611, allocations: 2.944 MB / 0.5685 GB, free: 9.145 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006174/0.5673, allocations: 3.984 MB / 0.5724 GB, free: 5.148 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001738/0.569, allocations: 0.6211 MB / 0.573 GB, free: 4.527 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004003/0.573, allocations: 1.463 MB / 0.5744 GB, free: 3.062 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00386/0.5769, allocations: 3.686 MB / 0.578 GB, free: 15.37 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008775/0.5857, allocations: 4.283 MB / 0.5822 GB, free: 11.06 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02203/0.6078, allocations: 13.7 MB / 0.5956 GB, free: 13.3 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.541e-06/0.6078, allocations: 0 / 0.5956 GB, free: 13.3 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.794e-06/0.6078, allocations: 0 / 0.5956 GB, free: 13.3 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.000504/0.6083, allocations: 0 / 0.5956 GB, free: 13.3 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.01988/0.6282, allocations: 9.061 MB / 0.6044 GB, free: 4.141 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.038e-05/0.6283, allocations: 8.031 kB / 0.6044 GB, free: 4.133 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02069/0.649, allocations: 5.494 MB / 0.6098 GB, free: 14.62 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01369/0.6627, allocations: 5.002 MB / 0.6147 GB, free: 9.566 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004055/0.6632, allocations: 439.6 kB / 0.6151 GB, free: 9.137 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003156/0.6663, allocations: 0.5856 MB / 0.6157 GB, free: 8.551 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0419/0.7083, allocations: 20.02 MB / 0.6352 GB, free: 3.5 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004011/0.7087, allocations: 79.39 kB / 0.6353 GB, free: 3.422 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003357/0.7121, allocations: 275.7 kB / 0.6355 GB, free: 3.152 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007477/0.7196, allocations: 4.223 MB / 0.6397 GB, free: 14.93 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03577/0.7554, allocations: 17.81 MB / 0.6571 GB, free: 13.09 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.7373/1.493, allocations: 73.7 MB / 0.729 GB, free: 120.7 MB / 0.5607 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01669/1.509, allocations: 7.929 MB / 0.7368 GB, free: 119.4 MB / 0.5607 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006781/1.516, allocations: 5.179 MB / 0.7418 GB, free: 118.1 MB / 0.5607 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002833/1.517, allocations: 59.2 kB / 0.7419 GB, free: 118.1 MB / 0.5607 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.74e-05/1.517, allocations: 79.69 kB / 0.742 GB, free: 118.1 MB / 0.5607 GB Notification: Performance of pre-optimization done (n=429): time 8.766e-06/1.517, allocations: 0 / 0.742 GB, free: 118.1 MB / 0.5607 GB Notification: Performance of matching and sorting (n=476): time 0.0911/1.608, allocations: 42.2 MB / 0.7832 GB, free: 93.79 MB / 0.5607 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.963e-05/1.608, allocations: 225.4 kB / 0.7834 GB, free: 93.53 MB / 0.5607 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007988/1.616, allocations: 6.415 MB / 0.7897 GB, free: 87.24 MB / 0.5607 GB Notification: Performance of collectPreVariables (initialization): time 0.0008955/1.617, allocations: 93.7 kB / 0.7897 GB, free: 87.14 MB / 0.5607 GB Notification: Performance of collectInitialEqns (initialization): time 0.0026/1.619, allocations: 5.743 MB / 0.7954 GB, free: 81.92 MB / 0.5607 GB Notification: Performance of collectInitialBindings (initialization): time 0.001905/1.621, allocations: 1.826 MB / 0.7971 GB, free: 80.12 MB / 0.5607 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002912/1.624, allocations: 2.269 MB / 0.7994 GB, free: 77.85 MB / 0.5607 GB Notification: Performance of setup shared object (initialization): time 6.349e-05/1.624, allocations: 305.1 kB / 0.7996 GB, free: 77.55 MB / 0.5607 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005967/1.63, allocations: 5.031 MB / 0.8046 GB, free: 72.51 MB / 0.5607 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008243/1.639, allocations: 11.11 MB / 0.8154 GB, free: 58.61 MB / 0.5607 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01579/1.654, allocations: 17.46 MB / 0.8325 GB, free: 38.37 MB / 0.5607 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001561/1.655, allocations: 60 kB / 0.8325 GB, free: 38.31 MB / 0.5607 GB Notification: Performance of matching and sorting (n=1486) (initialization): time 0.02928/1.684, allocations: 17.92 MB / 0.85 GB, free: 20.37 MB / 0.5607 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002267/1.684, allocations: 92 kB / 0.8501 GB, free: 20.28 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003104/1.684, allocations: 212 kB / 0.8503 GB, free: 20.07 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005499/1.69, allocations: 2.349 MB / 0.8526 GB, free: 17.71 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00866/1.699, allocations: 2.573 MB / 0.8551 GB, free: 15.13 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0183/1.717, allocations: 17.43 MB / 0.8721 GB, free: 13.16 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009438/1.726, allocations: 0.6556 MB / 0.8728 GB, free: 12.5 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002859/1.729, allocations: 0.625 MB / 0.8734 GB, free: 11.88 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.01064/1.74, allocations: 4.099 MB / 0.8774 GB, free: 7.77 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002261/1.742, allocations: 0.6325 MB / 0.878 GB, free: 7.133 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02119/1.764, allocations: 10.19 MB / 0.888 GB, free: 12.88 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000121/1.764, allocations: 87.98 kB / 0.888 GB, free: 12.79 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.316e-05/1.764, allocations: 11.94 kB / 0.8881 GB, free: 12.78 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.31e-05/1.764, allocations: 23.92 kB / 0.8881 GB, free: 12.76 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04775/1.812, allocations: 21.89 MB / 0.9095 GB, free: 6.719 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.66e-05/1.812, allocations: 12 kB / 0.9095 GB, free: 6.707 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004089/1.816, allocations: 0.741 MB / 0.9102 GB, free: 5.965 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00608/1.822, allocations: 2.033 MB / 0.9122 GB, free: 3.918 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009785/1.823, allocations: 83.28 kB / 0.9123 GB, free: 3.84 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01956/1.842, allocations: 16.2 MB / 0.9281 GB, free: 3.082 MB / 0.6232 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.275e-05/1.842, allocations: 15.94 kB / 0.9281 GB, free: 3.066 MB / 0.6232 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02671/1.869, allocations: 16.13 MB / 0.9438 GB, free: 2.707 MB / 0.6388 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002059/1.871, allocations: 0.6569 MB / 0.9445 GB, free: 2.027 MB / 0.6388 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00237/1.874, allocations: 80 kB / 0.9446 GB, free: 1.949 MB / 0.6388 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005185/1.879, allocations: 326.5 kB / 0.9449 GB, free: 1.637 MB / 0.6388 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002003/1.881, allocations: 285.6 kB / 0.9451 GB, free: 1.355 MB / 0.6388 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00137/1.882, allocations: 124 kB / 0.9453 GB, free: 1.234 MB / 0.6388 GB Notification: Performance of sorting global known variables: time 0.01096/1.893, allocations: 3.979 MB / 0.9492 GB, free: 13.26 MB / 0.6544 GB Notification: Performance of sort global known variables: time 2.354e-06/1.893, allocations: 0 / 0.9492 GB, free: 13.26 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.01995/1.913, allocations: 2.062 MB / 0.9512 GB, free: 11.2 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.001969/1.915, allocations: 244.3 kB / 0.9514 GB, free: 10.96 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.3722/2.288, allocations: 12.35 MB / 0.9635 GB, free: 239.5 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 1.923e-05/2.288, allocations: 1.125 kB / 0.9635 GB, free: 239.5 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.009776/2.297, allocations: 4.941 MB / 0.9683 GB, free: 238.9 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006011/2.303, allocations: 0.7828 MB / 0.969 GB, free: 238.9 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0379/2.341, allocations: 20.41 MB / 0.989 GB, free: 230.7 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008035/2.349, allocations: 5.957 MB / 0.9948 GB, free: 228.8 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.008077/2.358, allocations: 3.995 MB / 0.9987 GB, free: 228.6 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001677/2.359, allocations: 434.2 kB / 0.9991 GB, free: 228.6 MB / 0.6544 GB Notification: Performance of SimCode: time 2.785e-06/2.359, allocations: 0 / 0.9991 GB, free: 228.6 MB / 0.6544 GB Notification: Performance of Templates: time 0.1128/2.472, allocations: 71.24 MB / 1.069 GB, free: 161.2 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/GearConstraint/GearConstraint.csv","/var/lib/jenkins/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