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") [: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.001009/0.001009, allocations: 175.3 kB / 8.516 MB, free: 1.855 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.24/1.24, allocations: 221.4 MB / 230.3 MB, free: 7.73 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.0009025/0.0009025, allocations: 92.61 kB / 281.2 MB, free: 5.461 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.155/0.155, allocations: 44.15 MB / 376.1 MB, free: 3.227 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 6.061e-06/6.081e-06, allocations: 0 / 444 MB, free: 15.61 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09877/0.09879, allocations: 61.91 MB / 0.4941 GB, free: 1.602 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2871/0.386, allocations: 108.9 MB / 0.6004 GB, free: 3.793 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002732/0.3863, allocations: 88.58 kB / 0.6005 GB, free: 3.707 MB / 410.7 MB Notification: Performance of FrontEnd: time 0.198/0.5843, allocations: 79.34 MB / 0.678 GB, free: 3.797 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0002056/0.5845, allocations: 76 kB / 0.678 GB, free: 3.723 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.01485/0.5994, allocations: 4.274 MB / 0.6822 GB, free: 15.39 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.9e-05/0.5995, allocations: 11.97 kB / 0.6822 GB, free: 15.38 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008832/0.6083, allocations: 1.784 MB / 0.684 GB, free: 13.58 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01104/0.6194, allocations: 4.336 MB / 0.6882 GB, free: 9.18 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001678/0.6196, allocations: 132 kB / 0.6883 GB, free: 9.051 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001499/0.6211, allocations: 239.9 kB / 0.6886 GB, free: 8.816 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01048/0.6316, allocations: 6.263 MB / 0.6947 GB, free: 2.547 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1687/0.8004, allocations: 9.379 MB / 0.7038 GB, free: 172.2 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000128/0.8005, allocations: 58.12 kB / 0.7039 GB, free: 172.2 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004818/0.801, allocations: 27.75 kB / 0.7039 GB, free: 172.2 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001076/0.8021, allocations: 1.009 MB / 0.7049 GB, free: 172.2 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03598/0.8381, allocations: 44.74 MB / 0.7486 GB, free: 145.2 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00319/0.8413, allocations: 3.157 MB / 0.7517 GB, free: 144.2 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001602/0.8429, allocations: 1.766 MB / 0.7534 GB, free: 143.5 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006849/0.8498, allocations: 5.888 MB / 0.7591 GB, free: 140 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.304e-05/0.8498, allocations: 48.94 kB / 0.7592 GB, free: 140 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=121): time 3.076e-06/0.8499, allocations: 0 / 0.7592 GB, free: 140 MB / 0.4948 GB Notification: Performance of matching and sorting (n=128): time 0.0166/0.8665, allocations: 10.48 MB / 0.7694 GB, free: 135.4 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.293e-05/0.8665, allocations: 139 kB / 0.7696 GB, free: 135.2 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003371/0.8699, allocations: 3.038 MB / 0.7725 GB, free: 134.1 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0001444/0.8701, allocations: 25.7 kB / 0.7726 GB, free: 134.1 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001069/0.8711, allocations: 2.884 MB / 0.7754 GB, free: 131.9 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003653/0.8715, allocations: 0.5114 MB / 0.7759 GB, free: 131.6 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001734/0.8717, allocations: 3.562 kB / 0.7759 GB, free: 131.6 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0002362/0.8719, allocations: 0.5477 MB / 0.7764 GB, free: 131.2 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001985/0.8739, allocations: 1.732 MB / 0.7781 GB, free: 130.6 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003003/0.8769, allocations: 5.408 MB / 0.7834 GB, free: 125 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002983/0.8799, allocations: 3.054 MB / 0.7864 GB, free: 123.9 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.52e-05/0.88, allocations: 37.69 kB / 0.7864 GB, free: 123.9 MB / 0.4948 GB Notification: Performance of matching and sorting (n=740) (initialization): time 0.009899/0.8899, allocations: 6.839 MB / 0.7931 GB, free: 121.7 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.553e-05/0.8899, allocations: 6.375 kB / 0.7931 GB, free: 121.7 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001311/0.8901, allocations: 133.2 kB / 0.7932 GB, free: 121.7 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002306/0.8924, allocations: 0.846 MB / 0.794 GB, free: 121.6 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003689/0.8961, allocations: 1.311 MB / 0.7953 GB, free: 121.4 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004742/0.9008, allocations: 4.491 MB / 0.7997 GB, free: 117.9 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00344/0.9043, allocations: 173.5 kB / 0.7999 GB, free: 117.7 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004099/0.9047, allocations: 367.5 kB / 0.8002 GB, free: 117.4 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 608 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (701): * Single equations (assignments): 697 * 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.0005518/0.9053, allocations: 426.4 kB / 0.8006 GB, free: 116.9 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003818/0.9056, allocations: 299.2 kB / 0.8009 GB, free: 116.6 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003865/0.9095, allocations: 2.352 MB / 0.8032 GB, free: 114.8 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.754e-05/0.9096, allocations: 12 kB / 0.8032 GB, free: 114.8 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.975e-06/0.9096, allocations: 4 kB / 0.8032 GB, free: 114.8 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.056e-05/0.9096, allocations: 9.953 kB / 0.8032 GB, free: 114.8 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008977/0.9186, allocations: 5.59 MB / 0.8087 GB, free: 110.3 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.454e-06/0.9186, allocations: 4 kB / 0.8087 GB, free: 110.3 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001004/0.9196, allocations: 192.2 kB / 0.8089 GB, free: 110.2 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001864/0.9215, allocations: 0.6391 MB / 0.8095 GB, free: 109.7 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001014/0.9216, allocations: 8 kB / 0.8095 GB, free: 109.7 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004092/0.9257, allocations: 4.107 MB / 0.8135 GB, free: 106 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.599e-06/0.9257, allocations: 4 kB / 0.8135 GB, free: 106 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005431/0.9312, allocations: 4.518 MB / 0.8179 GB, free: 102 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006278/0.9318, allocations: 347.5 kB / 0.8183 GB, free: 101.7 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003613/0.9322, allocations: 0 / 0.8183 GB, free: 101.7 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001047/0.9332, allocations: 46.34 kB / 0.8183 GB, free: 101.7 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001714/0.9334, allocations: 63.89 kB / 0.8184 GB, free: 101.6 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.418e-05/0.9335, allocations: 39.47 kB / 0.8184 GB, free: 101.6 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.002427/0.9359, allocations: 2.029 MB / 0.8204 GB, free: 99.83 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.003869/0.9398, allocations: 0.7629 MB / 0.8211 GB, free: 99.07 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (96): * Single equations (assignments): 92 * 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.0003341/0.9402, allocations: 149.7 kB / 0.8213 GB, free: 98.93 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.004672/0.9449, allocations: 4.089 MB / 0.8253 GB, free: 95.24 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.9449, allocations: 3.938 kB / 0.8253 GB, free: 95.24 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.001165/0.946, allocations: 1.142 MB / 0.8264 GB, free: 94.2 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001356/0.9474, allocations: 325 kB / 0.8267 GB, free: 93.93 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01033/0.9577, allocations: 6.743 MB / 0.8333 GB, free: 87.89 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003246/0.961, allocations: 3.423 MB / 0.8366 GB, free: 85.23 MB / 0.4948 GB Notification: Performance of SimCode: time 1.022e-06/0.961, allocations: 3.844 kB / 0.8366 GB, free: 85.23 MB / 0.4948 GB Notification: Performance of Templates: time 0.04988/1.011, allocations: 30.33 MB / 0.8663 GB, free: 56.93 MB / 0.4948 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