Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.RevoluteInitialization.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.Joints.RevoluteInitialization,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rev.phi|rev.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.RevoluteInitialization") translateModel(ModelicaTest.MultiBody.Joints.RevoluteInitialization,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rev.phi|rev.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.RevoluteInitialization") [: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.0009841/0.0009841, allocations: 183 kB / 8.519 MB, free: 1.844 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.193/1.193, allocations: 221.4 MB / 230.3 MB, free: 7.684 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.0009044/0.0009042, allocations: 90.47 kB / 281.2 MB, free: 5.5 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.1742/0.1742, allocations: 44.15 MB / 376.1 MB, free: 3.207 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 6.973e-06/6.993e-06, allocations: 224 / 444 MB, free: 15.57 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1032/0.1032, allocations: 61.9 MB / 0.4941 GB, free: 1.594 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3207/0.424, allocations: 108.7 MB / 0.6003 GB, free: 3.992 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002598/0.4243, allocations: 79.95 kB / 0.6003 GB, free: 3.914 MB / 410.7 MB Notification: Performance of FrontEnd: time 0.1883/0.6126, allocations: 71.8 MB / 0.6705 GB, free: 11.57 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0001747/0.6128, allocations: 64 kB / 0.6705 GB, free: 11.51 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: 1275 * Number of variables: 1275 Notification: Performance of Generate backend data structure: time 0.008891/0.6217, allocations: 3.369 MB / 0.6738 GB, free: 8.082 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.47e-05/0.6218, allocations: 13.47 kB / 0.6738 GB, free: 8.07 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008341/0.6302, allocations: 1.699 MB / 0.6755 GB, free: 6.363 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01016/0.6403, allocations: 3.983 MB / 0.6794 GB, free: 2.316 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001095/0.6405, allocations: 112 kB / 0.6795 GB, free: 2.207 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007655/0.6413, allocations: 204 kB / 0.6797 GB, free: 2.008 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008713/0.65, allocations: 5.272 MB / 0.6848 GB, free: 12.73 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01093/0.6609, allocations: 8.203 MB / 0.6928 GB, free: 3.539 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001083/0.6611, allocations: 51.56 kB / 0.6929 GB, free: 3.488 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000382/0.6615, allocations: 28 kB / 0.6929 GB, free: 3.461 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001131/0.6626, allocations: 0.9499 MB / 0.6938 GB, free: 2.512 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2271/0.8897, allocations: 41.92 MB / 0.7348 GB, free: 168.7 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002692/0.8925, allocations: 2.568 MB / 0.7373 GB, free: 168 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001514/0.894, allocations: 1.551 MB / 0.7388 GB, free: 168 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.007157/0.9012, allocations: 5.511 MB / 0.7442 GB, free: 165.9 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.115e-05/0.9012, allocations: 44.5 kB / 0.7442 GB, free: 165.9 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=121): time 3.547e-06/0.9012, allocations: 0 / 0.7442 GB, free: 165.9 MB / 0.5105 GB Notification: Performance of matching and sorting (n=130): time 0.01944/0.9207, allocations: 10.8 MB / 0.7548 GB, free: 163.4 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.271e-05/0.9208, allocations: 164.1 kB / 0.7549 GB, free: 163.2 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003664/0.9244, allocations: 2.844 MB / 0.7577 GB, free: 162.9 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0001597/0.9246, allocations: 25.7 kB / 0.7577 GB, free: 162.9 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.001364/0.926, allocations: 2.64 MB / 0.7603 GB, free: 161.4 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004255/0.9264, allocations: 0.5141 MB / 0.7608 GB, free: 161.1 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001634/0.9266, allocations: 0 / 0.7608 GB, free: 161.1 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0003054/0.9269, allocations: 0.5336 MB / 0.7613 GB, free: 160.8 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00195/0.9289, allocations: 1.639 MB / 0.7629 GB, free: 160.3 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003222/0.9321, allocations: 5.166 MB / 0.768 GB, free: 154.9 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003277/0.9354, allocations: 2.923 MB / 0.7708 GB, free: 154.1 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.33e-05/0.9355, allocations: 37.81 kB / 0.7709 GB, free: 154.1 MB / 0.5105 GB Notification: Performance of matching and sorting (n=719) (initialization): time 0.008887/0.9444, allocations: 6.052 MB / 0.7768 GB, free: 152.4 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 2.041e-05/0.9444, allocations: 6.188 kB / 0.7768 GB, free: 152.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001154/0.9446, allocations: 126.8 kB / 0.7769 GB, free: 152.4 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005656/0.9451, allocations: 344.8 kB / 0.7772 GB, free: 152.3 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003866/0.949, allocations: 1.296 MB / 0.7785 GB, free: 152.2 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001933/0.9509, allocations: 2.195 MB / 0.7806 GB, free: 150.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003943/0.9549, allocations: 171.2 kB / 0.7808 GB, free: 150.6 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006853/0.9556, allocations: 351.7 kB / 0.7811 GB, free: 150.5 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 581 * Number of states: 0 () * Number of discrete variables: 33 (spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],fixed.color[3],fixed.color[2],fixed.color[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[1],body.frameTranslation.color[3],body.frameTranslation.color[2],body.frameTranslation.color[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.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]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (691): * Single equations (assignments): 687 * 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%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007025/0.9563, allocations: 413 kB / 0.7815 GB, free: 150.2 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005111/0.9568, allocations: 284 kB / 0.7818 GB, free: 150 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00395/0.9608, allocations: 2.234 MB / 0.784 GB, free: 149.3 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.419e-05/0.9608, allocations: 19.02 kB / 0.784 GB, free: 149.3 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.216e-05/0.9609, allocations: 3.906 kB / 0.784 GB, free: 149.3 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.225e-05/0.9609, allocations: 6.984 kB / 0.784 GB, free: 149.3 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01063/0.9715, allocations: 5.287 MB / 0.7892 GB, free: 147.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.067e-05/0.9716, allocations: 1 kB / 0.7892 GB, free: 147.5 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009689/0.9726, allocations: 176.7 kB / 0.7893 GB, free: 147.4 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002127/0.9747, allocations: 0.6458 MB / 0.79 GB, free: 147.3 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001236/0.9748, allocations: 4.219 kB / 0.79 GB, free: 147.3 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005093/0.9799, allocations: 4.207 MB / 0.7941 GB, free: 144.9 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.849e-06/0.98, allocations: 3.938 kB / 0.7941 GB, free: 144.9 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005872/0.9858, allocations: 4.377 MB / 0.7984 GB, free: 141.1 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007789/0.9866, allocations: 335.9 kB / 0.7987 GB, free: 140.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003528/0.987, allocations: 0 / 0.7987 GB, free: 140.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001051/0.9881, allocations: 39.17 kB / 0.7987 GB, free: 140.7 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001439/0.9882, allocations: 51.67 kB / 0.7988 GB, free: 140.7 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.661e-05/0.9883, allocations: 44 kB / 0.7988 GB, free: 140.6 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.002588/0.9909, allocations: 1.892 MB / 0.8007 GB, free: 139 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.00434/0.9953, allocations: 0.7084 MB / 0.8013 GB, free: 138.3 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (rev.phi,rev.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (97): * Single equations (assignments): 93 * 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%) 11} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004216/0.9957, allocations: 149.6 kB / 0.8015 GB, free: 138.1 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.005039/1.001, allocations: 3.876 MB / 0.8053 GB, free: 134.6 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 4.668e-06/1.001, allocations: 4 kB / 0.8053 GB, free: 134.6 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.001172/1.002, allocations: 1.078 MB / 0.8063 GB, free: 133.6 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001706/1.004, allocations: 287.2 kB / 0.8066 GB, free: 133.4 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01149/1.015, allocations: 5.967 MB / 0.8124 GB, free: 128 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00309/1.018, allocations: 3.087 MB / 0.8154 GB, free: 125.6 MB / 0.5105 GB Notification: Performance of SimCode: time 1.212e-06/1.018, allocations: 0 / 0.8154 GB, free: 125.6 MB / 0.5105 GB Notification: Performance of Templates: time 0.05485/1.073, allocations: 28.42 MB / 0.8432 GB, free: 103.9 MB / 0.5105 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.RevoluteInitialization.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.RevoluteInitialization.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.RevoluteInitialization.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.RevoluteInitialization.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.RevoluteInitialization.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.RevoluteInitialization -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.RevoluteInitialization.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.RevoluteInitialization_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/RevoluteInitialization/RevoluteInitialization.csv","../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.RevoluteInitialization.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches