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.001416/0.001416, allocations: 193.1 kB / 16.09 MB, free: 5.68 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.275/1.275, allocations: 226.5 MB / 243.4 MB, free: 8.098 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008387/0.0008389, allocations: 101.2 kB / 295.5 MB, free: 6.875 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3453/0.3453, allocations: 44.82 MB / 392.3 MB, free: 35.7 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003437/0.0003437, allocations: 8 kB / 465.3 MB, free: 12.68 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3217/0.3221, allocations: 62.96 MB / 0.5159 GB, free: 37.14 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion2): time 0.05149/0.3736, allocations: 67.39 MB / 0.5817 GB, free: 4.535 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.03777/0.4114, allocations: 14.28 MB / 0.5956 GB, free: 7.594 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01765/0.4291, allocations: 327.1 kB / 0.5959 GB, free: 7.273 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01187/0.441, allocations: 3.534 MB / 0.5994 GB, free: 3.723 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03127/0.4724, allocations: 10.31 MB / 0.6094 GB, free: 9.379 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.008008/0.4804, allocations: 0.9713 MB / 0.6104 GB, free: 8.406 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.1112/0.5916, allocations: 63.13 MB / 0.672 GB, free: 9.195 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01285/0.6045, allocations: 6.765 MB / 0.6787 GB, free: 2.34 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003994/0.6085, allocations: 1.782 MB / 0.6804 GB, free: 0.5508 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.3402/0.9488, allocations: 2.832 MB / 0.6832 GB, free: 64.84 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002019/0.9509, allocations: 205.1 kB / 0.6834 GB, free: 64.84 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004244/0.9551, allocations: 1.125 MB / 0.6845 GB, free: 64.84 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003973/0.9591, allocations: 2.422 MB / 0.6868 GB, free: 64.84 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 0.006034/0.9652, allocations: 2.655 MB / 0.6894 GB, free: 64.81 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01337/0.9786, allocations: 7.664 MB / 0.6969 GB, free: 64.33 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.967e-06/0.9786, allocations: 0 / 0.6969 GB, free: 64.33 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.254e-06/0.9787, allocations: 0 / 0.6969 GB, free: 64.33 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0005083/0.9792, allocations: 0.875 kB / 0.6969 GB, free: 64.33 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.02004/0.9992, allocations: 5.727 MB / 0.7025 GB, free: 61.86 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.299e-05/0.9993, allocations: 10.03 kB / 0.7025 GB, free: 61.86 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02583/1.025, allocations: 3.425 MB / 0.7058 GB, free: 61.47 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01258/1.038, allocations: 4.339 MB / 0.7101 GB, free: 60.04 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003066/1.038, allocations: 329.1 kB / 0.7104 GB, free: 60.02 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002133/1.04, allocations: 455.2 kB / 0.7108 GB, free: 60.01 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02684/1.067, allocations: 13.27 MB / 0.7238 GB, free: 55.66 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002641/1.067, allocations: 67.5 kB / 0.7239 GB, free: 55.65 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007645/1.068, allocations: 203.9 kB / 0.724 GB, free: 55.65 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004091/1.072, allocations: 2.595 MB / 0.7266 GB, free: 55.08 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02186/1.094, allocations: 11.51 MB / 0.7378 GB, free: 47.89 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06025/1.154, allocations: 53.49 MB / 0.7901 GB, free: 3.285 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01294/1.167, allocations: 5.645 MB / 0.7956 GB, free: 14.94 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004704/1.172, allocations: 3.505 MB / 0.799 GB, free: 12.88 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006987/1.173, allocations: 0.6892 MB / 0.7997 GB, free: 12.12 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.478e-05/1.173, allocations: 59.56 kB / 0.7997 GB, free: 12.07 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=245): time 7.955e-06/1.173, allocations: 0 / 0.7997 GB, free: 12.07 MB / 0.4948 GB Notification: Performance of matching and sorting (n=315): time 0.1093/1.282, allocations: 36.57 MB / 0.8354 GB, free: 8.176 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001651/1.282, allocations: 268.6 kB / 0.8357 GB, free: 7.859 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01251/1.295, allocations: 5.195 MB / 0.8408 GB, free: 2.676 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.001074/1.296, allocations: 73.7 kB / 0.8408 GB, free: 2.598 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.003695/1.3, allocations: 3.92 MB / 0.8447 GB, free: 14.7 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.002262/1.302, allocations: 1.167 MB / 0.8458 GB, free: 13.54 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002133/1.304, allocations: 156 kB / 0.8459 GB, free: 13.39 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.001337/1.306, allocations: 0.6329 MB / 0.8466 GB, free: 12.75 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007207/1.313, allocations: 3.603 MB / 0.8501 GB, free: 9.137 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01009/1.323, allocations: 7.8 MB / 0.8577 GB, free: 15.36 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01759/1.341, allocations: 12.23 MB / 0.8696 GB, free: 1.66 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001454/1.341, allocations: 40 kB / 0.8697 GB, free: 1.621 MB / 0.5573 GB Notification: Performance of matching and sorting (n=1027) (initialization): time 0.03225/1.373, allocations: 13.71 MB / 0.8831 GB, free: 4.758 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001199/1.373, allocations: 68 kB / 0.8831 GB, free: 4.691 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000226/1.374, allocations: 152 kB / 0.8833 GB, free: 4.547 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00741/1.381, allocations: 2.753 MB / 0.886 GB, free: 1.785 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007254/1.388, allocations: 1.786 MB / 0.8877 GB, free: 152 kB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3478/1.736, allocations: 16.63 MB / 0.904 GB, free: 223.9 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008633/1.745, allocations: 474 kB / 0.9044 GB, free: 223.9 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002889/1.748, allocations: 453.5 kB / 0.9048 GB, free: 223.9 MB / 0.5886 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.009081/1.757, allocations: 2.773 MB / 0.9075 GB, free: 223.8 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002005/1.759, allocations: 484.8 kB / 0.908 GB, free: 223.8 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01584/1.775, allocations: 8.028 MB / 0.9158 GB, free: 221.5 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.017e-05/1.775, allocations: 37.53 kB / 0.9159 GB, free: 221.5 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.985e-05/1.775, allocations: 14.03 kB / 0.9159 GB, free: 221.5 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.941e-05/1.775, allocations: 15.44 kB / 0.9159 GB, free: 221.5 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03739/1.812, allocations: 17.13 MB / 0.9326 GB, free: 215.2 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.585e-05/1.812, allocations: 11.09 kB / 0.9327 GB, free: 215.2 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002787/1.815, allocations: 0.4934 MB / 0.9331 GB, free: 215.2 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005985/1.821, allocations: 2.481 MB / 0.9356 GB, free: 214.6 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006699/1.822, allocations: 61.31 kB / 0.9356 GB, free: 214.6 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01678/1.839, allocations: 14.77 MB / 0.95 GB, free: 207.3 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.065e-05/1.839, allocations: 12.78 kB / 0.9501 GB, free: 207.3 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0185/1.857, allocations: 12.55 MB / 0.9623 GB, free: 200.4 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002018/1.859, allocations: 0.5396 MB / 0.9628 GB, free: 200 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00109/1.86, allocations: 63.84 kB / 0.9629 GB, free: 200 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002426/1.863, allocations: 239 kB / 0.9631 GB, free: 199.8 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005951/1.863, allocations: 213 kB / 0.9633 GB, free: 199.7 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000235/1.864, allocations: 80 kB / 0.9634 GB, free: 199.6 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.0077/1.871, allocations: 3.274 MB / 0.9666 GB, free: 196.9 MB / 0.5886 GB Notification: Performance of sort global known variables: time 6.21e-07/1.871, allocations: 6.516 kB / 0.9666 GB, free: 196.9 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.009865/1.881, allocations: 1.552 MB / 0.9681 GB, free: 195.4 MB / 0.5886 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.0008605/1.882, allocations: 209.7 kB / 0.9683 GB, free: 195.2 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.01415/1.896, allocations: 8.808 MB / 0.9769 GB, free: 186.4 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 2.227e-05/1.896, allocations: 3.938 kB / 0.9769 GB, free: 186.4 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.006207/1.903, allocations: 3.548 MB / 0.9804 GB, free: 182.9 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01088/1.914, allocations: 0.6449 MB / 0.981 GB, free: 182.3 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03462/1.948, allocations: 17.63 MB / 0.9982 GB, free: 164.7 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007947/1.956, allocations: 4.312 MB / 1.002 GB, free: 160.3 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002453/1.959, allocations: 399.3 kB / 1.003 GB, free: 159.9 MB / 0.5886 GB Notification: Performance of SimCode: time 1.072e-06/1.959, allocations: 0 / 1.003 GB, free: 159.9 MB / 0.5886 GB Notification: Performance of Templates: time 0.178/2.137, allocations: 135.1 MB / 1.135 GB, free: 24.79 MB / 0.5886 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