Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotion2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotion2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0017/0.0017, allocations: 200.5 kB / 15.8 MB, free: 6.305 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.302/1.302, allocations: 226.5 MB / 243.1 MB, free: 12.38 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007838/0.0007838, allocations: 97.39 kB / 295.1 MB, free: 4.477 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1779/0.1779, allocations: 44.84 MB / 392 MB, free: 11.34 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002214/0.0002213, allocations: 8 kB / 464.7 MB, free: 68.05 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09039/0.09062, allocations: 62.96 MB / 0.5153 GB, free: 5.09 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion2): time 0.2354/0.3261, allocations: 67.36 MB / 0.5811 GB, free: 6.562 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.02889/0.355, allocations: 14.28 MB / 0.5951 GB, free: 12.78 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01307/0.3681, allocations: 328.1 kB / 0.5954 GB, free: 12.73 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.009511/0.3777, allocations: 3.521 MB / 0.5988 GB, free: 10.28 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02664/0.4043, allocations: 10.28 MB / 0.6089 GB, free: 3.117 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004414/0.4088, allocations: 0.9167 MB / 0.6098 GB, free: 2.199 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.06653/0.4753, allocations: 63.07 MB / 0.6713 GB, free: 3.051 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01061/0.486, allocations: 6.276 MB / 0.6775 GB, free: 12.73 MB / 474.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003662/0.4897, allocations: 1.79 MB / 0.6792 GB, free: 10.93 MB / 474.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00424/0.494, allocations: 2.835 MB / 0.682 GB, free: 8.09 MB / 474.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007759/0.4948, allocations: 204 kB / 0.6822 GB, free: 7.891 MB / 474.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002171/0.4969, allocations: 0.987 MB / 0.6831 GB, free: 6.902 MB / 474.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002233/0.4992, allocations: 2.419 MB / 0.6855 GB, free: 4.477 MB / 474.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001887/0.5011, allocations: 1.166 MB / 0.6866 GB, free: 3.301 MB / 474.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008767/0.5099, allocations: 7.661 MB / 0.6941 GB, free: 11.62 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.884e-06/0.5099, allocations: 4 kB / 0.6941 GB, free: 11.62 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.264e-06/0.5099, allocations: 0 / 0.6941 GB, free: 11.62 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0002437/0.5102, allocations: 0 / 0.6941 GB, free: 11.62 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1982 * Number of variables: 1982 Notification: Performance of Generate backend data structure: time 0.01225/0.5224, allocations: 5.81 MB / 0.6998 GB, free: 5.727 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.925e-05/0.5225, allocations: 8.031 kB / 0.6998 GB, free: 5.719 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02383/0.5463, allocations: 3.424 MB / 0.7032 GB, free: 2.281 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01006/0.5564, allocations: 4.26 MB / 0.7073 GB, free: 13.93 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002777/0.5567, allocations: 328.5 kB / 0.7076 GB, free: 13.61 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001325/0.5581, allocations: 451.4 kB / 0.7081 GB, free: 13.17 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02291/0.581, allocations: 13.26 MB / 0.721 GB, free: 15.04 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001982/0.5812, allocations: 71.36 kB / 0.7211 GB, free: 14.97 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000616/0.5819, allocations: 211.8 kB / 0.7213 GB, free: 14.76 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004441/0.5863, allocations: 2.593 MB / 0.7238 GB, free: 12.17 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02178/0.6081, allocations: 11.5 MB / 0.735 GB, free: 0.6523 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2638/0.872, allocations: 53.47 MB / 0.7873 GB, free: 149.3 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.012/0.8841, allocations: 5.646 MB / 0.7928 GB, free: 147.1 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003547/0.8876, allocations: 3.499 MB / 0.7962 GB, free: 145.7 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004962/0.8882, allocations: 0.683 MB / 0.7969 GB, free: 145.1 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.284e-05/0.8882, allocations: 58.59 kB / 0.7969 GB, free: 145 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=245): time 5.601e-06/0.8882, allocations: 0 / 0.7969 GB, free: 145 MB / 0.5261 GB Notification: Performance of matching and sorting (n=315): time 0.08003/0.9683, allocations: 36.57 MB / 0.8326 GB, free: 118.4 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.144e-05/0.9683, allocations: 265.3 kB / 0.8329 GB, free: 118.1 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004922/0.9733, allocations: 5.194 MB / 0.8379 GB, free: 112.9 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0003851/0.9737, allocations: 77.58 kB / 0.838 GB, free: 112.9 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001515/0.9752, allocations: 3.914 MB / 0.8418 GB, free: 108.9 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008164/0.976, allocations: 1.178 MB / 0.843 GB, free: 107.8 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003178/0.9764, allocations: 163.8 kB / 0.8432 GB, free: 107.6 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002449/0.9766, allocations: 0.6367 MB / 0.8438 GB, free: 107 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003909/0.9805, allocations: 3.603 MB / 0.8473 GB, free: 103.4 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005079/0.9856, allocations: 7.802 MB / 0.8549 GB, free: 93.52 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005518/0.9911, allocations: 5.202 MB / 0.86 GB, free: 88.29 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.481e-05/0.9912, allocations: 44 kB / 0.86 GB, free: 88.25 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1027) (initialization): time 0.01949/1.011, allocations: 13.69 MB / 0.8734 GB, free: 74.51 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 7.544e-05/1.011, allocations: 71.95 kB / 0.8735 GB, free: 74.44 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00011/1.011, allocations: 147.9 kB / 0.8736 GB, free: 74.3 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005754/1.017, allocations: 2.777 MB / 0.8763 GB, free: 71.52 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005078/1.022, allocations: 1.786 MB / 0.8781 GB, free: 69.73 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01668/1.038, allocations: 16.63 MB / 0.8943 GB, free: 52.84 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005643/1.044, allocations: 479.2 kB / 0.8948 GB, free: 52.38 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001015/1.045, allocations: 451.9 kB / 0.8952 GB, free: 51.93 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 659 * Number of states: 0 () * Number of discrete variables: 44 (freeMotion.arrow.arrowLine.twoHeadedArrow,freeMotion.arrow.headAtOrigin,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 (951): * Single equations (assignments): 946 * 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.00376/1.049, allocations: 2.768 MB / 0.8979 GB, free: 49.16 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008015/1.05, allocations: 485.8 kB / 0.8984 GB, free: 48.68 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0114/1.061, allocations: 8.032 MB / 0.9062 GB, free: 40.57 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.233e-05/1.061, allocations: 36.09 kB / 0.9062 GB, free: 40.54 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.458e-05/1.061, allocations: 8 kB / 0.9062 GB, free: 40.53 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.903e-05/1.061, allocations: 23.92 kB / 0.9063 GB, free: 40.51 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02445/1.086, allocations: 17.11 MB / 0.923 GB, free: 23.31 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.272e-05/1.086, allocations: 12.03 kB / 0.923 GB, free: 23.3 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00217/1.088, allocations: 0.4953 MB / 0.9235 GB, free: 22.8 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005512/1.094, allocations: 2.483 MB / 0.9259 GB, free: 20.31 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003737/1.094, allocations: 65.16 kB / 0.926 GB, free: 20.25 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0153/1.109, allocations: 14.78 MB / 0.9404 GB, free: 5.191 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.664e-06/1.109, allocations: 15.61 kB / 0.9404 GB, free: 5.18 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0192/1.129, allocations: 12.54 MB / 0.9527 GB, free: 8.438 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001685/1.13, allocations: 0.5455 MB / 0.9532 GB, free: 7.867 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000954/1.131, allocations: 68.69 kB / 0.9533 GB, free: 7.801 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002515/1.134, allocations: 243.6 kB / 0.9535 GB, free: 7.562 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005329/1.134, allocations: 202.9 kB / 0.9537 GB, free: 7.367 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002517/1.135, allocations: 84 kB / 0.9538 GB, free: 7.285 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.004913/1.139, allocations: 3.273 MB / 0.957 GB, free: 4.027 MB / 0.5417 GB Notification: Performance of sort global known variables: time 3.01e-07/1.139, allocations: 0 / 0.957 GB, free: 4.027 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.006569/1.146, allocations: 1.555 MB / 0.9585 GB, free: 2.477 MB / 0.5417 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 (253): * Single equations (assignments): 248 * 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%) 21,(3,100.0%) 21} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005764/1.147, allocations: 207.7 kB / 0.9587 GB, free: 2.273 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.2086/1.355, allocations: 8.805 MB / 0.9673 GB, free: 185.4 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 9.197e-06/1.355, allocations: 5.719 kB / 0.9673 GB, free: 185.4 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.005485/1.361, allocations: 3.546 MB / 0.9707 GB, free: 184.2 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004763/1.366, allocations: 0.6351 MB / 0.9714 GB, free: 183.9 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02475/1.39, allocations: 17.65 MB / 0.9886 GB, free: 175.1 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003982/1.394, allocations: 4.31 MB / 0.9928 GB, free: 173.5 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001595/1.396, allocations: 396 kB / 0.9932 GB, free: 173.5 MB / 0.5417 GB Notification: Performance of SimCode: time 1.302e-06/1.396, allocations: 0 / 0.9932 GB, free: 173.5 MB / 0.5417 GB Notification: Performance of Templates: time 0.133/1.529, allocations: 135.3 MB / 1.125 GB, free: 45.18 MB / 0.5417 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotion2.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotion2.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotion2 --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotion2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/FreeMotion2/FreeMotion2.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotion2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches