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.001548/0.001547, allocations: 182.2 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.976/1.976, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001596/0.001596, allocations: 86.64 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3161/0.3161, allocations: 43.49 MB / 359.1 MB, free: 12.23 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 4.106e-05/4.118e-05, allocations: 7.984 kB / 425.3 MB, free: 23.36 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1555/0.1556, allocations: 58.85 MB / 484.1 MB, free: 12.46 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7158/0.8714, allocations: 109 MB / 0.5792 GB, free: 11.01 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003603/0.8719, allocations: 82.48 kB / 0.5793 GB, free: 10.97 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5539/1.426, allocations: 119.1 MB / 0.6956 GB, free: 11.5 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.635e-06/1.426, allocations: 0 / 0.6956 GB, free: 11.5 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0004986/1.426, allocations: 120 kB / 0.6957 GB, free: 11.38 MB / 0.4948 GB 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.02642/1.453, allocations: 5.949 MB / 0.7015 GB, free: 5.363 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.568e-05/1.453, allocations: 8.031 kB / 0.7015 GB, free: 5.355 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.415/1.868, allocations: 6.999 MB / 0.7084 GB, free: 101.8 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03076/1.899, allocations: 7.811 MB / 0.716 GB, free: 101.4 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006873/1.899, allocations: 437.4 kB / 0.7164 GB, free: 101.4 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003612/1.903, allocations: 0.5829 MB / 0.717 GB, free: 101.4 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04269/1.946, allocations: 13.85 MB / 0.7305 GB, free: 98.17 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005389/1.946, allocations: 84.06 kB / 0.7306 GB, free: 98.16 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003277/1.95, allocations: 277.4 kB / 0.7308 GB, free: 98.16 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0032/1.953, allocations: 1.315 MB / 0.7321 GB, free: 98.15 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.035/1.988, allocations: 11.54 MB / 0.7434 GB, free: 98.1 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09744/2.086, allocations: 62.16 MB / 0.8041 GB, free: 55.48 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02335/2.109, allocations: 5.726 MB / 0.8097 GB, free: 53.37 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006156/2.115, allocations: 3.279 MB / 0.8129 GB, free: 51.96 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009739/2.116, allocations: 0.6913 MB / 0.8136 GB, free: 51.36 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.605e-05/2.116, allocations: 68.94 kB / 0.8136 GB, free: 51.3 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=254): time 6.993e-06/2.116, allocations: 0 / 0.8136 GB, free: 51.3 MB / 0.4948 GB Notification: Performance of matching and sorting (n=320): time 0.1314/2.248, allocations: 29.19 MB / 0.8421 GB, free: 33.89 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001084/2.248, allocations: 264.5 kB / 0.8424 GB, free: 33.58 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01044/2.258, allocations: 4.654 MB / 0.8469 GB, free: 29.47 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0008616/2.259, allocations: 73.7 kB / 0.847 GB, free: 29.39 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.003187/2.262, allocations: 3.885 MB / 0.8508 GB, free: 25.86 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001789/2.264, allocations: 1.189 MB / 0.8519 GB, free: 24.8 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009312/2.265, allocations: 148 kB / 0.8521 GB, free: 24.66 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0004286/2.266, allocations: 0.6436 MB / 0.8527 GB, free: 24.11 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007291/2.273, allocations: 3.256 MB / 0.8559 GB, free: 21.17 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01016/2.283, allocations: 7.506 MB / 0.8632 GB, free: 12.11 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01071/2.294, allocations: 4.913 MB / 0.868 GB, free: 7.852 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000111/2.294, allocations: 44 kB / 0.8681 GB, free: 7.809 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1007) (initialization): time 0.03584/2.33, allocations: 12.34 MB / 0.8801 GB, free: 13.3 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.000143/2.33, allocations: 69 kB / 0.8802 GB, free: 13.23 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002625/2.33, allocations: 148 kB / 0.8803 GB, free: 13.09 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009902/2.34, allocations: 2.136 MB / 0.8824 GB, free: 11.48 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01249/2.353, allocations: 1.758 MB / 0.8841 GB, free: 9.965 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03256/2.386, allocations: 14.32 MB / 0.8981 GB, free: 13.15 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009934/2.396, allocations: 458.1 kB / 0.8985 GB, free: 12.77 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00215/2.398, allocations: 453.4 kB / 0.899 GB, free: 12.34 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 676 * 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 (931): * Single equations (assignments): 926 * 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.002729/2.401, allocations: 0.681 MB / 0.8996 GB, free: 11.66 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001715/2.402, allocations: 0.4937 MB / 0.9001 GB, free: 11.16 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02416/2.426, allocations: 7.016 MB / 0.907 GB, free: 4.52 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.323e-05/2.427, allocations: 36 kB / 0.907 GB, free: 4.484 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.444e-05/2.427, allocations: 8 kB / 0.907 GB, free: 4.477 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001007/2.427, allocations: 19.89 kB / 0.907 GB, free: 4.457 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4249/2.852, allocations: 16 MB / 0.9227 GB, free: 118 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.861e-05/2.852, allocations: 6.188 kB / 0.9227 GB, free: 118 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005226/2.857, allocations: 0.5038 MB / 0.9232 GB, free: 118 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008709/2.866, allocations: 1.878 MB / 0.925 GB, free: 118 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007548/2.867, allocations: 69.33 kB / 0.9251 GB, free: 118 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02786/2.894, allocations: 12.81 MB / 0.9376 GB, free: 115.5 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.857e-06/2.894, allocations: 12.53 kB / 0.9376 GB, free: 115.5 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02798/2.922, allocations: 12.08 MB / 0.9494 GB, free: 113.7 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004131/2.927, allocations: 1.049 MB / 0.9504 GB, free: 113.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001659/2.928, allocations: 66.25 kB / 0.9505 GB, free: 113.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005256/2.934, allocations: 210.3 kB / 0.9507 GB, free: 113.6 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001168/2.935, allocations: 215.7 kB / 0.9509 GB, free: 113.6 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003697/2.935, allocations: 91.94 kB / 0.951 GB, free: 113.6 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.008534/2.944, allocations: 3.281 MB / 0.9542 GB, free: 113.4 MB / 0.5261 GB Notification: Performance of sort global known variables: time 9.62e-07/2.944, allocations: 0 / 0.9542 GB, free: 113.4 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.009461/2.953, allocations: 1.492 MB / 0.9556 GB, free: 113.4 MB / 0.5261 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 (259): * Single equations (assignments): 254 * 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.001125/2.955, allocations: 220.6 kB / 0.9558 GB, free: 113.3 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01936/2.974, allocations: 8.171 MB / 0.9638 GB, free: 111.1 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.451e-05/2.974, allocations: 7.156 kB / 0.9638 GB, free: 111.1 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.01269/2.987, allocations: 3.864 MB / 0.9676 GB, free: 109.7 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005774/2.992, allocations: 0.6311 MB / 0.9682 GB, free: 109.5 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03626/3.029, allocations: 12.91 MB / 0.9808 GB, free: 104.6 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01061/3.04, allocations: 4.539 MB / 0.9853 GB, free: 103.1 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002941/3.043, allocations: 411.2 kB / 0.9856 GB, free: 103.1 MB / 0.5261 GB Notification: Performance of SimCode: time 2.324e-06/3.043, allocations: 0 / 0.9856 GB, free: 103.1 MB / 0.5261 GB Notification: Performance of Templates: time 0.702/3.745, allocations: 131.3 MB / 1.114 GB, free: 117 MB / 0.5261 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