Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3.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.Rotor1D_3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|r1.phi|r1.w|r2.phi|r2.w|revolute.phi|revolute.w|rotor1D.phi|rotor1D.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3") translateModel(ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|r1.phi|r1.w|r2.phi|r2.w|revolute.phi|revolute.w|rotor1D.phi|rotor1D.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3") [: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.001217/0.001217, allocations: 194.9 kB / 8.528 MB, free: 1.758 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.114/1.114, allocations: 221.4 MB / 230.3 MB, free: 3.055 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.0009/0.0008999, allocations: 92.53 kB / 281.2 MB, free: 1.25 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2739/0.2739, allocations: 44.13 MB / 376.1 MB, free: 43.69 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 8.586e-06/8.617e-06, allocations: 4 kB / 444.1 MB, free: 11.65 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2575/0.2576, allocations: 61.89 MB / 0.4941 GB, free: 42.45 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1287/0.3862, allocations: 109.6 MB / 0.6012 GB, free: 7.629 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002236/0.3865, allocations: 83.95 kB / 0.6012 GB, free: 7.547 MB / 426.7 MB Notification: Performance of FrontEnd: time 0.4107/0.7972, allocations: 92.49 MB / 0.6916 GB, free: 98.85 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0001702/0.7974, allocations: 99.95 kB / 0.6917 GB, free: 98.85 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: 1765 * Number of variables: 1765 Notification: Performance of Generate backend data structure: time 0.01592/0.8134, allocations: 5.302 MB / 0.6968 GB, free: 97.03 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.524e-05/0.8134, allocations: 10.66 kB / 0.6968 GB, free: 97.03 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008855/0.8223, allocations: 1.892 MB / 0.6987 GB, free: 96.7 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01079/0.8331, allocations: 4.775 MB / 0.7034 GB, free: 96.09 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002293/0.8334, allocations: 164.1 kB / 0.7035 GB, free: 96.08 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002137/0.8355, allocations: 292.1 kB / 0.7038 GB, free: 96.08 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01285/0.8484, allocations: 7.71 MB / 0.7113 GB, free: 96.05 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0183/0.8667, allocations: 11.27 MB / 0.7223 GB, free: 93.26 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002189/0.8669, allocations: 66.14 kB / 0.7224 GB, free: 93.26 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001089/0.868, allocations: 31.5 kB / 0.7224 GB, free: 93.26 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001245/0.8693, allocations: 1.213 MB / 0.7236 GB, free: 93.25 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05091/0.9202, allocations: 52.9 MB / 0.7753 GB, free: 58.49 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004782/0.925, allocations: 4.376 MB / 0.7795 GB, free: 56.39 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003412/0.9285, allocations: 3.253 MB / 0.7827 GB, free: 55.06 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01449/0.943, allocations: 10.17 MB / 0.7926 GB, free: 49.78 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.998e-05/0.943, allocations: 56 kB / 0.7927 GB, free: 49.73 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=197): time 4.709e-06/0.943, allocations: 0 / 0.7927 GB, free: 49.73 MB / 0.4948 GB Notification: Performance of matching and sorting (n=228): time 0.04554/0.9886, allocations: 21.83 MB / 0.814 GB, free: 40 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.33e-05/0.9887, allocations: 158.1 kB / 0.8142 GB, free: 39.82 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004759/0.9934, allocations: 3.256 MB / 0.8174 GB, free: 36.97 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.000515/0.994, allocations: 25.7 kB / 0.8174 GB, free: 36.94 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001527/0.9955, allocations: 3.247 MB / 0.8205 GB, free: 34.02 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001195/0.9967, allocations: 0.8435 MB / 0.8214 GB, free: 33.27 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005332/0.9973, allocations: 4 kB / 0.8214 GB, free: 33.26 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0003876/0.9977, allocations: 0.5856 MB / 0.8219 GB, free: 32.75 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003727/1.001, allocations: 2.798 MB / 0.8247 GB, free: 30.27 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005058/1.006, allocations: 6.704 MB / 0.8312 GB, free: 22.03 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005437/1.012, allocations: 4.297 MB / 0.8354 GB, free: 18.37 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.304e-05/1.012, allocations: 40 kB / 0.8355 GB, free: 18.33 MB / 0.4948 GB Notification: Performance of matching and sorting (n=874) (initialization): time 0.01635/1.028, allocations: 9.525 MB / 0.8448 GB, free: 10.17 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 2.246e-05/1.028, allocations: 15.53 kB / 0.8448 GB, free: 10.16 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003405/1.029, allocations: 140 kB / 0.8449 GB, free: 10.02 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003312/1.032, allocations: 1.069 MB / 0.846 GB, free: 9.195 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00679/1.039, allocations: 1.623 MB / 0.8475 GB, free: 7.812 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006519/1.045, allocations: 5.518 MB / 0.8529 GB, free: 2.895 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005914/1.051, allocations: 234.1 kB / 0.8532 GB, free: 2.699 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001501/1.053, allocations: 420.8 kB / 0.8536 GB, free: 2.312 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 639 * Number of states: 0 () * Number of discrete variables: 44 (fixed.color[3],fixed.color[2],fixed.color[1],r2.cylinderColor[3],r2.cylinderColor[2],r2.cylinderColor[1],r1.cylinderColor[3],r1.cylinderColor[2],r1.cylinderColor[1],rotor1D.cylinderColor[3],rotor1D.cylinderColor[2],rotor1D.cylinderColor[1],torque.connectionLineColor[3],torque.connectionLineColor[2],torque.connectionLineColor[1],torque.torqueArrow.arrowLine.twoHeadedArrow,torque.torqueArrow.headAtOrigin,torque.torqueColor[3],torque.torqueColor[2],torque.torqueColor[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],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],bodyCylinder.frameTranslation.color[3],bodyCylinder.frameTranslation.color[2],bodyCylinder.frameTranslation.color[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (835): * Single equations (assignments): 831 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,77.8%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001854/1.055, allocations: 465.3 kB / 0.854 GB, free: 1.859 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001023/1.056, allocations: 355.4 kB / 0.8543 GB, free: 1.508 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01172/1.068, allocations: 5.248 MB / 0.8595 GB, free: 13.82 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.681e-05/1.068, allocations: 20.61 kB / 0.8595 GB, free: 13.8 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.973e-05/1.068, allocations: 4 kB / 0.8595 GB, free: 13.8 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.377e-05/1.068, allocations: 14.03 kB / 0.8595 GB, free: 13.8 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02385/1.092, allocations: 10.27 MB / 0.8695 GB, free: 4.312 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.936e-05/1.092, allocations: 0 / 0.8695 GB, free: 4.312 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002851/1.095, allocations: 427.4 kB / 0.8699 GB, free: 3.895 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002789/1.097, allocations: 0.8632 MB / 0.8708 GB, free: 3.027 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000448/1.098, allocations: 15.98 kB / 0.8708 GB, free: 3.012 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007066/1.105, allocations: 5.246 MB / 0.8759 GB, free: 13.66 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.666e-06/1.105, allocations: 7.984 kB / 0.8759 GB, free: 13.65 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0149/1.12, allocations: 9.112 MB / 0.8848 GB, free: 4.43 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002445/1.122, allocations: 0.8011 MB / 0.8856 GB, free: 3.602 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001166/1.124, allocations: 7.984 kB / 0.8856 GB, free: 3.594 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002579/1.126, allocations: 102.4 kB / 0.8857 GB, free: 3.5 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00052/1.127, allocations: 117.7 kB / 0.8858 GB, free: 3.387 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003117/1.127, allocations: 60 kB / 0.8859 GB, free: 3.328 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.004731/1.132, allocations: 2.174 MB / 0.888 GB, free: 1.172 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.007361/1.139, allocations: 1.031 MB / 0.889 GB, free: 144 kB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 8 (revolute.phi,revolute.w,rotor1D.phi,rotor1D.w,r1.phi,r1.w,r2.phi,r2.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (200): * Single equations (assignments): 196 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,77.8%) 13} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.1551/1.294, allocations: 155.8 kB / 0.8892 GB, free: 174.1 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.00897/1.303, allocations: 6.614 MB / 0.8956 GB, free: 174 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 7.143e-06/1.303, allocations: 1.625 kB / 0.8956 GB, free: 174 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.00304/1.306, allocations: 2.504 MB / 0.8981 GB, free: 173.9 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001888/1.308, allocations: 341.6 kB / 0.8984 GB, free: 173.8 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01609/1.324, allocations: 9.587 MB / 0.9077 GB, free: 172.1 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005146/1.33, allocations: 4.073 MB / 0.9117 GB, free: 171.3 MB / 0.5261 GB Notification: Performance of SimCode: time 6.72e-07/1.33, allocations: 0 / 0.9117 GB, free: 171.3 MB / 0.5261 GB Notification: Performance of Templates: time 0.07633/1.406, allocations: 46.06 MB / 0.9567 GB, free: 169.3 MB / 0.5261 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Parts/Rotor1D/Rotor1D_3/Rotor1D_3.csv","../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches