Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.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_2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w|rotor1D.phi|rotor1D.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2") translateModel(ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w|rotor1D.phi|rotor1D.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009871/0.0009873, allocations: 177.1 kB / 17.06 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.336/1.336, allocations: 223.2 MB / 241 MB, free: 10.13 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009875/0.0009877, allocations: 87.98 kB / 292.1 MB, free: 10.69 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.3247/0.3247, allocations: 44.22 MB / 387.5 MB, free: 38.47 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003682/0.0003682, allocations: 12 kB / 459.9 MB, free: 1.516 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3183/0.3187, allocations: 61.89 MB / 0.5096 GB, free: 37.73 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1305/0.4491, allocations: 109.7 MB / 0.6167 GB, free: 1.406 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002348/0.4494, allocations: 87.94 kB / 0.6167 GB, free: 1.32 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4233/0.8728, allocations: 81.96 MB / 0.6968 GB, free: 96.26 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.184e-06/0.8728, allocations: 0 / 0.6968 GB, free: 96.26 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0001459/0.873, allocations: 78.44 kB / 0.6969 GB, free: 96.26 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1442 * Number of variables: 1442 Notification: Performance of Generate backend data structure: time 0.01444/0.8874, allocations: 4.59 MB / 0.7013 GB, free: 94.46 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.144e-05/0.8875, allocations: 9.375 kB / 0.7013 GB, free: 94.46 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009871/0.8973, allocations: 2.178 MB / 0.7035 GB, free: 94.19 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01131/0.9087, allocations: 4.298 MB / 0.7077 GB, free: 93.61 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002793/0.909, allocations: 306.6 kB / 0.708 GB, free: 93.59 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001279/0.9103, allocations: 405.2 kB / 0.7084 GB, free: 93.59 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02255/0.9328, allocations: 10.31 MB / 0.7184 GB, free: 90.39 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001888/0.9331, allocations: 62.69 kB / 0.7185 GB, free: 90.35 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007494/0.9338, allocations: 197.5 kB / 0.7187 GB, free: 90.24 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001709/0.9356, allocations: 0.9457 MB / 0.7196 GB, free: 90.07 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01898/0.9546, allocations: 8.651 MB / 0.728 GB, free: 87.32 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04257/0.9972, allocations: 45.89 MB / 0.7729 GB, free: 52.61 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00948/1.007, allocations: 3.4 MB / 0.7762 GB, free: 51.25 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006524/1.013, allocations: 4.443 MB / 0.7805 GB, free: 48.55 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.719e-05/1.013, allocations: 50.41 kB / 0.7806 GB, free: 48.5 MB / 490.7 MB Notification: Performance of pre-optimization done (n=121): time 4.117e-06/1.013, allocations: 0 / 0.7806 GB, free: 48.5 MB / 490.7 MB Notification: Performance of matching and sorting (n=127): time 0.02383/1.037, allocations: 11.31 MB / 0.7916 GB, free: 43.68 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.86e-05/1.037, allocations: 140.1 kB / 0.7917 GB, free: 43.52 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005381/1.043, allocations: 3.554 MB / 0.7952 GB, free: 41.79 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003036/1.043, allocations: 49.64 kB / 0.7953 GB, free: 41.73 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001705/1.045, allocations: 3.037 MB / 0.7982 GB, free: 39 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005357/1.045, allocations: 0.5241 MB / 0.7987 GB, free: 38.55 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001878/1.046, allocations: 108 kB / 0.7988 GB, free: 38.45 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002418/1.046, allocations: 0.5328 MB / 0.7994 GB, free: 37.97 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002197/1.048, allocations: 1.786 MB / 0.8011 GB, free: 36.48 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003784/1.052, allocations: 5.361 MB / 0.8063 GB, free: 29.7 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003465/1.055, allocations: 3.019 MB / 0.8093 GB, free: 27 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.909e-05/1.055, allocations: 40 kB / 0.8093 GB, free: 26.96 MB / 490.7 MB Notification: Performance of matching and sorting (n=715) (initialization): time 0.01189/1.067, allocations: 7.602 MB / 0.8167 GB, free: 20.41 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.773e-05/1.067, allocations: 60 kB / 0.8168 GB, free: 20.35 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.374e-05/1.067, allocations: 136.1 kB / 0.8169 GB, free: 20.22 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002114/1.07, allocations: 0.9071 MB / 0.8178 GB, free: 19.56 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003427/1.073, allocations: 1.275 MB / 0.8191 GB, free: 18.45 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005003/1.078, allocations: 4.871 MB / 0.8238 GB, free: 13.69 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004893/1.083, allocations: 307.7 kB / 0.8241 GB, free: 13.39 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001018/1.084, allocations: 347.9 kB / 0.8244 GB, free: 13.05 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 584 * Number of states: 0 () * Number of discrete variables: 38 (rotor1D.cylinderColor[3],rotor1D.cylinderColor[2],rotor1D.cylinderColor[1],fixed.color[3],fixed.color[2],fixed.color[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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (676): * Single equations (assignments): 672 * 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.004785/1.089, allocations: 1.994 MB / 0.8264 GB, free: 11.04 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008882/1.09, allocations: 327.7 kB / 0.8267 GB, free: 10.72 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006136/1.096, allocations: 2.517 MB / 0.8292 GB, free: 8.184 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.223e-05/1.096, allocations: 19.75 kB / 0.8292 GB, free: 8.168 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.2e-05/1.096, allocations: 4 kB / 0.8292 GB, free: 8.164 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.32e-05/1.096, allocations: 3.984 kB / 0.8292 GB, free: 8.16 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01562/1.112, allocations: 6.475 MB / 0.8355 GB, free: 1.652 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.243e-05/1.112, allocations: 0 / 0.8355 GB, free: 1.652 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001419/1.113, allocations: 199.7 kB / 0.8357 GB, free: 1.457 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002728/1.116, allocations: 0.7035 MB / 0.8364 GB, free: 0.75 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000251/1.116, allocations: 20 kB / 0.8364 GB, free: 0.7305 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00807/1.124, allocations: 4.442 MB / 0.8408 GB, free: 12.16 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.958e-06/1.124, allocations: 0 / 0.8408 GB, free: 12.16 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01079/1.135, allocations: 4.653 MB / 0.8453 GB, free: 7.473 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001714/1.137, allocations: 384.7 kB / 0.8457 GB, free: 7.074 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004746/1.137, allocations: 27.98 kB / 0.8457 GB, free: 7.047 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00166/1.139, allocations: 71.91 kB / 0.8458 GB, free: 6.977 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003043/1.139, allocations: 76.48 kB / 0.8458 GB, free: 6.898 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001442/1.139, allocations: 39.98 kB / 0.8459 GB, free: 6.859 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.005924/1.145, allocations: 2.485 MB / 0.8483 GB, free: 4.395 MB / 0.4948 GB Notification: Performance of sort global known variables: time 4.31e-07/1.145, allocations: 4 kB / 0.8483 GB, free: 4.391 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.007426/1.153, allocations: 0.9018 MB / 0.8492 GB, free: 3.492 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (revolute.phi,revolute.w,rotor1D.phi,rotor1D.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (95): * Single equations (assignments): 91 * 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 {(1,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00054/1.153, allocations: 153.2 kB / 0.8493 GB, free: 3.34 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.009587/1.163, allocations: 4.317 MB / 0.8535 GB, free: 15.04 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 6.663e-06/1.163, allocations: 0 / 0.8535 GB, free: 15.04 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.002436/1.165, allocations: 1.198 MB / 0.8547 GB, free: 13.83 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003116/1.169, allocations: 394.3 kB / 0.8551 GB, free: 13.46 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02318/1.192, allocations: 9.753 MB / 0.8646 GB, free: 3.688 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005066/1.197, allocations: 3.182 MB / 0.8677 GB, free: 500 kB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.0067/1.204, allocations: 1.735 MB / 0.8694 GB, free: 14.75 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009393/1.205, allocations: 219.3 kB / 0.8696 GB, free: 14.54 MB / 0.5261 GB Notification: Performance of SimCode: time 1.603e-06/1.205, allocations: 4 kB / 0.8696 GB, free: 14.54 MB / 0.5261 GB Notification: Performance of Templates: time 0.3072/1.512, allocations: 31.13 MB / 0.9 GB, free: 121.6 MB / 0.5261 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Parts/Rotor1D/Rotor1D_2/Rotor1D_2.csv","../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches