Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotion2.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Joints.FreeMotion2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|freeMotion.r_rel_a.1.|freeMotion.v_rel_a.1.|prismatic1.s|prismatic1.v|universal.phi_a|universal.phi_b|universal.w_a|universal.w_b|universal1.phi_a|universal1.phi_b|universal1.w_a|universal1.w_b",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotion2") translateModel(ModelicaTest.MultiBody.Joints.FreeMotion2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|freeMotion.r_rel_a.1.|freeMotion.v_rel_a.1.|prismatic1.s|prismatic1.v|universal.phi_a|universal.phi_b|universal.w_a|universal.w_b|universal1.phi_a|universal1.phi_b|universal1.w_a|universal1.w_b",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotion2") [: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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.003528/0.003527, allocations: 170.2 kB / 8.144 MB, free: 2.219 MB / 5.871 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.91/1.91, allocations: 205.2 MB / 213.8 MB, free: 13.93 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001333/0.001332, allocations: 91.59 kB / 261.8 MB, free: 13.63 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2887/0.2887, allocations: 43.49 MB / 353.2 MB, free: 2.047 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 1.098e-05/1.114e-05, allocations: 0 / 417.7 MB, free: 40.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3064/0.3065, allocations: 58.84 MB / 476.5 MB, free: 5.086 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1949/0.5015, allocations: 108.2 MB / 0.5711 GB, free: 6.812 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002824/0.5018, allocations: 75.23 kB / 0.5711 GB, free: 6.742 MB / 410.7 MB Notification: Performance of FrontEnd: time 0.6724/1.174, allocations: 115.1 MB / 0.6835 GB, free: 105.4 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.000399/1.175, allocations: 112.5 kB / 0.6836 GB, free: 105.4 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: 2030 * Number of variables: 2030 Notification: Performance of Generate backend data structure: time 0.0232/1.198, allocations: 5.911 MB / 0.6894 GB, free: 102.5 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.494e-05/1.198, allocations: 7.469 kB / 0.6894 GB, free: 102.5 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04941/1.247, allocations: 6.633 MB / 0.6959 GB, free: 101.4 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03005/1.278, allocations: 7.906 MB / 0.7036 GB, free: 97.73 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004183/1.278, allocations: 187 kB / 0.7038 GB, free: 97.73 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003157/1.281, allocations: 346.9 kB / 0.7041 GB, free: 97.71 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02367/1.305, allocations: 8.469 MB / 0.7124 GB, free: 93.69 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03209/1.337, allocations: 12.67 MB / 0.7248 GB, free: 79.85 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004308/1.338, allocations: 91.14 kB / 0.7249 GB, free: 79.76 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002525/1.34, allocations: 39.89 kB / 0.7249 GB, free: 79.72 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002776/1.343, allocations: 1.403 MB / 0.7263 GB, free: 78.32 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09786/1.441, allocations: 60.77 MB / 0.7856 GB, free: 16.16 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009578/1.45, allocations: 5.066 MB / 0.7906 GB, free: 10.95 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006529/1.457, allocations: 3.543 MB / 0.794 GB, free: 7.398 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02499/1.482, allocations: 9.773 MB / 0.8036 GB, free: 13.43 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.86e-05/1.482, allocations: 56.56 kB / 0.8036 GB, free: 13.36 MB / 490.7 MB Notification: Performance of pre-optimization done (n=248): time 6.603e-06/1.482, allocations: 3.938 kB / 0.8036 GB, free: 13.36 MB / 490.7 MB Notification: Performance of matching and sorting (n=316): time 0.1232/1.605, allocations: 28.71 MB / 0.8317 GB, free: 0.5781 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001625/1.606, allocations: 261.4 kB / 0.8319 GB, free: 272 kB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1827/1.788, allocations: 4.004 MB / 0.8358 GB, free: 181 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0008335/1.789, allocations: 28.39 kB / 0.8358 GB, free: 181 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.002654/1.792, allocations: 3.602 MB / 0.8394 GB, free: 179.8 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.00189/1.794, allocations: 1.134 MB / 0.8405 GB, free: 179.1 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009806/1.795, allocations: 0 / 0.8405 GB, free: 179.1 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0005802/1.795, allocations: 0.6488 MB / 0.8411 GB, free: 178.8 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008156/1.804, allocations: 3.236 MB / 0.8443 GB, free: 178.8 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01133/1.815, allocations: 7.597 MB / 0.8517 GB, free: 173.1 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01147/1.827, allocations: 4.946 MB / 0.8565 GB, free: 173.1 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001987/1.827, allocations: 43.59 kB / 0.8566 GB, free: 173.1 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1030) (initialization): time 0.03548/1.862, allocations: 11.47 MB / 0.8678 GB, free: 170.7 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 2.247e-05/1.862, allocations: 9.031 kB / 0.8678 GB, free: 170.7 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000295/1.863, allocations: 156.5 kB / 0.8679 GB, free: 170.7 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01026/1.873, allocations: 1.984 MB / 0.8699 GB, free: 170.2 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01627/1.889, allocations: 1.774 MB / 0.8716 GB, free: 170 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03874/1.928, allocations: 13.07 MB / 0.8843 GB, free: 163.3 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0115/1.94, allocations: 242.4 kB / 0.8846 GB, free: 163.2 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002483/1.942, allocations: 468.4 kB / 0.885 GB, free: 163.2 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 703 * Number of states: 0 () * Number of discrete variables: 42 (universal1.cylinderColor[3],universal1.cylinderColor[2],universal1.cylinderColor[1],prismatic1.boxColor[3],prismatic1.boxColor[2],prismatic1.boxColor[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.body.sphereColor[1],universal.cylinderColor[3],universal.cylinderColor[2],universal.cylinderColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[1],fixed.color[3],fixed.color[2],fixed.color[1],freeMotion.arrowColor[3],freeMotion.arrowColor[2],freeMotion.arrowColor[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 (954): * Single equations (assignments): 949 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(3,100.0%) 24,(3,100.0%) 24} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003583/1.946, allocations: 427.5 kB / 0.8854 GB, free: 162.8 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001939/1.948, allocations: 462.3 kB / 0.8859 GB, free: 162.6 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02594/1.974, allocations: 6.81 MB / 0.8925 GB, free: 160.1 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001269/1.974, allocations: 28.88 kB / 0.8926 GB, free: 160.1 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.576e-05/1.974, allocations: 9.625 kB / 0.8926 GB, free: 160.1 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.958e-05/1.974, allocations: 18.97 kB / 0.8926 GB, free: 160.1 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0486/2.023, allocations: 14.39 MB / 0.9066 GB, free: 152.4 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.792e-05/2.023, allocations: 4.75 kB / 0.9066 GB, free: 152.4 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005331/2.028, allocations: 489.1 kB / 0.9071 GB, free: 152 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00915/2.037, allocations: 1.77 MB / 0.9088 GB, free: 150.7 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008654/2.038, allocations: 23.88 kB / 0.9089 GB, free: 150.7 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02775/2.066, allocations: 11.44 MB / 0.92 GB, free: 140.4 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.464e-05/2.066, allocations: 15.84 kB / 0.92 GB, free: 140.4 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.03009/2.096, allocations: 11.85 MB / 0.9316 GB, free: 129.5 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00399/2.1, allocations: 0.987 MB / 0.9326 GB, free: 128.6 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001905/2.102, allocations: 8 kB / 0.9326 GB, free: 128.6 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005404/2.108, allocations: 129 kB / 0.9327 GB, free: 128.5 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001064/2.109, allocations: 160.8 kB / 0.9329 GB, free: 128.4 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004252/2.109, allocations: 87.8 kB / 0.9329 GB, free: 128.3 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.007447/2.117, allocations: 2.729 MB / 0.9356 GB, free: 126 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01074/2.127, allocations: 1.267 MB / 0.9368 GB, free: 124.7 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * Number of states: 12 (freeMotion.r_rel_a[1],freeMotion.v_rel_a[1],universal.phi_a,universal.phi_b,universal.w_a,universal.w_b,prismatic1.s,prismatic1.v,universal1.phi_a,universal1.phi_b,universal1.w_a,universal1.w_b) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (255): * Single equations (assignments): 250 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(6,55.6%) 18,(7,46.9%) 17} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001309/2.129, allocations: 169.2 kB / 0.937 GB, free: 124.5 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01928/2.148, allocations: 7.88 MB / 0.9447 GB, free: 117.4 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.248e-05/2.148, allocations: 4 kB / 0.9447 GB, free: 117.4 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0117/2.16, allocations: 3.482 MB / 0.9481 GB, free: 114.2 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005338/2.165, allocations: 0.4912 MB / 0.9486 GB, free: 113.8 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04186/2.207, allocations: 12.89 MB / 0.9612 GB, free: 102.2 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01391/2.221, allocations: 4.91 MB / 0.966 GB, free: 98.5 MB / 0.4948 GB Notification: Performance of SimCode: time 1.152e-06/2.221, allocations: 0 / 0.966 GB, free: 98.5 MB / 0.4948 GB Notification: Performance of Templates: time 0.4171/2.638, allocations: 132.3 MB / 1.095 GB, free: 154.7 MB / 0.4948 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotion2.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotion2.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotion2 --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotion2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Joints/FreeMotion2/FreeMotion2.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotion2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches