Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.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.Parts.Rotor1D.GearConstraint2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gc1.actuatedRevolute_b.phi|gc1.actuatedRevolute_b.w|gc2.actuatedRevolute_b.phi|gc2.actuatedRevolute_b.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2") translateModel(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gc1.actuatedRevolute_b.phi|gc1.actuatedRevolute_b.w|gc2.actuatedRevolute_b.phi|gc2.actuatedRevolute_b.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2") [: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.001511/0.001511, allocations: 183.4 kB / 8.526 MB, free: 1.832 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.268/1.268, allocations: 221.4 MB / 230.3 MB, free: 7.766 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.0009196/0.0009196, allocations: 79.38 kB / 281.2 MB, free: 5.52 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.1617/0.1617, allocations: 44.15 MB / 376.1 MB, free: 3.242 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 9.528e-06/9.548e-06, allocations: 4.219 kB / 444 MB, free: 15.61 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1124/0.1125, allocations: 61.9 MB / 0.4941 GB, free: 1.633 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3277/0.4402, allocations: 109.8 MB / 0.6013 GB, free: 2.949 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002168/0.4405, allocations: 83.95 kB / 0.6014 GB, free: 2.867 MB / 410.7 MB Notification: Performance of FrontEnd: time 0.8837/1.324, allocations: 272 MB / 0.867 GB, free: 12.68 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.001061/1.325, allocations: 270.8 kB / 0.8673 GB, free: 12.41 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5288 * Number of variables: 5288 Notification: Performance of Generate backend data structure: time 0.04165/1.367, allocations: 12.77 MB / 0.8797 GB, free: 15.57 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.697e-05/1.367, allocations: 15.91 kB / 0.8797 GB, free: 15.55 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3142/1.681, allocations: 16.78 MB / 0.8961 GB, free: 118.9 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03644/1.718, allocations: 14.19 MB / 0.91 GB, free: 118.3 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007321/1.718, allocations: 468.9 kB / 0.9104 GB, free: 118.3 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007163/1.726, allocations: 0.831 MB / 0.9112 GB, free: 118.3 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.04157/1.767, allocations: 24.18 MB / 0.9349 GB, free: 118.2 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07655/1.844, allocations: 32.73 MB / 0.9668 GB, free: 112.7 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008771/1.845, allocations: 134.7 kB / 0.9669 GB, free: 112.7 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006608/1.851, allocations: 59.72 kB / 0.967 GB, free: 112.7 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004335/1.856, allocations: 3.829 MB / 0.9707 GB, free: 112.7 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.178/2.034, allocations: 135 MB / 1.103 GB, free: 10.29 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01309/2.047, allocations: 10.99 MB / 1.113 GB, free: 116 kB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.2628/2.31, allocations: 9.674 MB / 1.123 GB, free: 111.7 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05904/2.369, allocations: 34.61 MB / 1.157 GB, free: 107.2 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.882e-05/2.369, allocations: 96.14 kB / 1.157 GB, free: 107.1 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=705): time 1.071e-05/2.369, allocations: 0 / 1.157 GB, free: 107.1 MB / 0.5261 GB Notification: Performance of matching and sorting (n=776): time 0.1416/2.51, allocations: 65.5 MB / 1.221 GB, free: 91.88 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001103/2.511, allocations: 299.7 kB / 1.221 GB, free: 91.59 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01956/2.53, allocations: 8.615 MB / 1.229 GB, free: 88.55 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.001616/2.532, allocations: 29.61 kB / 1.229 GB, free: 88.52 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.006153/2.538, allocations: 9.014 MB / 1.238 GB, free: 81.67 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.003799/2.542, allocations: 2.737 MB / 1.241 GB, free: 79.62 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001808/2.544, allocations: 0 / 1.241 GB, free: 79.62 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.00122/2.545, allocations: 1.126 MB / 1.242 GB, free: 78.97 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0122/2.557, allocations: 7.78 MB / 1.25 GB, free: 75.36 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01876/2.576, allocations: 17.7 MB / 1.267 GB, free: 54.27 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01734/2.593, allocations: 11.92 MB / 1.278 GB, free: 44.75 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003761/2.594, allocations: 100 kB / 1.279 GB, free: 44.65 MB / 0.5261 GB Notification: Performance of matching and sorting (n=2441) (initialization): time 0.2886/2.882, allocations: 25.93 MB / 1.304 GB, free: 92.95 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 2.114e-05/2.882, allocations: 3.875 kB / 1.304 GB, free: 92.95 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0006704/2.883, allocations: 355.6 kB / 1.304 GB, free: 92.95 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007015/2.89, allocations: 2.308 MB / 1.306 GB, free: 92.92 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01651/2.907, allocations: 4.219 MB / 1.311 GB, free: 92.56 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01634/2.923, allocations: 12.84 MB / 1.323 GB, free: 89.85 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01445/2.937, allocations: 0.588 MB / 1.324 GB, free: 89.85 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003963/2.941, allocations: 1.031 MB / 1.325 GB, free: 89.85 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1597 * Number of states: 0 () * Number of discrete variables: 97 (torque2.connectionLineColor[3],torque2.connectionLineColor[2],torque2.connectionLineColor[1],torque2.torqueArrow.arrowLine.twoHeadedArrow,torque2.torqueArrow.headAtOrigin,torque2.torqueColor[3],torque2.torqueColor[2],torque2.torqueColor[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],fixedTranslation2.color[3],fixedTranslation2.color[2],fixedTranslation2.color[1],fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],fixedFrame3.color_x[3],fixedFrame3.color_x[2],fixedFrame3.color_x[1],fixedFrame2.color_x[3],fixedFrame2.color_x[2],fixedFrame2.color_x[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],fixedFrame1.color_x[3],fixedFrame1.color_x[2],fixedFrame1.color_x[1],fixedFrame.color_x[3],fixedFrame.color_x[2],fixedFrame.color_x[1],bodyCylinder3.color[3],bodyCylinder3.color[2],bodyCylinder3.color[1],bodyCylinder3.body.sphereColor[3],bodyCylinder3.body.sphereColor[2],bodyCylinder3.body.sphereColor[1],bodyCylinder2.color[3],bodyCylinder2.color[2],bodyCylinder2.color[1],bodyCylinder2.body.sphereColor[3],bodyCylinder2.body.sphereColor[2],bodyCylinder2.body.sphereColor[1],bodyCylinder1.color[3],bodyCylinder1.color[2],bodyCylinder1.color[1],bodyCylinder1.body.sphereColor[3],bodyCylinder1.body.sphereColor[2],bodyCylinder1.body.sphereColor[1],bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],gc2.fixedTranslation2.color[3],gc2.fixedTranslation2.color[2],gc2.fixedTranslation2.color[1],gc2.fixedTranslation1.color[3],gc2.fixedTranslation1.color[2],gc2.fixedTranslation1.color[1],gc2.actuatedRevolute_b.cylinderColor[3],gc2.actuatedRevolute_b.cylinderColor[2],gc2.actuatedRevolute_b.cylinderColor[1],gc2.actuatedRevolute_a.cylinderColor[3],gc2.actuatedRevolute_a.cylinderColor[2],gc2.actuatedRevolute_a.cylinderColor[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],gc1.fixedTranslation2.color[3],gc1.fixedTranslation2.color[2],gc1.fixedTranslation2.color[1],gc1.fixedTranslation1.color[3],gc1.fixedTranslation1.color[2],gc1.fixedTranslation1.color[1],gc1.actuatedRevolute_b.cylinderColor[3],gc1.actuatedRevolute_b.cylinderColor[2],gc1.actuatedRevolute_b.cylinderColor[1],gc1.actuatedRevolute_a.cylinderColor[3],gc1.actuatedRevolute_a.cylinderColor[2],gc1.actuatedRevolute_a.cylinderColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2245): * Single equations (assignments): 2228 * Array equations: 15 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(3,77.8%) 36,(3,77.8%) 36} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004912/2.946, allocations: 0.9912 MB / 1.326 GB, free: 89.38 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002243/2.949, allocations: 0.9571 MB / 1.327 GB, free: 89.38 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02353/2.972, allocations: 14.6 MB / 1.341 GB, free: 89.03 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002356/2.972, allocations: 138 kB / 1.341 GB, free: 89.03 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.298e-05/2.972, allocations: 10.44 kB / 1.341 GB, free: 89.03 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001224/2.973, allocations: 33.97 kB / 1.341 GB, free: 89.03 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0571/3.03, allocations: 30.06 MB / 1.37 GB, free: 87.84 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.424e-05/3.03, allocations: 3.141 kB / 1.37 GB, free: 87.84 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006764/3.037, allocations: 1.164 MB / 1.372 GB, free: 87.78 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005624/3.042, allocations: 1.71 MB / 1.373 GB, free: 87.76 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001365/3.044, allocations: 12.73 kB / 1.373 GB, free: 87.76 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01489/3.058, allocations: 11.69 MB / 1.385 GB, free: 82.55 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.568e-06/3.059, allocations: 7.188 kB / 1.385 GB, free: 82.55 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.03853/3.097, allocations: 23.94 MB / 1.408 GB, free: 74.27 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003196/3.1, allocations: 0.9106 MB / 1.409 GB, free: 73.62 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004736/3.105, allocations: 5.875 kB / 1.409 GB, free: 73.62 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008298/3.113, allocations: 265.8 kB / 1.409 GB, free: 73.62 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00248/3.116, allocations: 321.9 kB / 1.41 GB, free: 73.57 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00168/3.118, allocations: 170.9 kB / 1.41 GB, free: 73.53 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.01547/3.133, allocations: 5.778 MB / 1.415 GB, free: 69.46 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.02083/3.154, allocations: 2.859 MB / 1.418 GB, free: 66.61 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (gc1.actuatedRevolute_b.phi,gc1.actuatedRevolute_b.w,gc2.actuatedRevolute_b.phi,gc2.actuatedRevolute_b.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (600): * Single equations (assignments): 583 * Array equations: 15 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 32,(1,100.0%) 32} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001983/3.156, allocations: 184.9 kB / 1.418 GB, free: 66.43 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.02992/3.186, allocations: 18.44 MB / 1.436 GB, free: 49.68 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.013e-05/3.186, allocations: 0 / 1.436 GB, free: 49.68 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0128/3.199, allocations: 7.035 MB / 1.443 GB, free: 43.27 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008162/3.207, allocations: 0.913 MB / 1.444 GB, free: 42.5 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3044/3.512, allocations: 28.58 MB / 1.472 GB, free: 83.8 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0272/3.539, allocations: 11.06 MB / 1.483 GB, free: 82.71 MB / 0.5261 GB Notification: Performance of SimCode: time 7.22e-07/3.539, allocations: 6.719 kB / 1.483 GB, free: 82.71 MB / 0.5261 GB Notification: Performance of Templates: time 0.2261/3.765, allocations: 115.9 MB / 1.596 GB, free: 63.54 MB / 0.5261 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Parts/Rotor1D/GearConstraint2/GearConstraint2.csv","../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches