Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotion2.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.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_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_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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008832/0.0008832, allocations: 192.8 kB / 7.807 MB, free: 2.492 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9934/0.9934, allocations: 205.2 MB / 213.4 MB, free: 13.85 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.0007437/0.0007437, allocations: 94.22 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.1556/0.1556, allocations: 43.49 MB / 352.9 MB, free: 1.941 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 6.042e-06/6.062e-06, allocations: 4 kB / 417.7 MB, free: 40.54 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2097/0.2097, allocations: 58.83 MB / 476.6 MB, free: 5.223 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1255/0.3353, allocations: 108.2 MB / 0.5711 GB, free: 6.664 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000217/0.3355, allocations: 71.97 kB / 0.5712 GB, free: 6.594 MB / 410.7 MB Notification: Performance of FrontEnd: time 0.4166/0.7521, allocations: 115.1 MB / 0.6835 GB, free: 105.5 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0001812/0.7523, allocations: 116.9 kB / 0.6837 GB, free: 105.5 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.01137/0.7637, allocations: 5.913 MB / 0.6894 GB, free: 102.6 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.599e-05/0.7638, allocations: 7.688 kB / 0.6894 GB, free: 102.6 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02568/0.7894, allocations: 6.631 MB / 0.6959 GB, free: 101.5 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01737/0.8069, allocations: 7.903 MB / 0.7036 GB, free: 97.78 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002114/0.8071, allocations: 186.4 kB / 0.7038 GB, free: 97.78 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001528/0.8086, allocations: 350 kB / 0.7041 GB, free: 97.76 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01409/0.8227, allocations: 8.472 MB / 0.7124 GB, free: 93.39 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01287/0.8356, allocations: 12.67 MB / 0.7248 GB, free: 79.55 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001701/0.8358, allocations: 87.16 kB / 0.7249 GB, free: 79.46 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005557/0.8364, allocations: 36 kB / 0.7249 GB, free: 79.43 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001192/0.8376, allocations: 1.411 MB / 0.7263 GB, free: 78.02 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04486/0.8825, allocations: 60.76 MB / 0.7856 GB, free: 15.86 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004264/0.8868, allocations: 5.069 MB / 0.7906 GB, free: 10.65 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002709/0.8895, allocations: 3.536 MB / 0.794 GB, free: 7.105 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01143/0.9009, allocations: 9.781 MB / 0.8036 GB, free: 13.12 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.782e-05/0.901, allocations: 60.5 kB / 0.8036 GB, free: 13.05 MB / 490.7 MB Notification: Performance of pre-optimization done (n=248): time 4.048e-06/0.901, allocations: 0 / 0.8036 GB, free: 13.05 MB / 490.7 MB Notification: Performance of matching and sorting (n=316): time 0.05736/0.9584, allocations: 28.71 MB / 0.8317 GB, free: 280 kB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.1478/1.106, allocations: 268.7 kB / 0.8319 GB, free: 179.9 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005266/1.112, allocations: 4 MB / 0.8358 GB, free: 179.7 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0006098/1.112, allocations: 28.36 kB / 0.8359 GB, free: 179.6 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001477/1.114, allocations: 3.711 MB / 0.8395 GB, free: 178.5 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001023/1.115, allocations: 1.14 MB / 0.8406 GB, free: 177.8 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002961/1.115, allocations: 0 / 0.8406 GB, free: 177.8 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0002939/1.115, allocations: 0.6437 MB / 0.8412 GB, free: 177.5 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003416/1.119, allocations: 3.234 MB / 0.8444 GB, free: 177.5 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004739/1.123, allocations: 7.599 MB / 0.8518 GB, free: 171.8 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004999/1.128, allocations: 4.944 MB / 0.8566 GB, free: 171.8 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.612e-05/1.129, allocations: 48.84 kB / 0.8567 GB, free: 171.8 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1030) (initialization): time 0.01562/1.144, allocations: 11.62 MB / 0.868 GB, free: 169.3 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.736e-05/1.144, allocations: 10.66 kB / 0.868 GB, free: 169.3 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001154/1.144, allocations: 154.7 kB / 0.8682 GB, free: 169.3 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004496/1.149, allocations: 2.085 MB / 0.8702 GB, free: 168.9 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005151/1.154, allocations: 1.779 MB / 0.872 GB, free: 168.7 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01583/1.17, allocations: 13.2 MB / 0.8849 GB, free: 162.2 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005973/1.176, allocations: 249.4 kB / 0.8851 GB, free: 162.1 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001162/1.177, allocations: 470.2 kB / 0.8855 GB, free: 162.1 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 {(7,46.9%) 20,(7,46.9%) 20} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001052/1.178, allocations: 497 kB / 0.886 GB, free: 161.7 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007376/1.179, allocations: 461.3 kB / 0.8865 GB, free: 161.4 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01233/1.191, allocations: 6.809 MB / 0.8931 GB, free: 159 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001065/1.191, allocations: 29.12 kB / 0.8931 GB, free: 159 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.179e-05/1.191, allocations: 17.88 kB / 0.8931 GB, free: 159 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.675e-05/1.191, allocations: 12.75 kB / 0.8932 GB, free: 159 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04157/1.233, allocations: 14.4 MB / 0.9072 GB, free: 152 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.855e-05/1.233, allocations: 7.25 kB / 0.9072 GB, free: 151.9 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003796/1.237, allocations: 483.9 kB / 0.9077 GB, free: 151.6 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004111/1.241, allocations: 1.771 MB / 0.9094 GB, free: 150.2 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002633/1.241, allocations: 19.38 kB / 0.9094 GB, free: 150.2 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01249/1.254, allocations: 11.43 MB / 0.9206 GB, free: 139.9 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.763e-06/1.254, allocations: 11.94 kB / 0.9206 GB, free: 139.9 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01274/1.267, allocations: 11.85 MB / 0.9322 GB, free: 129.1 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002041/1.269, allocations: 0.9921 MB / 0.9332 GB, free: 128.2 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006614/1.269, allocations: 11.75 kB / 0.9332 GB, free: 128.1 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00203/1.271, allocations: 127.9 kB / 0.9333 GB, free: 128.1 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003233/1.272, allocations: 158 kB / 0.9334 GB, free: 128 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002549/1.272, allocations: 87.84 kB / 0.9335 GB, free: 127.9 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.003207/1.275, allocations: 2.727 MB / 0.9362 GB, free: 125.5 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.005766/1.281, allocations: 1.275 MB / 0.9374 GB, free: 124.2 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.0004542/1.281, allocations: 171 kB / 0.9376 GB, free: 124.1 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01129/1.293, allocations: 8.391 MB / 0.9458 GB, free: 116.5 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.07e-05/1.293, allocations: 4.125 kB / 0.9458 GB, free: 116.5 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.005419/1.298, allocations: 3.5 MB / 0.9492 GB, free: 113.4 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002556/1.301, allocations: 493.6 kB / 0.9497 GB, free: 113 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0192/1.32, allocations: 12.22 MB / 0.9616 GB, free: 102 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005769/1.326, allocations: 4.875 MB / 0.9664 GB, free: 98.24 MB / 0.4948 GB Notification: Performance of SimCode: time 5.51e-07/1.326, allocations: 0 / 0.9664 GB, free: 98.24 MB / 0.4948 GB Notification: Performance of Templates: time 0.08453/1.41, allocations: 60.28 MB / 1.025 GB, free: 39.11 MB / 0.4948 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotion2.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotion2.sim & ./ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotion2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_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_ModelicaTest.MultiBody.Joints.FreeMotion2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches