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.00141/0.00141, allocations: 110.8 kB / 17.32 MB, free: 6.027 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.00126/0.001261, allocations: 193.3 kB / 18.25 MB, free: 5.113 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.413/1.413, allocations: 222.9 MB / 241.9 MB, free: 15.45 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.2208/0.2208, allocations: 44.18 MB / 336.2 MB, free: 2.883 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001288/0.001288, allocations: 64.38 kB / 407.9 MB, free: 27.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1184/0.1197, allocations: 60.83 MB / 468.7 MB, free: 14.76 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.GearConstraint): time 0.3694/0.4891, allocations: 81.6 MB / 0.5374 GB, free: 6.004 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.04146/0.5306, allocations: 15.74 MB / 0.5528 GB, free: 11.57 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02368/0.5543, allocations: 354.5 kB / 0.5531 GB, free: 11.52 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009585/0.564, allocations: 4.604 MB / 0.5576 GB, free: 8.516 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009835/0.5739, allocations: 2.906 MB / 0.5605 GB, free: 6.504 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003041/0.5769, allocations: 0.8447 MB / 0.5613 GB, free: 5.906 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01257/0.5895, allocations: 8.82 MB / 0.5699 GB, free: 13.07 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009614/0.5992, allocations: 6.762 MB / 0.5765 GB, free: 6.266 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006722/0.606, allocations: 2.986 MB / 0.5794 GB, free: 3.27 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008402/0.6144, allocations: 4.405 MB / 0.5837 GB, free: 14.85 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002903/0.6173, allocations: 0.625 MB / 0.5843 GB, free: 14.23 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005371/0.6227, allocations: 1.483 MB / 0.5858 GB, free: 12.74 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005636/0.6284, allocations: 3.737 MB / 0.5894 GB, free: 8.996 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008736/0.6372, allocations: 4.33 MB / 0.5937 GB, free: 4.641 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01732/0.6545, allocations: 13.22 MB / 0.6066 GB, free: 7.383 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.085e-06/0.6546, allocations: 0 / 0.6066 GB, free: 7.383 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.6546, allocations: 0 / 0.6066 GB, free: 7.383 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0005215/0.6551, allocations: 0 / 0.6066 GB, free: 7.383 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.02737/0.6825, allocations: 8.822 MB / 0.6152 GB, free: 14.47 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.753e-05/0.6826, allocations: 12.03 kB / 0.6152 GB, free: 14.46 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02322/0.7058, allocations: 5.429 MB / 0.6205 GB, free: 9.012 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01206/0.7179, allocations: 4.918 MB / 0.6253 GB, free: 4.035 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005888/0.7185, allocations: 443.6 kB / 0.6257 GB, free: 3.602 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002644/0.7212, allocations: 0.5703 MB / 0.6263 GB, free: 3.031 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04273/0.7639, allocations: 20.03 MB / 0.6458 GB, free: 13.96 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003646/0.7643, allocations: 59.47 kB / 0.6459 GB, free: 13.91 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002775/0.7671, allocations: 287.7 kB / 0.6462 GB, free: 13.62 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007361/0.7745, allocations: 4.235 MB / 0.6503 GB, free: 9.383 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03739/0.8119, allocations: 17.79 MB / 0.6677 GB, free: 7.562 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6504/1.462, allocations: 73.96 MB / 0.7399 GB, free: 77.51 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01647/1.479, allocations: 7.937 MB / 0.7477 GB, free: 76.25 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006553/1.485, allocations: 5.177 MB / 0.7527 GB, free: 76.2 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002546/1.486, allocations: 63.53 kB / 0.7528 GB, free: 76.2 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.068e-05/1.486, allocations: 79.56 kB / 0.7529 GB, free: 76.15 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=429): time 6.231e-06/1.486, allocations: 0 / 0.7529 GB, free: 76.15 MB / 0.5294 GB Notification: Performance of matching and sorting (n=476): time 0.08677/1.573, allocations: 41.76 MB / 0.7936 GB, free: 52.62 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.645e-05/1.573, allocations: 222.8 kB / 0.7939 GB, free: 52.36 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006868/1.58, allocations: 6.403 MB / 0.8001 GB, free: 45.95 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0007772/1.58, allocations: 89.7 kB / 0.8002 GB, free: 45.86 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002142/1.582, allocations: 5.529 MB / 0.8056 GB, free: 40.36 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.00143/1.584, allocations: 1.729 MB / 0.8073 GB, free: 38.64 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002431/1.586, allocations: 2.269 MB / 0.8095 GB, free: 36.37 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 3.276e-05/1.586, allocations: 301.1 kB / 0.8098 GB, free: 36.07 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005643/1.592, allocations: 5.031 MB / 0.8147 GB, free: 31.04 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008874/1.601, allocations: 11.11 MB / 0.8255 GB, free: 17.09 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01718/1.618, allocations: 17.45 MB / 0.8426 GB, free: 13.55 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001793/1.618, allocations: 60 kB / 0.8426 GB, free: 13.5 MB / 0.545 GB Notification: Performance of matching and sorting (n=1486) (initialization): time 0.03291/1.651, allocations: 17.88 MB / 0.8601 GB, free: 12.87 MB / 0.5607 GB Notification: Performance of prepare postOptimizeDAE: time 0.000152/1.651, allocations: 96 kB / 0.8602 GB, free: 12.77 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002781/1.652, allocations: 213.7 kB / 0.8604 GB, free: 12.57 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006625/1.658, allocations: 2.352 MB / 0.8627 GB, free: 10.2 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009231/1.668, allocations: 2.571 MB / 0.8652 GB, free: 7.84 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02136/1.689, allocations: 17.42 MB / 0.8822 GB, free: 6.004 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009595/1.699, allocations: 0.6732 MB / 0.8829 GB, free: 5.332 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002705/1.701, allocations: 0.621 MB / 0.8835 GB, free: 4.711 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.009309/1.711, allocations: 4.097 MB / 0.8875 GB, free: 0.8203 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001366/1.712, allocations: 0.59 MB / 0.8881 GB, free: 228 kB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01696/1.729, allocations: 10.2 MB / 0.898 GB, free: 6 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001256/1.729, allocations: 87.11 kB / 0.8981 GB, free: 5.918 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.565e-05/1.729, allocations: 15.92 kB / 0.8981 GB, free: 5.902 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.263e-05/1.729, allocations: 23.92 kB / 0.8981 GB, free: 5.879 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04292/1.772, allocations: 21.97 MB / 0.9196 GB, free: 15.86 MB / 0.6232 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.497e-05/1.772, allocations: 12 kB / 0.9196 GB, free: 15.85 MB / 0.6232 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003757/1.776, allocations: 0.7451 MB / 0.9203 GB, free: 15.14 MB / 0.6232 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005812/1.782, allocations: 2.043 MB / 0.9223 GB, free: 13.09 MB / 0.6232 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007628/1.783, allocations: 83.98 kB / 0.9224 GB, free: 13 MB / 0.6232 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2731/2.056, allocations: 16.19 MB / 0.9382 GB, free: 248.7 MB / 0.6232 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.799e-05/2.056, allocations: 15.56 kB / 0.9382 GB, free: 248.7 MB / 0.6232 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0269/2.083, allocations: 16.11 MB / 0.954 GB, free: 245.5 MB / 0.6232 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00202/2.085, allocations: 0.6295 MB / 0.9546 GB, free: 245.3 MB / 0.6232 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001835/2.087, allocations: 84.61 kB / 0.9547 GB, free: 245.3 MB / 0.6232 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003644/2.09, allocations: 312.4 kB / 0.955 GB, free: 245.2 MB / 0.6232 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001067/2.091, allocations: 287.4 kB / 0.9552 GB, free: 245.2 MB / 0.6232 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000361/2.092, allocations: 126.1 kB / 0.9554 GB, free: 245.2 MB / 0.6232 GB Notification: Performance of sorting global known variables: time 0.006348/2.098, allocations: 3.982 MB / 0.9592 GB, free: 243.9 MB / 0.6232 GB Notification: Performance of sort global known variables: time 3.71e-07/2.098, allocations: 2.875 kB / 0.9592 GB, free: 243.9 MB / 0.6232 GB Notification: Performance of remove unused functions: time 0.01116/2.109, allocations: 2.035 MB / 0.9612 GB, free: 243.6 MB / 0.6232 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.001166/2.111, allocations: 245.9 kB / 0.9615 GB, free: 243.5 MB / 0.6232 GB Notification: Performance of simCode: created initialization part: time 0.03261/2.143, allocations: 21.95 MB / 0.9829 GB, free: 233 MB / 0.6232 GB Notification: Performance of simCode: created event and clocks part: time 1.464e-05/2.143, allocations: 0 / 0.9829 GB, free: 233 MB / 0.6232 GB Notification: Performance of simCode: created simulation system equations: time 0.007248/2.151, allocations: 4.933 MB / 0.9877 GB, free: 228.6 MB / 0.6232 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00624/2.157, allocations: 0.7837 MB / 0.9885 GB, free: 228 MB / 0.6232 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03846/2.195, allocations: 24.43 MB / 1.012 GB, free: 205.6 MB / 0.6232 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009085/2.204, allocations: 5.961 MB / 1.018 GB, free: 201 MB / 0.6232 GB Notification: Performance of simCode: alias equations: time 0.009311/2.214, allocations: 3.989 MB / 1.022 GB, free: 198.4 MB / 0.6232 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0018/2.216, allocations: 438.3 kB / 1.022 GB, free: 198 MB / 0.6232 GB Notification: Performance of SimCode: time 1.373e-06/2.216, allocations: 0 / 1.022 GB, free: 198 MB / 0.6232 GB Notification: Performance of Templates: time 0.1193/2.335, allocations: 75.9 MB / 1.097 GB, free: 122.7 MB / 0.6232 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