Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.GearConstraint.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_cpp_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_3.2.3_cpp_ModelicaTest.MultiBody.Joints.GearConstraint") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002358/0.002358, allocations: 174.7 kB / 8.143 MB, free: 2.211 MB / 5.871 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.732/1.732, allocations: 205.2 MB / 213.7 MB, free: 13.92 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001247/0.001246, allocations: 91.39 kB / 261.8 MB, free: 13.62 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2604/0.2604, allocations: 43.49 MB / 353.2 MB, free: 2.027 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 8.336e-06/8.426e-06, allocations: 0 / 417.7 MB, free: 40.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.276/0.276, allocations: 58.83 MB / 476.5 MB, free: 5.09 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2039/0.48, allocations: 109.6 MB / 0.5724 GB, free: 5.461 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000245/0.4803, allocations: 75.97 kB / 0.5725 GB, free: 5.387 MB / 410.7 MB Notification: Performance of FrontEnd: time 0.8395/1.32, allocations: 159.1 MB / 0.7278 GB, free: 78.53 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0004896/1.32, allocations: 159.8 kB / 0.728 GB, free: 78.38 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3112 * Number of variables: 3112 Notification: Performance of Generate backend data structure: time 0.03093/1.351, allocations: 7.449 MB / 0.7352 GB, free: 70.86 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.122e-05/1.351, allocations: 8.031 kB / 0.7352 GB, free: 70.85 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08937/1.441, allocations: 9.062 MB / 0.7441 GB, free: 61.76 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04567/1.486, allocations: 8.51 MB / 0.7524 GB, free: 53.23 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008299/1.487, allocations: 272 kB / 0.7527 GB, free: 52.96 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00632/1.494, allocations: 487.9 kB / 0.7531 GB, free: 52.48 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.04834/1.542, allocations: 13.44 MB / 0.7663 GB, free: 39.03 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0701/1.612, allocations: 19.13 MB / 0.7849 GB, free: 18.45 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006785/1.613, allocations: 83.28 kB / 0.785 GB, free: 18.36 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005582/1.619, allocations: 47.98 kB / 0.7851 GB, free: 18.32 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005435/1.624, allocations: 2.246 MB / 0.7873 GB, free: 16.07 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.392/2.016, allocations: 82.32 MB / 0.8676 GB, free: 112.7 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01288/2.029, allocations: 6.513 MB / 0.874 GB, free: 112 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01019/2.039, allocations: 5.28 MB / 0.8792 GB, free: 112 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03876/2.078, allocations: 14.82 MB / 0.8936 GB, free: 110.2 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.453e-05/2.078, allocations: 78.64 kB / 0.8937 GB, free: 110.2 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=422): time 8.846e-06/2.078, allocations: 0 / 0.8937 GB, free: 110.2 MB / 0.4948 GB Notification: Performance of matching and sorting (n=487): time 0.134/2.212, allocations: 39.36 MB / 0.9321 GB, free: 95.97 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001179/2.212, allocations: 223.2 kB / 0.9324 GB, free: 95.75 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01503/2.227, allocations: 5.415 MB / 0.9377 GB, free: 93.84 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.001211/2.229, allocations: 27.98 kB / 0.9377 GB, free: 93.81 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.004198/2.233, allocations: 5.408 MB / 0.943 GB, free: 89.58 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.00308/2.236, allocations: 1.731 MB / 0.9446 GB, free: 88.28 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001963/2.238, allocations: 0 / 0.9446 GB, free: 88.28 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.001314/2.239, allocations: 0.8273 MB / 0.9455 GB, free: 87.75 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01358/2.253, allocations: 5.076 MB / 0.9504 GB, free: 84.32 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01798/2.271, allocations: 11.59 MB / 0.9617 GB, free: 70.46 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01798/2.289, allocations: 7.747 MB / 0.9693 GB, free: 64.27 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002672/2.289, allocations: 68 kB / 0.9694 GB, free: 64.2 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1572) (initialization): time 0.04813/2.338, allocations: 16.48 MB / 0.9855 GB, free: 50.1 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 2.594e-05/2.338, allocations: 4 kB / 0.9855 GB, free: 50.1 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004134/2.338, allocations: 228.9 kB / 0.9857 GB, free: 49.88 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00778/2.346, allocations: 1.624 MB / 0.9873 GB, free: 48.57 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01912/2.365, allocations: 2.691 MB / 0.9899 GB, free: 46.23 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02324/2.388, allocations: 12.95 MB / 1.003 GB, free: 34 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01173/2.4, allocations: 377.4 kB / 1.003 GB, free: 33.69 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002266/2.402, allocations: 0.6726 MB / 1.004 GB, free: 33.03 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1051 * Number of states: 0 () * Number of discrete variables: 51 (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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1448): * Single equations (assignments): 1435 * Array equations: 9 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 42,(1,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002458/2.405, allocations: 0.6055 MB / 1.004 GB, free: 32.42 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001701/2.407, allocations: 0.6006 MB / 1.005 GB, free: 31.82 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02793/2.435, allocations: 9.458 MB / 1.014 GB, free: 23.83 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002188/2.435, allocations: 83.73 kB / 1.014 GB, free: 23.76 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.006e-05/2.435, allocations: 11.91 kB / 1.014 GB, free: 23.75 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.59e-05/2.435, allocations: 23.11 kB / 1.014 GB, free: 23.75 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05757/2.493, allocations: 19.19 MB / 1.033 GB, free: 7.715 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.944e-05/2.493, allocations: 8 kB / 1.033 GB, free: 7.707 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008079/2.501, allocations: 0.6975 MB / 1.034 GB, free: 7.125 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007286/2.508, allocations: 1.292 MB / 1.035 GB, free: 6.164 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001114/2.509, allocations: 19.84 kB / 1.035 GB, free: 6.148 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2158/2.725, allocations: 11.97 MB / 1.046 GB, free: 138.4 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.064e-05/2.725, allocations: 7.656 kB / 1.046 GB, free: 138.4 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.03792/2.763, allocations: 16.67 MB / 1.063 GB, free: 136.4 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005456/2.769, allocations: 1.389 MB / 1.064 GB, free: 136.3 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002421/2.771, allocations: 10.31 kB / 1.064 GB, free: 136.3 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00666/2.778, allocations: 163.6 kB / 1.064 GB, free: 136.3 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001477/2.779, allocations: 219.5 kB / 1.064 GB, free: 136.3 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006639/2.78, allocations: 118.1 kB / 1.065 GB, free: 136.3 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.009607/2.79, allocations: 3.621 MB / 1.068 GB, free: 136.1 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01435/2.804, allocations: 1.778 MB / 1.07 GB, free: 136.1 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (373): * Single equations (assignments): 360 * Array equations: 9 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 39,(1,100.0%) 2,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001507/2.806, allocations: 176.8 kB / 1.07 GB, free: 136 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.02753/2.833, allocations: 12.18 MB / 1.082 GB, free: 135.6 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.084e-05/2.833, allocations: 7.812 kB / 1.082 GB, free: 135.6 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.01167/2.845, allocations: 4.819 MB / 1.087 GB, free: 134.1 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005558/2.85, allocations: 0.533 MB / 1.087 GB, free: 133.9 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06491/2.915, allocations: 18.45 MB / 1.105 GB, free: 127.4 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02514/2.941, allocations: 6.83 MB / 1.112 GB, free: 125.4 MB / 0.4948 GB Notification: Performance of SimCode: time 1.883e-06/2.941, allocations: 0 / 1.112 GB, free: 125.4 MB / 0.4948 GB Notification: Performance of Templates: time 0.6275/3.568, allocations: 258.6 MB / 1.364 GB, free: 50.82 MB / 0.4948 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.GearConstraint.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.GearConstraint.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.GearConstraint.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.GearConstraint.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.GearConstraint.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.GearConstraint --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.GearConstraint.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.GearConstraint_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Joints/GearConstraint/GearConstraint.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.GearConstraint.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches