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/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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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") [: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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009208/0.0009209, allocations: 175.6 kB / 8.517 MB, free: 1.859 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.285/1.285, allocations: 221.4 MB / 230.3 MB, free: 7.699 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009579/0.0009579, allocations: 85.98 kB / 281.2 MB, free: 5.488 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1701/0.1701, allocations: 44.14 MB / 376.1 MB, free: 3.211 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 8.656e-06/8.676e-06, allocations: 4.219 kB / 444 MB, free: 15.59 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1129/0.113, allocations: 61.9 MB / 0.4941 GB, free: 1.613 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3543/0.4673, allocations: 110.8 MB / 0.6022 GB, free: 2.074 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003163/0.4677, allocations: 79.95 kB / 0.6023 GB, free: 1.996 MB / 410.7 MB Notification: Performance of FrontEnd: time 0.5764/1.044, allocations: 157.2 MB / 0.7559 GB, free: 100.2 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0002875/1.044, allocations: 155 kB / 0.756 GB, free: 100.2 MB / 0.4948 GB 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.01849/1.063, allocations: 7.291 MB / 0.7631 GB, free: 97.13 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.159e-05/1.063, allocations: 7.531 kB / 0.7631 GB, free: 97.13 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03921/1.102, allocations: 9.016 MB / 0.7719 GB, free: 96.09 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02236/1.125, allocations: 8.084 MB / 0.7798 GB, free: 92.96 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005002/1.125, allocations: 263.8 kB / 0.7801 GB, free: 92.96 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003848/1.129, allocations: 476.1 kB / 0.7805 GB, free: 92.95 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02271/1.152, allocations: 13.11 MB / 0.7933 GB, free: 83.23 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03188/1.184, allocations: 18.69 MB / 0.8116 GB, free: 63.12 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002577/1.184, allocations: 83.28 kB / 0.8117 GB, free: 63.04 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001259/1.185, allocations: 47.94 kB / 0.8117 GB, free: 62.99 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001811/1.187, allocations: 2.172 MB / 0.8139 GB, free: 60.82 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08549/1.273, allocations: 80.86 MB / 0.8928 GB, free: 10.3 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008388/1.281, allocations: 6.33 MB / 0.899 GB, free: 3.836 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.1822/1.463, allocations: 5.122 MB / 0.904 GB, free: 179.9 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02737/1.491, allocations: 14.36 MB / 0.918 GB, free: 178.2 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.024e-05/1.491, allocations: 80.73 kB / 0.9181 GB, free: 178.1 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=401): time 7.514e-06/1.491, allocations: 0 / 0.9181 GB, free: 178.1 MB / 0.5261 GB Notification: Performance of matching and sorting (n=466): time 0.07345/1.564, allocations: 38.18 MB / 0.9554 GB, free: 169.5 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.12e-05/1.564, allocations: 224.6 kB / 0.9556 GB, free: 169.3 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008766/1.573, allocations: 5.301 MB / 0.9608 GB, free: 167.3 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.000903/1.574, allocations: 32.78 kB / 0.9608 GB, free: 167.3 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.002789/1.577, allocations: 5.385 MB / 0.9661 GB, free: 163.1 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001922/1.579, allocations: 1.666 MB / 0.9677 GB, free: 161.9 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006726/1.579, allocations: 3.219 kB / 0.9677 GB, free: 161.9 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0005458/1.58, allocations: 0.8112 MB / 0.9685 GB, free: 161.4 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005697/1.586, allocations: 4.902 MB / 0.9733 GB, free: 159.7 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01089/1.597, allocations: 11.28 MB / 0.9843 GB, free: 149.5 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0132/1.61, allocations: 7.514 MB / 0.9916 GB, free: 147.2 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002223/1.61, allocations: 65.91 kB / 0.9917 GB, free: 147.2 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1528) (initialization): time 0.02885/1.639, allocations: 16.16 MB / 1.007 GB, free: 133.8 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 2.034e-05/1.639, allocations: 8 kB / 1.007 GB, free: 133.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00022/1.639, allocations: 224 kB / 1.008 GB, free: 133.6 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003974/1.643, allocations: 1.651 MB / 1.009 GB, free: 132.3 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009712/1.653, allocations: 2.606 MB / 1.012 GB, free: 130 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0124/1.665, allocations: 12.9 MB / 1.024 GB, free: 117.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008417/1.674, allocations: 375.9 kB / 1.025 GB, free: 117.5 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002016/1.676, allocations: 0.6586 MB / 1.025 GB, free: 116.9 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1028 * Number of states: 0 () * Number of discrete variables: 53 (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.torqueArrow.arrowLine.twoHeadedArrow,torque1.torqueArrow.headAtOrigin,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 (1404): * Single equations (assignments): 1391 * 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.001805/1.678, allocations: 0.6574 MB / 1.026 GB, free: 116.2 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001042/1.679, allocations: 0.5861 MB / 1.027 GB, free: 115.6 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01267/1.691, allocations: 9.114 MB / 1.036 GB, free: 107.9 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000143/1.692, allocations: 71.14 kB / 1.036 GB, free: 107.8 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.422e-05/1.692, allocations: 11.38 kB / 1.036 GB, free: 107.8 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.833e-05/1.692, allocations: 20.16 kB / 1.036 GB, free: 107.8 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03438/1.726, allocations: 18.54 MB / 1.054 GB, free: 92.32 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.67e-05/1.726, allocations: 8.75 kB / 1.054 GB, free: 92.31 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003741/1.73, allocations: 0.6545 MB / 1.054 GB, free: 91.77 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003778/1.734, allocations: 1.283 MB / 1.056 GB, free: 90.81 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000757/1.735, allocations: 16 kB / 1.056 GB, free: 90.79 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01147/1.746, allocations: 11.78 MB / 1.067 GB, free: 79.61 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.364e-06/1.746, allocations: 11.94 kB / 1.067 GB, free: 79.6 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01854/1.765, allocations: 16.06 MB / 1.083 GB, free: 64.83 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001393/1.766, allocations: 0.5929 MB / 1.083 GB, free: 64.22 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001218/1.767, allocations: 13.58 kB / 1.083 GB, free: 64.21 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002854/1.77, allocations: 148.1 kB / 1.084 GB, free: 64.12 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006021/1.771, allocations: 213.8 kB / 1.084 GB, free: 63.99 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003325/1.771, allocations: 114.6 kB / 1.084 GB, free: 63.88 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.004976/1.776, allocations: 3.544 MB / 1.087 GB, free: 60.81 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.008734/1.785, allocations: 1.731 MB / 1.089 GB, free: 59.08 MB / 0.5261 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 (351): * Single equations (assignments): 338 * 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.0006198/1.786, allocations: 175.6 kB / 1.089 GB, free: 58.91 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01451/1.8, allocations: 11.79 MB / 1.101 GB, free: 47.64 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 8.986e-06/1.8, allocations: 4 kB / 1.101 GB, free: 47.64 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.006758/1.807, allocations: 4.635 MB / 1.105 GB, free: 42.96 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003648/1.811, allocations: 0.5329 MB / 1.106 GB, free: 42.45 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03103/1.842, allocations: 16.99 MB / 1.122 GB, free: 25.28 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.1765/2.018, allocations: 6.627 MB / 1.129 GB, free: 156.2 MB / 0.5261 GB Notification: Performance of SimCode: time 1.092e-06/2.018, allocations: 0 / 1.129 GB, free: 156.2 MB / 0.5261 GB Notification: Performance of Templates: time 0.1325/2.151, allocations: 79.34 MB / 1.206 GB, free: 143.2 MB / 0.5261 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","../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.GearConstraint.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches