Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_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_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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002278/0.002278, allocations: 177.8 kB / 8.36 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.007/2.007, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001106/0.001105, allocations: 83.58 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2904/0.2904, allocations: 43.49 MB / 353.6 MB, free: 2.27 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.315e-05/2.34e-05, allocations: 4 kB / 418.2 MB, free: 41.05 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3929/0.393, allocations: 58.86 MB / 477.1 MB, free: 5.258 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2021/0.5951, allocations: 108.3 MB / 0.5717 GB, free: 6.984 MB / 411.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002437/0.5954, allocations: 79.45 kB / 0.5717 GB, free: 6.91 MB / 411.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.7984/1.394, allocations: 116.5 MB / 0.6855 GB, free: 105.5 MB / 475.1 MB Notification: Performance of FrontEnd: time 2.645e-06/1.394, allocations: 4 kB / 0.6855 GB, free: 105.5 MB / 475.1 MB Notification: Performance of Transformations before backend: time 0.000416/1.394, allocations: 118.2 kB / 0.6856 GB, free: 105.5 MB / 475.1 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.024/1.418, allocations: 5.947 MB / 0.6914 GB, free: 102.6 MB / 475.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.802e-05/1.418, allocations: 9.812 kB / 0.6914 GB, free: 102.6 MB / 475.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04888/1.467, allocations: 7.001 MB / 0.6983 GB, free: 101.6 MB / 475.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02731/1.495, allocations: 7.801 MB / 0.7059 GB, free: 97.64 MB / 475.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003693/1.495, allocations: 192.3 kB / 0.7061 GB, free: 97.64 MB / 475.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00303/1.498, allocations: 350.3 kB / 0.7064 GB, free: 97.62 MB / 475.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02023/1.518, allocations: 8.208 MB / 0.7144 GB, free: 92.82 MB / 475.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0313/1.55, allocations: 12.43 MB / 0.7266 GB, free: 79.21 MB / 475.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004355/1.55, allocations: 91.17 kB / 0.7266 GB, free: 79.12 MB / 475.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002397/1.553, allocations: 36 kB / 0.7267 GB, free: 79.09 MB / 475.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002703/1.555, allocations: 1.318 MB / 0.728 GB, free: 77.78 MB / 475.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09119/1.647, allocations: 59.51 MB / 0.7861 GB, free: 16.88 MB / 475.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008924/1.656, allocations: 4.889 MB / 0.7909 GB, free: 11.85 MB / 475.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005724/1.661, allocations: 3.219 MB / 0.794 GB, free: 8.625 MB / 475.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00097/1.662, allocations: 0.6908 MB / 0.7947 GB, free: 7.844 MB / 475.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.888e-05/1.663, allocations: 60.56 kB / 0.7947 GB, free: 7.773 MB / 475.1 MB Notification: Performance of pre-optimization done (n=254): time 6.463e-06/1.663, allocations: 0 / 0.7947 GB, free: 7.773 MB / 475.1 MB Notification: Performance of matching and sorting (n=321): time 0.1201/1.783, allocations: 29.92 MB / 0.824 GB, free: 9.773 MB / 0.4952 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000182/1.783, allocations: 273.4 kB / 0.8242 GB, free: 9.449 MB / 0.4952 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01158/1.795, allocations: 3.94 MB / 0.8281 GB, free: 5.512 MB / 0.4952 GB Notification: Performance of collectPreVariables (initialization): time 0.0009038/1.795, allocations: 25.7 kB / 0.8281 GB, free: 5.48 MB / 0.4952 GB Notification: Performance of collectInitialEqns (initialization): time 0.004934/1.8, allocations: 4.01 MB / 0.832 GB, free: 1.418 MB / 0.4952 GB Notification: Performance of collectInitialBindings (initialization): time 0.002434/1.803, allocations: 1.148 MB / 0.8331 GB, free: 260 kB / 0.4952 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001218/1.804, allocations: 4 kB / 0.8331 GB, free: 256 kB / 0.4952 GB Notification: Performance of setup shared object (initialization): time 0.3444/2.149, allocations: 0.6404 MB / 0.8338 GB, free: 124.7 MB / 0.4952 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008131/2.157, allocations: 3.155 MB / 0.8368 GB, free: 124.7 MB / 0.4952 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01152/2.168, allocations: 7.52 MB / 0.8442 GB, free: 119.1 MB / 0.4952 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01198/2.18, allocations: 4.821 MB / 0.8489 GB, free: 119 MB / 0.4952 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002747/2.181, allocations: 44.66 kB / 0.8489 GB, free: 119 MB / 0.4952 GB Notification: Performance of matching and sorting (n=1035) (initialization): time 0.03545/2.216, allocations: 11.47 MB / 0.8601 GB, free: 117.9 MB / 0.4952 GB Notification: Performance of prepare postOptimizeDAE: time 0.000146/2.216, allocations: 71.66 kB / 0.8602 GB, free: 117.9 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001984/2.217, allocations: 152.9 kB / 0.8603 GB, free: 117.9 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008718/2.225, allocations: 2.169 MB / 0.8625 GB, free: 117.5 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01151/2.237, allocations: 1.81 MB / 0.8642 GB, free: 117.3 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0284/2.265, allocations: 13.59 MB / 0.8775 GB, free: 110.5 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009128/2.274, allocations: 304.8 kB / 0.8778 GB, free: 110.5 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001875/2.276, allocations: 468.7 kB / 0.8782 GB, free: 110.5 MB / 0.4952 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 (959): * Single equations (assignments): 954 * 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.001792/2.278, allocations: 0.5006 MB / 0.8787 GB, free: 110.1 MB / 0.4952 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001203/2.279, allocations: 460.9 kB / 0.8792 GB, free: 110.1 MB / 0.4952 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01899/2.298, allocations: 6.75 MB / 0.8858 GB, free: 107.6 MB / 0.4952 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.639e-05/2.299, allocations: 33.41 kB / 0.8858 GB, free: 107.6 MB / 0.4952 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.515e-05/2.299, allocations: 9.812 kB / 0.8858 GB, free: 107.6 MB / 0.4952 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.806e-05/2.299, allocations: 19.27 kB / 0.8858 GB, free: 107.6 MB / 0.4952 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04046/2.339, allocations: 14.7 MB / 0.9002 GB, free: 102 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.668e-05/2.339, allocations: 10.84 kB / 0.9002 GB, free: 102 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004914/2.344, allocations: 0.5089 MB / 0.9007 GB, free: 102 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008/2.352, allocations: 1.86 MB / 0.9025 GB, free: 101.5 MB / 0.4952 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007469/2.353, allocations: 14.17 kB / 0.9025 GB, free: 101.5 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0249/2.378, allocations: 11.93 MB / 0.9142 GB, free: 95.06 MB / 0.4952 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.246e-05/2.378, allocations: 15.94 kB / 0.9142 GB, free: 95.04 MB / 0.4952 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02487/2.403, allocations: 11.73 MB / 0.9256 GB, free: 84.46 MB / 0.4952 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004085/2.407, allocations: 0.9976 MB / 0.9266 GB, free: 83.54 MB / 0.4952 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001863/2.409, allocations: 15.84 kB / 0.9266 GB, free: 83.53 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005557/2.415, allocations: 168 kB / 0.9268 GB, free: 83.43 MB / 0.4952 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00131/2.416, allocations: 205.4 kB / 0.927 GB, free: 83.3 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005951/2.417, allocations: 92.45 kB / 0.9271 GB, free: 83.21 MB / 0.4952 GB Notification: Performance of sorting global known variables: time 0.007248/2.424, allocations: 2.67 MB / 0.9297 GB, free: 80.89 MB / 0.4952 GB Notification: Performance of sort global known variables: time 1.213e-06/2.424, allocations: 0 / 0.9297 GB, free: 80.89 MB / 0.4952 GB Notification: Performance of remove unused functions: time 0.01099/2.435, allocations: 1.292 MB / 0.9309 GB, free: 79.61 MB / 0.4952 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 (260): * Single equations (assignments): 255 * 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%) 17,(7,46.9%) 17} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001276/2.436, allocations: 164.6 kB / 0.9311 GB, free: 79.46 MB / 0.4952 GB Notification: Performance of simCode: created initialization part: time 0.02242/2.459, allocations: 8.478 MB / 0.9394 GB, free: 71.95 MB / 0.4952 GB Notification: Performance of simCode: created event and clocks part: time 1.286e-05/2.459, allocations: 8 kB / 0.9394 GB, free: 71.94 MB / 0.4952 GB Notification: Performance of simCode: created simulation system equations: time 0.0117/2.47, allocations: 3.769 MB / 0.9431 GB, free: 68.67 MB / 0.4952 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00482/2.475, allocations: 0.5084 MB / 0.9436 GB, free: 68.25 MB / 0.4952 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03612/2.511, allocations: 12.74 MB / 0.956 GB, free: 56.88 MB / 0.4952 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01139/2.523, allocations: 4.528 MB / 0.9604 GB, free: 53.5 MB / 0.4952 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002748/2.526, allocations: 390.3 kB / 0.9608 GB, free: 53.15 MB / 0.4952 GB Notification: Performance of SimCode: time 1.493e-06/2.526, allocations: 4 kB / 0.9608 GB, free: 53.14 MB / 0.4952 GB Notification: Performance of Templates: time 0.6482/3.174, allocations: 128.3 MB / 1.086 GB, free: 104.6 MB / 0.5108 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/jenkins1/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