Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.GearConstraint.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_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 trunk/package.mo): time 0.00194/0.001939, allocations: 192.1 kB / 8.534 MB, free: 1.844 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.248/1.248, allocations: 225.5 MB / 234.4 MB, free: 3.406 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008778/0.0008778, allocations: 90.45 kB / 286.3 MB, free: 5.25 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1801/0.1801, allocations: 45.14 MB / 383.3 MB, free: 0.5625 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 7.875e-06/7.915e-06, allocations: 0 / 452.6 MB, free: 76.2 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1082/0.1082, allocations: 63.25 MB / 0.5038 GB, free: 13.04 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3172/0.4254, allocations: 111.7 MB / 0.6128 GB, free: 7.586 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002495/0.4257, allocations: 77.14 kB / 0.6129 GB, free: 7.547 MB / 410.7 MB Notification: Performance of FrontEnd: time 0.6554/1.081, allocations: 159.4 MB / 0.7686 GB, free: 105.1 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0003825/1.082, allocations: 153 kB / 0.7687 GB, free: 105.1 MB / 0.5261 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.02249/1.104, allocations: 7.339 MB / 0.7759 GB, free: 102.1 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.915e-05/1.104, allocations: 7.812 kB / 0.7759 GB, free: 102.1 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03866/1.143, allocations: 9.054 MB / 0.7847 GB, free: 101.5 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01912/1.162, allocations: 7.433 MB / 0.792 GB, free: 100.6 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004511/1.162, allocations: 264.7 kB / 0.7922 GB, free: 100.6 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004225/1.167, allocations: 480.3 kB / 0.7927 GB, free: 100.6 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02204/1.189, allocations: 13.1 MB / 0.8055 GB, free: 100.5 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04002/1.229, allocations: 18.69 MB / 0.8237 GB, free: 96.66 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003821/1.229, allocations: 84.06 kB / 0.8238 GB, free: 96.66 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002536/1.232, allocations: 40.41 kB / 0.8239 GB, free: 96.66 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002285/1.234, allocations: 2.182 MB / 0.826 GB, free: 96.64 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09394/1.328, allocations: 80.85 MB / 0.9049 GB, free: 35.15 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007393/1.335, allocations: 6.333 MB / 0.9111 GB, free: 29.21 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006084/1.342, allocations: 5.119 MB / 0.9161 GB, free: 24.47 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02559/1.367, allocations: 14.36 MB / 0.9301 GB, free: 12.12 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.082e-05/1.367, allocations: 72.92 kB / 0.9302 GB, free: 12.04 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=401): time 6.822e-06/1.367, allocations: 0 / 0.9302 GB, free: 12.04 MB / 0.5261 GB Notification: Performance of matching and sorting (n=466): time 0.2777/1.645, allocations: 38.27 MB / 0.9676 GB, free: 166.4 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.055e-05/1.645, allocations: 222.6 kB / 0.9678 GB, free: 166.2 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01007/1.655, allocations: 5.307 MB / 0.973 GB, free: 165.7 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0008206/1.656, allocations: 25.7 kB / 0.973 GB, free: 165.7 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.002887/1.659, allocations: 5.387 MB / 0.9783 GB, free: 163 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.001772/1.661, allocations: 1.662 MB / 0.9799 GB, free: 162.1 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000565/1.661, allocations: 0 / 0.9799 GB, free: 162.1 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0004845/1.662, allocations: 0.8083 MB / 0.9807 GB, free: 161.8 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005843/1.668, allocations: 4.907 MB / 0.9855 GB, free: 161.8 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009504/1.677, allocations: 11.28 MB / 0.9965 GB, free: 153.6 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01076/1.688, allocations: 7.513 MB / 1.004 GB, free: 153.5 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.00024/1.688, allocations: 61.84 kB / 1.004 GB, free: 153.5 MB / 0.5417 GB Notification: Performance of matching and sorting (n=1528) (initialization): time 0.03107/1.719, allocations: 16.16 MB / 1.02 GB, free: 152.6 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 2.459e-05/1.719, allocations: 3.625 kB / 1.02 GB, free: 152.6 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003034/1.72, allocations: 226.2 kB / 1.02 GB, free: 152.6 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004498/1.724, allocations: 1.652 MB / 1.021 GB, free: 152.6 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01029/1.734, allocations: 2.607 MB / 1.024 GB, free: 152.3 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01296/1.747, allocations: 12.91 MB / 1.037 GB, free: 145.7 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009628/1.757, allocations: 377.4 kB / 1.037 GB, free: 145.7 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002466/1.76, allocations: 0.6539 MB / 1.038 GB, free: 145.6 MB / 0.5417 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.002414/1.762, allocations: 0.6657 MB / 1.038 GB, free: 145 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001243/1.763, allocations: 0.5748 MB / 1.039 GB, free: 144.7 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01324/1.777, allocations: 9.112 MB / 1.048 GB, free: 141.5 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001515/1.777, allocations: 72.16 kB / 1.048 GB, free: 141.5 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.031e-05/1.777, allocations: 11.66 kB / 1.048 GB, free: 141.5 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.752e-05/1.777, allocations: 19.45 kB / 1.048 GB, free: 141.5 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0339/1.811, allocations: 18.54 MB / 1.066 GB, free: 134.9 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.389e-05/1.811, allocations: 3.969 kB / 1.066 GB, free: 134.9 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003707/1.815, allocations: 0.6634 MB / 1.067 GB, free: 134.8 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00369/1.818, allocations: 1.277 MB / 1.068 GB, free: 134.5 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006747/1.819, allocations: 20.69 kB / 1.068 GB, free: 134.5 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01163/1.831, allocations: 11.78 MB / 1.079 GB, free: 125.8 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.614e-06/1.831, allocations: 13.25 kB / 1.079 GB, free: 125.7 MB / 0.5417 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01904/1.85, allocations: 16.07 MB / 1.095 GB, free: 111 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002035/1.852, allocations: 0.5951 MB / 1.096 GB, free: 110.4 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002399/1.854, allocations: 8 kB / 1.096 GB, free: 110.4 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003911/1.858, allocations: 153 kB / 1.096 GB, free: 110.3 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008208/1.859, allocations: 210.3 kB / 1.096 GB, free: 110.2 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003412/1.859, allocations: 118.9 kB / 1.096 GB, free: 110.1 MB / 0.5417 GB Notification: Performance of sort global known variables: time 0.007479/1.867, allocations: 3.539 MB / 1.1 GB, free: 107 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0108/1.878, allocations: 1.732 MB / 1.101 GB, free: 105.3 MB / 0.5417 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.000779/1.878, allocations: 173.7 kB / 1.101 GB, free: 105.1 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0153/1.894, allocations: 11.79 MB / 1.113 GB, free: 94.34 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.186e-05/1.894, allocations: 0 / 1.113 GB, free: 94.34 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.006143/1.9, allocations: 4.64 MB / 1.117 GB, free: 90.05 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004762/1.905, allocations: 0.5368 MB / 1.118 GB, free: 89.59 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03704/1.942, allocations: 16.99 MB / 1.135 GB, free: 74.25 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01219/1.954, allocations: 6.623 MB / 1.141 GB, free: 69.24 MB / 0.5417 GB Notification: Performance of SimCode: time 1.172e-06/1.954, allocations: 7.938 kB / 1.141 GB, free: 69.23 MB / 0.5417 GB Notification: Performance of Templates: time 0.331/2.285, allocations: 79.32 MB / 1.219 GB, free: 141.4 MB / 0.5417 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.GearConstraint.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.GearConstraint.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.GearConstraint.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.GearConstraint.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.GearConstraint.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.GearConstraint -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.GearConstraint.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.MultiBody.Joints.GearConstraint.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches