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.001563/0.001568, allocations: 186.3 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.053/2.053, allocations: 205.4 MB / 222.5 MB, free: 13.75 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.001227/0.001227, allocations: 94.86 kB / 270.9 MB, free: 13.29 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.3018/0.3018, allocations: 43.56 MB / 362.7 MB, free: 11.3 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005115/0.0005116, allocations: 12 kB / 431.4 MB, free: 20.26 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1233/0.1238, allocations: 58.85 MB / 490.2 MB, free: 9.336 MB / 330.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion2): time 0.4317/0.5556, allocations: 63.86 MB / 0.5411 GB, free: 9.523 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.04327/0.5989, allocations: 15 MB / 0.5557 GB, free: 2.867 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01733/0.6163, allocations: 324.2 kB / 0.5561 GB, free: 2.816 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.012/0.6284, allocations: 3.205 MB / 0.5592 GB, free: 0.9531 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03941/0.6678, allocations: 9.138 MB / 0.5681 GB, free: 10.84 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006373/0.6743, allocations: 0.9118 MB / 0.569 GB, free: 10.23 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.07345/0.7478, allocations: 27.35 MB / 0.5957 GB, free: 356 kB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01448/0.7623, allocations: 6.306 MB / 0.6019 GB, free: 9.984 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004691/0.7671, allocations: 1.522 MB / 0.6034 GB, free: 8.457 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004993/0.7721, allocations: 2.072 MB / 0.6054 GB, free: 6.379 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001602/0.7738, allocations: 208 kB / 0.6056 GB, free: 6.176 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003963/0.7778, allocations: 0.9676 MB / 0.6065 GB, free: 5.207 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004278/0.7821, allocations: 2.299 MB / 0.6088 GB, free: 2.902 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002677/0.7848, allocations: 1.205 MB / 0.6099 GB, free: 1.688 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01408/0.799, allocations: 8.167 MB / 0.6179 GB, free: 9.5 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.799, allocations: 0 / 0.6179 GB, free: 9.5 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.307e-06/0.799, allocations: 0 / 0.6179 GB, free: 9.5 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0003661/0.7994, allocations: 0 / 0.6179 GB, free: 9.5 MB / 426.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.02705/0.8265, allocations: 6.354 MB / 0.6241 GB, free: 3.066 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.574e-05/0.8266, allocations: 15.97 kB / 0.6241 GB, free: 3.051 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3477/1.174, allocations: 14.76 MB / 0.6385 GB, free: 4.266 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0177/1.192, allocations: 4.976 MB / 0.6434 GB, free: 15.21 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005177/1.193, allocations: 332.6 kB / 0.6437 GB, free: 14.88 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002407/1.195, allocations: 464 kB / 0.6442 GB, free: 14.43 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04147/1.236, allocations: 13.6 MB / 0.6574 GB, free: 15.95 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003412/1.237, allocations: 63.38 kB / 0.6575 GB, free: 15.89 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001911/1.239, allocations: 215.8 kB / 0.6577 GB, free: 15.68 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.008989/1.248, allocations: 2.652 MB / 0.6603 GB, free: 13.02 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04162/1.29, allocations: 11.73 MB / 0.6718 GB, free: 1.273 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4623/1.752, allocations: 53.87 MB / 0.7244 GB, free: 154.7 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02553/1.777, allocations: 5.824 MB / 0.7301 GB, free: 154 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001103/1.779, allocations: 0.6866 MB / 0.7307 GB, free: 153.5 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.885e-05/1.779, allocations: 64.34 kB / 0.7308 GB, free: 153.4 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=254): time 6.573e-06/1.779, allocations: 0 / 0.7308 GB, free: 153.4 MB / 0.5105 GB Notification: Performance of matching and sorting (n=324): time 0.178/1.957, allocations: 36.77 MB / 0.7667 GB, free: 138.2 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001328/1.957, allocations: 276.6 kB / 0.767 GB, free: 137.9 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01173/1.969, allocations: 5.676 MB / 0.7725 GB, free: 132.2 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0009393/1.97, allocations: 74.41 kB / 0.7726 GB, free: 132.1 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.003336/1.973, allocations: 3.868 MB / 0.7764 GB, free: 128.3 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001959/1.975, allocations: 1.201 MB / 0.7775 GB, free: 127.1 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009495/1.976, allocations: 159.5 kB / 0.7777 GB, free: 126.9 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0005106/1.977, allocations: 0.6308 MB / 0.7783 GB, free: 126.3 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008941/1.986, allocations: 3.439 MB / 0.7816 GB, free: 122.8 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0115/1.997, allocations: 7.671 MB / 0.7891 GB, free: 113.3 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01174/2.009, allocations: 5.057 MB / 0.7941 GB, free: 108.5 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001341/2.009, allocations: 44 kB / 0.7941 GB, free: 108.4 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1007) (initialization): time 0.03574/2.045, allocations: 12.7 MB / 0.8065 GB, free: 95.77 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001079/2.045, allocations: 70.5 kB / 0.8066 GB, free: 95.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000189/2.045, allocations: 148 kB / 0.8067 GB, free: 95.55 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009773/2.055, allocations: 2.274 MB / 0.8089 GB, free: 93.27 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01127/2.066, allocations: 1.762 MB / 0.8107 GB, free: 91.51 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03091/2.097, allocations: 15.77 MB / 0.8261 GB, free: 75.48 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009148/2.107, allocations: 460.5 kB / 0.8265 GB, free: 75.03 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001711/2.108, allocations: 459.9 kB / 0.8269 GB, free: 74.58 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 672 * 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 () * Number of clocked 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.007326/2.116, allocations: 2.818 MB / 0.8297 GB, free: 71.75 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00139/2.117, allocations: 0.4975 MB / 0.8302 GB, free: 71.25 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02251/2.14, allocations: 7.425 MB / 0.8374 GB, free: 63.75 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.088e-05/2.14, allocations: 35.94 kB / 0.8375 GB, free: 63.72 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.366e-05/2.14, allocations: 12 kB / 0.8375 GB, free: 63.71 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.712e-05/2.14, allocations: 15.94 kB / 0.8375 GB, free: 63.69 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04917/2.189, allocations: 16.69 MB / 0.8538 GB, free: 46.95 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.189e-05/2.189, allocations: 4 kB / 0.8538 GB, free: 46.95 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005201/2.194, allocations: 0.5187 MB / 0.8543 GB, free: 46.43 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0094/2.204, allocations: 2 MB / 0.8563 GB, free: 44.42 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009176/2.205, allocations: 67.94 kB / 0.8563 GB, free: 44.35 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03093/2.236, allocations: 14.23 MB / 0.8702 GB, free: 29.86 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.187e-06/2.236, allocations: 11.94 kB / 0.8702 GB, free: 29.84 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03115/2.267, allocations: 12.69 MB / 0.8826 GB, free: 16.83 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00416/2.271, allocations: 1.105 MB / 0.8837 GB, free: 15.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001978/2.273, allocations: 62.81 kB / 0.8838 GB, free: 15.64 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005618/2.279, allocations: 223.7 kB / 0.884 GB, free: 15.43 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001677/2.281, allocations: 209.5 kB / 0.8842 GB, free: 15.22 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008556/2.282, allocations: 88 kB / 0.8843 GB, free: 15.14 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.008827/2.29, allocations: 3.649 MB / 0.8878 GB, free: 11.51 MB / 0.5105 GB Notification: Performance of sort global known variables: time 9.02e-07/2.29, allocations: 0 / 0.8878 GB, free: 11.51 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.009907/2.3, allocations: 1.541 MB / 0.8893 GB, free: 9.973 MB / 0.5105 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (263): * Single equations (assignments): 258 * 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.001541/2.302, allocations: 231.8 kB / 0.8895 GB, free: 9.742 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.02067/2.323, allocations: 8.551 MB / 0.8979 GB, free: 1.188 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.122e-05/2.323, allocations: 0 / 0.8979 GB, free: 1.188 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.01499/2.338, allocations: 4.103 MB / 0.9019 GB, free: 13.06 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005948/2.344, allocations: 0.6316 MB / 0.9025 GB, free: 12.43 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04802/2.392, allocations: 17.76 MB / 0.9199 GB, free: 10.55 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01042/2.402, allocations: 4.553 MB / 0.9243 GB, free: 5.949 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003075/2.405, allocations: 419.3 kB / 0.9247 GB, free: 5.539 MB / 0.5417 GB Notification: Performance of SimCode: time 7.61e-07/2.405, allocations: 4 kB / 0.9247 GB, free: 5.535 MB / 0.5417 GB Notification: Performance of Templates: time 0.5729/2.978, allocations: 133 MB / 1.055 GB, free: 97.73 MB / 0.5417 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