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.0009475/0.0009476, allocations: 194.5 kB / 16.78 MB, free: 5.012 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.315/1.315, allocations: 226.5 MB / 244.1 MB, free: 8.129 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007639/0.0007639, allocations: 109.6 kB / 296.1 MB, free: 6.906 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3281/0.3281, allocations: 44.82 MB / 393 MB, free: 35.69 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003093/0.0003093, allocations: 8 kB / 465.9 MB, free: 12.75 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3335/0.3339, allocations: 62.96 MB / 0.5165 GB, free: 37.01 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1334/0.4673, allocations: 111.3 MB / 0.6251 GB, free: 10.11 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002434/0.4675, allocations: 79.95 kB / 0.6252 GB, free: 10.03 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4965/0.964, allocations: 118.4 MB / 0.7409 GB, free: 94.33 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.825e-06/0.9641, allocations: 7.938 kB / 0.7409 GB, free: 94.32 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0002787/0.9644, allocations: 122.2 kB / 0.741 GB, free: 94.31 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.01701/0.9814, allocations: 6.108 MB / 0.7469 GB, free: 90.21 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.389e-05/0.9814, allocations: 10.41 kB / 0.747 GB, free: 90.21 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02003/1.001, allocations: 5.3 MB / 0.7521 GB, free: 87.39 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01187/1.013, allocations: 5.936 MB / 0.7579 GB, free: 83.82 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003011/1.014, allocations: 429.5 kB / 0.7583 GB, free: 83.62 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002005/1.016, allocations: 0.5665 MB / 0.7589 GB, free: 83.42 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02108/1.037, allocations: 13.56 MB / 0.7721 GB, free: 69.73 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002258/1.037, allocations: 87.33 kB / 0.7722 GB, free: 69.64 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008567/1.038, allocations: 275.8 kB / 0.7725 GB, free: 69.38 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001219/1.039, allocations: 1.282 MB / 0.7737 GB, free: 68.09 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01795/1.057, allocations: 11.27 MB / 0.7847 GB, free: 56.8 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0544/1.112, allocations: 61.21 MB / 0.8445 GB, free: 9.656 MB / 0.4949 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01256/1.124, allocations: 5.498 MB / 0.8499 GB, free: 4.004 MB / 0.4949 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003873/1.128, allocations: 3.28 MB / 0.8531 GB, free: 0.7188 MB / 0.4949 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006407/1.129, allocations: 0.6877 MB / 0.8538 GB, free: 15.92 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.824e-05/1.129, allocations: 64.5 kB / 0.8538 GB, free: 15.85 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=245): time 5.32e-06/1.129, allocations: 0 / 0.8538 GB, free: 15.85 MB / 0.5105 GB Notification: Performance of matching and sorting (n=311): time 0.3473/1.476, allocations: 32.57 MB / 0.8856 GB, free: 130.3 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.677e-05/1.476, allocations: 264.6 kB / 0.8859 GB, free: 130 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007991/1.484, allocations: 5.174 MB / 0.8909 GB, free: 129.7 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0007116/1.485, allocations: 71.92 kB / 0.891 GB, free: 129.7 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.002529/1.488, allocations: 3.976 MB / 0.8949 GB, free: 128.6 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001285/1.489, allocations: 1.158 MB / 0.896 GB, free: 128 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005075/1.489, allocations: 151.1 kB / 0.8962 GB, free: 128 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0003212/1.49, allocations: 0.6232 MB / 0.8968 GB, free: 127.7 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00534/1.495, allocations: 3.262 MB / 0.8999 GB, free: 127.6 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007974/1.503, allocations: 7.456 MB / 0.9072 GB, free: 122.3 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01375/1.517, allocations: 11.63 MB / 0.9186 GB, free: 115.8 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002565/1.517, allocations: 41.06 kB / 0.9186 GB, free: 115.8 MB / 0.5261 GB Notification: Performance of matching and sorting (n=985) (initialization): time 0.02783/1.545, allocations: 12.41 MB / 0.9307 GB, free: 111.1 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001323/1.545, allocations: 66.91 kB / 0.9308 GB, free: 111.1 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002236/1.545, allocations: 152.1 kB / 0.931 GB, free: 111.1 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005885/1.551, allocations: 2.112 MB / 0.933 GB, free: 110.7 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00625/1.558, allocations: 1.716 MB / 0.9347 GB, free: 110.5 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01604/1.574, allocations: 14.37 MB / 0.9487 GB, free: 102.9 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00639/1.58, allocations: 444 kB / 0.9491 GB, free: 102.8 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001786/1.582, allocations: 446.1 kB / 0.9496 GB, free: 102.7 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 663 * Number of states: 0 () * Number of discrete variables: 44 (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.arrow.arrowLine.twoHeadedArrow,freeMotion.arrow.headAtOrigin,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 (909): * Single equations (assignments): 904 * 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.00726/1.589, allocations: 2.766 MB / 0.9523 GB, free: 101.4 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00126/1.591, allocations: 499.2 kB / 0.9527 GB, free: 101.1 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01165/1.602, allocations: 6.967 MB / 0.9596 GB, free: 98.43 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.309e-05/1.602, allocations: 37.16 kB / 0.9596 GB, free: 98.43 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.849e-05/1.602, allocations: 11.03 kB / 0.9596 GB, free: 98.43 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.458e-05/1.602, allocations: 13.59 kB / 0.9596 GB, free: 98.43 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02813/1.63, allocations: 15.82 MB / 0.9751 GB, free: 92.23 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.836e-05/1.631, allocations: 7.062 kB / 0.9751 GB, free: 92.23 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002382/1.633, allocations: 494.6 kB / 0.9755 GB, free: 92.19 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004375/1.637, allocations: 1.876 MB / 0.9774 GB, free: 91.74 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005475/1.638, allocations: 58.19 kB / 0.9774 GB, free: 91.7 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01492/1.653, allocations: 12.85 MB / 0.99 GB, free: 80.41 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.144e-06/1.653, allocations: 17.27 kB / 0.99 GB, free: 80.4 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01512/1.668, allocations: 11.13 MB / 1.001 GB, free: 70.63 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001702/1.67, allocations: 0.5315 MB / 1.001 GB, free: 70.1 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001162/1.671, allocations: 61.67 kB / 1.001 GB, free: 70.04 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002735/1.674, allocations: 207.9 kB / 1.002 GB, free: 69.91 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006756/1.674, allocations: 205.2 kB / 1.002 GB, free: 69.78 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002307/1.675, allocations: 78.91 kB / 1.002 GB, free: 69.7 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.005794/1.68, allocations: 3.264 MB / 1.005 GB, free: 67.03 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.8e-07/1.68, allocations: 0 / 1.005 GB, free: 67.03 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.007975/1.688, allocations: 1.473 MB / 1.007 GB, free: 65.56 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (249): * Single equations (assignments): 244 * 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.0008799/1.689, allocations: 221.2 kB / 1.007 GB, free: 65.36 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01176/1.701, allocations: 8.144 MB / 1.015 GB, free: 58.15 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.035e-05/1.701, allocations: 0 / 1.015 GB, free: 58.15 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.006397/1.708, allocations: 3.865 MB / 1.018 GB, free: 54.87 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008355/1.716, allocations: 0.6621 MB / 1.019 GB, free: 54.3 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02419/1.74, allocations: 17.23 MB / 1.036 GB, free: 37.25 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005264/1.746, allocations: 4.329 MB / 1.04 GB, free: 32.91 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001624/1.747, allocations: 395.4 kB / 1.041 GB, free: 32.52 MB / 0.5261 GB Notification: Performance of SimCode: time 1.152e-06/1.747, allocations: 0 / 1.041 GB, free: 32.52 MB / 0.5261 GB Notification: Performance of Templates: time 0.4022/2.149, allocations: 134 MB / 1.171 GB, free: 94.07 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/jenkins1/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