Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Planar.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Joints.Planar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|planar.phi|planar.s_x|planar.s_y|planar.v_x|planar.v_y|planar.w",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Planar") translateModel(ModelicaTest.MultiBody.Joints.Planar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|planar.phi|planar.s_x|planar.s_y|planar.v_x|planar.v_y|planar.w",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Planar") [: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 3.2.3+maint.om/package.mo): time 0.0008761/0.000876, allocations: 186.8 kB / 7.804 MB, free: 2.48 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.023/1.023, allocations: 205.2 MB / 213.4 MB, free: 13.86 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008162/0.0008162, allocations: 95.33 kB / 261.4 MB, free: 13.54 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1566/0.1566, allocations: 43.48 MB / 352.8 MB, free: 1.969 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 8.025e-06/8.035e-06, allocations: 4 kB / 417.7 MB, free: 40.57 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2266/0.2266, allocations: 58.84 MB / 476.6 MB, free: 5.203 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1152/0.3418, allocations: 105.4 MB / 0.5683 GB, free: 9.535 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000202/0.3421, allocations: 75.97 kB / 0.5684 GB, free: 9.461 MB / 410.7 MB Notification: Performance of FrontEnd: time 0.4044/0.7465, allocations: 114.1 MB / 0.6798 GB, free: 110.2 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0001225/0.7466, allocations: 91.03 kB / 0.6799 GB, free: 110.2 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1914 * Number of variables: 1914 Notification: Performance of Generate backend data structure: time 0.01087/0.7575, allocations: 4.421 MB / 0.6842 GB, free: 107.9 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.817e-05/0.7576, allocations: 7.531 kB / 0.6842 GB, free: 107.9 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0134/0.771, allocations: 2.95 MB / 0.6871 GB, free: 107.5 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01217/0.7832, allocations: 4.865 MB / 0.6919 GB, free: 105.6 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002606/0.7835, allocations: 161.1 kB / 0.692 GB, free: 105.6 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002255/0.7857, allocations: 291.5 kB / 0.6923 GB, free: 105.6 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01568/0.8014, allocations: 8.66 MB / 0.7008 GB, free: 102.7 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02376/0.8252, allocations: 11.42 MB / 0.7119 GB, free: 94.96 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002548/0.8255, allocations: 32.73 kB / 0.7119 GB, free: 94.93 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001962/0.8275, allocations: 16.52 kB / 0.712 GB, free: 94.91 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001957/0.8295, allocations: 1.482 MB / 0.7134 GB, free: 93.61 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05361/0.8831, allocations: 40.26 MB / 0.7527 GB, free: 52.82 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003756/0.8869, allocations: 3.071 MB / 0.7557 GB, free: 49.72 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002615/0.8895, allocations: 2.507 MB / 0.7582 GB, free: 47.21 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01274/0.9023, allocations: 10.07 MB / 0.768 GB, free: 36.64 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.686e-05/0.9024, allocations: 55.75 kB / 0.7681 GB, free: 36.58 MB / 474.7 MB Notification: Performance of pre-optimization done (n=218): time 4.058e-06/0.9024, allocations: 0 / 0.7681 GB, free: 36.58 MB / 474.7 MB Notification: Performance of matching and sorting (n=245): time 0.02671/0.9291, allocations: 16.56 MB / 0.7842 GB, free: 19.95 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.584e-05/0.9292, allocations: 77.41 kB / 0.7843 GB, free: 19.87 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004168/0.9333, allocations: 2.908 MB / 0.7871 GB, free: 16.96 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000123/0.9335, allocations: 29.7 kB / 0.7872 GB, free: 16.92 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00136/0.9348, allocations: 3.334 MB / 0.7904 GB, free: 13.53 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005575/0.9354, allocations: 0.8903 MB / 0.7913 GB, free: 12.63 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003446/0.9358, allocations: 0 / 0.7913 GB, free: 12.63 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.000309/0.9361, allocations: 0.5949 MB / 0.7919 GB, free: 12.03 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002871/0.939, allocations: 2.547 MB / 0.7944 GB, free: 9.477 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004134/0.9431, allocations: 6.199 MB / 0.8004 GB, free: 1.449 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004717/0.9478, allocations: 4.032 MB / 0.8044 GB, free: 13.41 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.302e-05/0.9479, allocations: 36 kB / 0.8044 GB, free: 13.38 MB / 490.7 MB Notification: Performance of matching and sorting (n=870) (initialization): time 0.01427/0.9622, allocations: 8.795 MB / 0.813 GB, free: 4.574 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.939e-05/0.9622, allocations: 7.906 kB / 0.813 GB, free: 4.566 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001834/0.9624, allocations: 132 kB / 0.8131 GB, free: 4.438 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003015/0.9654, allocations: 1 MB / 0.8141 GB, free: 3.434 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004539/0.97, allocations: 1.482 MB / 0.8155 GB, free: 1.949 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006426/0.9764, allocations: 4.796 MB / 0.8202 GB, free: 13.04 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003733/0.9802, allocations: 179.9 kB / 0.8204 GB, free: 12.87 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007151/0.9809, allocations: 384 kB / 0.8208 GB, free: 12.49 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 591 * Number of states: 0 () * Number of discrete variables: 42 (axis1.color[3],axis1.color[2],axis1.color[1],frame_a1.color_x[3],frame_a1.color_x[2],frame_a1.color_x[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],planar.cylinderColor[3],planar.cylinderColor[2],planar.cylinderColor[1],planar.boxColor[3],planar.boxColor[2],planar.boxColor[1],planar.revolute.cylinderColor[3],planar.revolute.cylinderColor[2],planar.revolute.cylinderColor[1],planar.prismatic_y.boxColor[3],planar.prismatic_y.boxColor[2],planar.prismatic_y.boxColor[1],planar.prismatic_x.boxColor[3],planar.prismatic_x.boxColor[2],planar.prismatic_x.boxColor[1],axis2.color[3],axis2.color[2],axis2.color[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (808): * Single equations (assignments): 801 * Array equations: 6 * 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 {(5,76.0%) 10} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008462/0.9818, allocations: 435.3 kB / 0.8212 GB, free: 12.06 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000519/0.9823, allocations: 315.9 kB / 0.8215 GB, free: 11.75 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008211/0.9905, allocations: 4.947 MB / 0.8263 GB, free: 6.781 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.254e-05/0.9906, allocations: 39.98 kB / 0.8263 GB, free: 6.742 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.588e-06/0.9906, allocations: 4 kB / 0.8263 GB, free: 6.738 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.73e-05/0.9906, allocations: 11.95 kB / 0.8264 GB, free: 6.727 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1314/1.122, allocations: 10.18 MB / 0.8363 GB, free: 179.6 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.838e-06/1.122, allocations: 3.906 kB / 0.8363 GB, free: 179.6 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001526/1.124, allocations: 350.8 kB / 0.8366 GB, free: 179.6 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002464/1.126, allocations: 0.7921 MB / 0.8374 GB, free: 179.6 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001449/1.126, allocations: 14.44 kB / 0.8374 GB, free: 179.6 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004484/1.131, allocations: 4.156 MB / 0.8415 GB, free: 178.4 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.969e-06/1.131, allocations: 9.125 kB / 0.8415 GB, free: 178.4 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00856/1.139, allocations: 7.956 MB / 0.8493 GB, free: 177.5 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001848/1.141, allocations: 0.7119 MB / 0.85 GB, free: 177.4 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005467/1.142, allocations: 14.58 kB / 0.85 GB, free: 177.4 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001176/1.143, allocations: 64.06 kB / 0.85 GB, free: 177.4 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002299/1.143, allocations: 109.6 kB / 0.8501 GB, free: 177.4 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001529/1.143, allocations: 63.58 kB / 0.8502 GB, free: 177.4 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.00218/1.146, allocations: 1.92 MB / 0.8521 GB, free: 177.3 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.004794/1.15, allocations: 0.9897 MB / 0.853 GB, free: 177.3 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 6 (planar.s_x,planar.s_y,planar.phi,planar.v_x,planar.v_y,planar.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (188): * Single equations (assignments): 181 * Array equations: 6 * 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,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004285/1.151, allocations: 157.2 kB / 0.8532 GB, free: 177.2 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.006832/1.158, allocations: 6 MB / 0.859 GB, free: 177.1 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 7.545e-06/1.158, allocations: 0 / 0.859 GB, free: 177.1 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.002741/1.16, allocations: 2.122 MB / 0.8611 GB, free: 177 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001582/1.162, allocations: 257.1 kB / 0.8614 GB, free: 176.9 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01487/1.177, allocations: 9.456 MB / 0.8706 GB, free: 173.9 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004181/1.181, allocations: 4.216 MB / 0.8747 GB, free: 172.5 MB / 0.4948 GB Notification: Performance of SimCode: time 5.81e-07/1.181, allocations: 6.906 kB / 0.8747 GB, free: 172.5 MB / 0.4948 GB Notification: Performance of Templates: time 0.06879/1.25, allocations: 39.4 MB / 0.9132 GB, free: 155 MB / 0.4948 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Planar.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Planar.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Planar.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Planar.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Planar.sim & ./ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Planar -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Planar.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Planar_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Joints/Planar/Planar.csv","../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Planar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches