Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.GearConstraint.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/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_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_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 3.2.3+maint.om/package.mo): time 0.001001/0.001001, allocations: 192.5 kB / 7.803 MB, free: 2.496 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9845/0.9845, allocations: 205.2 MB / 213.4 MB, free: 13.86 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007588/0.0007589, allocations: 88.7 kB / 261.4 MB, free: 13.54 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1509/0.1509, allocations: 43.49 MB / 352.8 MB, free: 1.957 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 5.3e-06/5.41e-06, allocations: 0 / 417.7 MB, free: 40.57 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1992/0.1992, allocations: 58.83 MB / 476.5 MB, free: 5.219 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1169/0.3162, allocations: 109.6 MB / 0.5724 GB, free: 5.309 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002033/0.3164, allocations: 75.95 kB / 0.5725 GB, free: 5.234 MB / 410.7 MB Notification: Performance of FrontEnd: time 0.4779/0.7943, allocations: 159.1 MB / 0.7278 GB, free: 78.23 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0003898/0.7947, allocations: 156 kB / 0.728 GB, free: 78.08 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.01894/0.8137, allocations: 7.456 MB / 0.7353 GB, free: 70.55 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.593e-05/0.8137, allocations: 8.031 kB / 0.7353 GB, free: 70.55 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0345/0.8482, allocations: 9.059 MB / 0.7441 GB, free: 61.46 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01797/0.8662, allocations: 8.495 MB / 0.7524 GB, free: 52.94 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002374/0.8665, allocations: 268 kB / 0.7527 GB, free: 52.68 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002149/0.8687, allocations: 495.9 kB / 0.7531 GB, free: 52.2 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01743/0.8861, allocations: 13.45 MB / 0.7663 GB, free: 38.74 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02195/0.9081, allocations: 19.13 MB / 0.7849 GB, free: 18.16 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001911/0.9083, allocations: 83.22 kB / 0.785 GB, free: 18.07 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008754/0.9092, allocations: 44 kB / 0.7851 GB, free: 18.03 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001798/0.911, allocations: 2.239 MB / 0.7873 GB, free: 15.79 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2068/1.118, allocations: 82.32 MB / 0.8676 GB, free: 112.1 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006121/1.124, allocations: 6.511 MB / 0.874 GB, free: 111.5 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004522/1.128, allocations: 5.285 MB / 0.8792 GB, free: 111.4 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02008/1.149, allocations: 14.83 MB / 0.8936 GB, free: 109.6 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.284e-05/1.149, allocations: 70.17 kB / 0.8937 GB, free: 109.6 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=422): time 7.123e-06/1.149, allocations: 0 / 0.8937 GB, free: 109.6 MB / 0.4948 GB Notification: Performance of matching and sorting (n=487): time 0.06115/1.21, allocations: 39.37 MB / 0.9322 GB, free: 95.52 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.805e-05/1.21, allocations: 225.5 kB / 0.9324 GB, free: 95.3 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007283/1.217, allocations: 5.411 MB / 0.9377 GB, free: 93.39 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0007699/1.218, allocations: 29.2 kB / 0.9377 GB, free: 93.36 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.002218/1.22, allocations: 5.52 MB / 0.9431 GB, free: 89.12 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001723/1.222, allocations: 1.733 MB / 0.9448 GB, free: 87.82 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004836/1.222, allocations: 0 / 0.9448 GB, free: 87.82 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0004966/1.223, allocations: 0.8212 MB / 0.9456 GB, free: 87.3 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005983/1.229, allocations: 5.074 MB / 0.9505 GB, free: 84.19 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007523/1.236, allocations: 11.6 MB / 0.9619 GB, free: 70.33 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00785/1.244, allocations: 7.74 MB / 0.9694 GB, free: 64.14 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.828e-05/1.244, allocations: 64 kB / 0.9695 GB, free: 64.08 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1572) (initialization): time 0.02229/1.267, allocations: 16.63 MB / 0.9857 GB, free: 49.82 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.957e-05/1.267, allocations: 8 kB / 0.9857 GB, free: 49.81 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001736/1.267, allocations: 228 kB / 0.9859 GB, free: 49.59 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00368/1.271, allocations: 1.667 MB / 0.9876 GB, free: 48.26 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008893/1.28, allocations: 2.688 MB / 0.9902 GB, free: 45.91 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01154/1.291, allocations: 12.92 MB / 1.003 GB, free: 33.72 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009269/1.3, allocations: 385.3 kB / 1.003 GB, free: 33.4 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002168/1.303, allocations: 0.6707 MB / 1.004 GB, free: 32.75 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.001623/1.304, allocations: 0.6828 MB / 1.004 GB, free: 32.06 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001232/1.305, allocations: 0.5939 MB / 1.005 GB, free: 31.46 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01232/1.318, allocations: 9.47 MB / 1.014 GB, free: 23.47 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.178e-05/1.318, allocations: 75.94 kB / 1.014 GB, free: 23.4 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.414e-05/1.318, allocations: 8 kB / 1.014 GB, free: 23.39 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.763e-05/1.318, allocations: 26.78 kB / 1.014 GB, free: 23.39 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02813/1.346, allocations: 19.19 MB / 1.033 GB, free: 7.348 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.857e-05/1.346, allocations: 7.906 kB / 1.033 GB, free: 7.34 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003357/1.349, allocations: 0.7046 MB / 1.034 GB, free: 6.754 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003349/1.353, allocations: 1.278 MB / 1.035 GB, free: 5.801 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003731/1.353, allocations: 16 kB / 1.035 GB, free: 5.785 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1516/1.505, allocations: 11.77 MB / 1.047 GB, free: 138 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.593e-06/1.505, allocations: 9.406 kB / 1.047 GB, free: 138 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01838/1.523, allocations: 16.65 MB / 1.063 GB, free: 136 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002887/1.526, allocations: 1.386 MB / 1.064 GB, free: 135.9 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008804/1.527, allocations: 19.64 kB / 1.064 GB, free: 135.9 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002503/1.53, allocations: 148.4 kB / 1.064 GB, free: 135.9 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005057/1.53, allocations: 228.7 kB / 1.065 GB, free: 135.9 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003241/1.53, allocations: 117.7 kB / 1.065 GB, free: 135.9 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.004143/1.535, allocations: 3.619 MB / 1.068 GB, free: 135.7 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.007567/1.542, allocations: 1.782 MB / 1.07 GB, free: 135.7 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.0005237/1.543, allocations: 177.6 kB / 1.07 GB, free: 135.6 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01288/1.556, allocations: 12.19 MB / 1.082 GB, free: 135.1 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 3.917e-06/1.556, allocations: 3.75 kB / 1.082 GB, free: 135.1 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.004852/1.56, allocations: 4.835 MB / 1.087 GB, free: 133.5 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002462/1.563, allocations: 0.5333 MB / 1.087 GB, free: 133.2 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02695/1.59, allocations: 17.49 MB / 1.104 GB, free: 127.3 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008545/1.598, allocations: 6.79 MB / 1.111 GB, free: 125.3 MB / 0.4948 GB Notification: Performance of SimCode: time 9.42e-07/1.598, allocations: 2.281 kB / 1.111 GB, free: 125.3 MB / 0.4948 GB Notification: Performance of Templates: time 0.1145/1.713, allocations: 81.85 MB / 1.191 GB, free: 67.16 MB / 0.4948 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.GearConstraint.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.GearConstraint.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.GearConstraint.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.GearConstraint.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.GearConstraint.sim & ./ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.GearConstraint -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.GearConstraint.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_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_ModelicaTest.MultiBody.Joints.GearConstraint.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches