Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.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.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_3.2.3_cpp_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_3.2.3_cpp_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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00168/0.001684, allocations: 172.5 kB / 8.147 MB, free: 2.223 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.653/1.653, allocations: 205.2 MB / 213.8 MB, free: 13.94 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.001202/0.001202, allocations: 81.78 kB / 261.8 MB, free: 13.64 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.2576/0.2576, allocations: 43.5 MB / 353.2 MB, free: 2.039 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 1.009e-05/1.029e-05, allocations: 0 / 417.7 MB, free: 40.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2775/0.2775, allocations: 58.84 MB / 476.5 MB, free: 5.082 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.209/0.4866, allocations: 108.7 MB / 0.5716 GB, free: 6.32 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003782/0.487, allocations: 83.95 kB / 0.5716 GB, free: 6.238 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.88/2.367, allocations: 276.8 MB / 0.8419 GB, free: 50.5 MB / 0.4949 GB Notification: Performance of Transformations before backend: time 0.0009265/2.368, allocations: 282.5 kB / 0.8422 GB, free: 50.5 MB / 0.4949 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5460 * Number of variables: 5460 Notification: Performance of Generate backend data structure: time 0.05301/2.421, allocations: 13.09 MB / 0.855 GB, free: 46.53 MB / 0.4949 GB Notification: Performance of prepare preOptimizeDAE: time 4.713e-05/2.421, allocations: 8.812 kB / 0.855 GB, free: 46.53 MB / 0.4949 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1296/2.551, allocations: 16.86 MB / 0.8714 GB, free: 45.52 MB / 0.4949 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05442/2.605, allocations: 15.04 MB / 0.8861 GB, free: 44 MB / 0.4949 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001052/2.606, allocations: 479.7 kB / 0.8866 GB, free: 44 MB / 0.4949 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.008582/2.615, allocations: 0.8573 MB / 0.8874 GB, free: 43.98 MB / 0.4949 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.06275/2.678, allocations: 24.85 MB / 0.9117 GB, free: 43.91 MB / 0.4949 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0989/2.777, allocations: 33.63 MB / 0.9445 GB, free: 36.66 MB / 0.4949 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.001086/2.778, allocations: 127.1 kB / 0.9446 GB, free: 36.64 MB / 0.4949 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.008004/2.786, allocations: 59.31 kB / 0.9447 GB, free: 36.64 MB / 0.4949 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007827/2.794, allocations: 3.966 MB / 0.9486 GB, free: 35.99 MB / 0.4949 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4938/3.288, allocations: 138.1 MB / 1.083 GB, free: 74.68 MB / 0.5418 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02369/3.311, allocations: 11.37 MB / 1.095 GB, free: 74.02 MB / 0.5418 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0216/3.333, allocations: 9.978 MB / 1.104 GB, free: 73.96 MB / 0.5418 GB Notification: Performance of preOpt evalFunc (simulation): time 0.09781/3.431, allocations: 35.76 MB / 1.139 GB, free: 69.41 MB / 0.5418 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001196/3.431, allocations: 102.7 kB / 1.139 GB, free: 69.36 MB / 0.5418 GB Notification: Performance of pre-optimization done (n=747): time 1.202e-05/3.431, allocations: 0 / 1.139 GB, free: 69.36 MB / 0.5418 GB Notification: Performance of matching and sorting (n=819): time 0.2821/3.713, allocations: 69.18 MB / 1.207 GB, free: 44.83 MB / 0.5418 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001211/3.713, allocations: 312.9 kB / 1.207 GB, free: 44.47 MB / 0.5418 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02519/3.739, allocations: 8.834 MB / 1.216 GB, free: 36.98 MB / 0.5418 GB Notification: Performance of collectPreVariables (initialization): time 0.001845/3.741, allocations: 27.17 kB / 1.216 GB, free: 36.95 MB / 0.5418 GB Notification: Performance of collectInitialEqns (initialization): time 0.006309/3.747, allocations: 9.005 MB / 1.225 GB, free: 29.02 MB / 0.5418 GB Notification: Performance of collectInitialBindings (initialization): time 0.004939/3.752, allocations: 2.884 MB / 1.227 GB, free: 26.41 MB / 0.5418 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003275/3.755, allocations: 2.344 kB / 1.227 GB, free: 26.41 MB / 0.5418 GB Notification: Performance of setup shared object (initialization): time 0.002431/3.758, allocations: 1.148 MB / 1.229 GB, free: 25.49 MB / 0.5418 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02055/3.778, allocations: 8.122 MB / 1.236 GB, free: 18.17 MB / 0.5418 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2576/4.036, allocations: 18.35 MB / 1.254 GB, free: 108.9 MB / 0.5418 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02928/4.065, allocations: 12.39 MB / 1.267 GB, free: 108.8 MB / 0.5418 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0004203/4.066, allocations: 103.2 kB / 1.267 GB, free: 108.8 MB / 0.5418 GB Notification: Performance of matching and sorting (n=2530) (initialization): time 0.07953/4.145, allocations: 26 MB / 1.292 GB, free: 107.6 MB / 0.5418 GB Notification: Performance of prepare postOptimizeDAE: time 2.358e-05/4.145, allocations: 3.312 kB / 1.292 GB, free: 107.6 MB / 0.5418 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0007147/4.146, allocations: 361.5 kB / 1.292 GB, free: 107.6 MB / 0.5418 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01175/4.158, allocations: 2.219 MB / 1.295 GB, free: 107.5 MB / 0.5418 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.03176/4.19, allocations: 4.393 MB / 1.299 GB, free: 107.2 MB / 0.5418 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0317/4.221, allocations: 13.29 MB / 1.312 GB, free: 104.4 MB / 0.5418 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01904/4.241, allocations: 0.5995 MB / 1.312 GB, free: 104.4 MB / 0.5418 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00508/4.246, allocations: 1.065 MB / 1.313 GB, free: 104.4 MB / 0.5418 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1643 * Number of states: 0 () * Number of discrete variables: 93 (torque2.connectionLineColor[3],torque2.connectionLineColor[2],torque2.connectionLineColor[1],torque2.torqueColor[3],torque2.torqueColor[2],torque2.torqueColor[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],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 (2334): * Single equations (assignments): 2317 * 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%) 38,(1,100.0%) 38} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.008099/4.254, allocations: 0.9387 MB / 1.314 GB, free: 104 MB / 0.5418 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004152/4.258, allocations: 0.9909 MB / 1.315 GB, free: 104 MB / 0.5418 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05239/4.31, allocations: 15.34 MB / 1.33 GB, free: 103.7 MB / 0.5418 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0004314/4.311, allocations: 141.9 kB / 1.33 GB, free: 103.7 MB / 0.5418 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.629e-05/4.311, allocations: 19.47 kB / 1.33 GB, free: 103.7 MB / 0.5418 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001843/4.311, allocations: 35.72 kB / 1.33 GB, free: 103.7 MB / 0.5418 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1014/4.413, allocations: 31.39 MB / 1.361 GB, free: 97.5 MB / 0.5418 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001014/4.413, allocations: 1.094 kB / 1.361 GB, free: 97.5 MB / 0.5418 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01489/4.428, allocations: 1.25 MB / 1.362 GB, free: 97.4 MB / 0.5418 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01168/4.439, allocations: 1.707 MB / 1.364 GB, free: 97.04 MB / 0.5418 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002022/4.441, allocations: 21.91 kB / 1.364 GB, free: 97.04 MB / 0.5418 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02801/4.47, allocations: 11.69 MB / 1.375 GB, free: 91.03 MB / 0.5418 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.502e-06/4.47, allocations: 3.719 kB / 1.375 GB, free: 91.03 MB / 0.5418 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.06343/4.533, allocations: 25.14 MB / 1.4 GB, free: 75.14 MB / 0.5418 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00887/4.542, allocations: 2.219 MB / 1.402 GB, free: 73.12 MB / 0.5418 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004633/4.547, allocations: 4 kB / 1.402 GB, free: 73.12 MB / 0.5418 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01154/4.558, allocations: 287.5 kB / 1.402 GB, free: 72.94 MB / 0.5418 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002499/4.561, allocations: 342.6 kB / 1.403 GB, free: 72.74 MB / 0.5418 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001525/4.562, allocations: 179.4 kB / 1.403 GB, free: 72.57 MB / 0.5418 GB Notification: Performance of sort global known variables: time 0.01613/4.578, allocations: 5.927 MB / 1.409 GB, free: 67.46 MB / 0.5418 GB Notification: Performance of remove unused functions: time 0.02251/4.601, allocations: 2.957 MB / 1.412 GB, free: 64.51 MB / 0.5418 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 (645): * Single equations (assignments): 628 * 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.002263/4.603, allocations: 203.7 kB / 1.412 GB, free: 64.33 MB / 0.5418 GB Notification: Performance of simCode: created initialization part: time 0.04555/4.649, allocations: 19.23 MB / 1.431 GB, free: 46.79 MB / 0.5418 GB Notification: Performance of simCode: created event and clocks part: time 8.286e-06/4.649, allocations: 0 / 1.431 GB, free: 46.79 MB / 0.5418 GB Notification: Performance of simCode: created simulation system equations: time 0.2482/4.897, allocations: 9.053 MB / 1.439 GB, free: 111.8 MB / 0.5418 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009433/4.907, allocations: 0.901 MB / 1.44 GB, free: 111.8 MB / 0.5418 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1058/5.012, allocations: 31.21 MB / 1.471 GB, free: 107 MB / 0.5418 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.04194/5.054, allocations: 11.45 MB / 1.482 GB, free: 105.9 MB / 0.5418 GB Notification: Performance of SimCode: time 1.783e-06/5.055, allocations: 0 / 1.482 GB, free: 105.9 MB / 0.5418 GB Notification: Performance of Templates: time 0.8108/5.865, allocations: 319 MB / 1.793 GB, free: 16.04 MB / 0.5418 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2 --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Parts/Rotor1D/GearConstraint2/GearConstraint2.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches