Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotion.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.FreeMotion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|freeMotion.Q.1.|freeMotion.Q.2.|freeMotion.Q.3.|freeMotion.Q.4.|freeMotion.r_rel_a.1.|freeMotion.r_rel_a.2.|freeMotion.r_rel_a.3.|freeMotion.v_rel_a.1.|freeMotion.v_rel_a.2.|freeMotion.v_rel_a.3.|freeMotion.w_rel_b.1.|freeMotion.w_rel_b.2.|freeMotion.w_rel_b.3.",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotion") translateModel(ModelicaTest.MultiBody.Joints.FreeMotion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|freeMotion.Q.1.|freeMotion.Q.2.|freeMotion.Q.3.|freeMotion.Q.4.|freeMotion.r_rel_a.1.|freeMotion.r_rel_a.2.|freeMotion.r_rel_a.3.|freeMotion.v_rel_a.1.|freeMotion.v_rel_a.2.|freeMotion.v_rel_a.3.|freeMotion.w_rel_b.1.|freeMotion.w_rel_b.2.|freeMotion.w_rel_b.3.",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotion") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009918/0.0009918, allocations: 202.1 kB / 15.8 MB, free: 6.332 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.257/1.257, allocations: 226.5 MB / 243.1 MB, free: 12.57 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000776/0.000776, allocations: 96.89 kB / 295.1 MB, free: 4.41 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1871/0.1871, allocations: 44.83 MB / 392 MB, free: 11.39 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002484/0.0002484, allocations: 12 kB / 464.7 MB, free: 68.09 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09818/0.09844, allocations: 62.96 MB / 0.5153 GB, free: 5.129 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion): time 0.02174/0.1202, allocations: 26.41 MB / 0.5411 GB, free: 10.63 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0126/0.1329, allocations: 6.471 MB / 0.5474 GB, free: 4.141 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003751/0.1367, allocations: 123.7 kB / 0.5476 GB, free: 4.02 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002884/0.1396, allocations: 1.268 MB / 0.5488 GB, free: 2.746 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.1959/0.3355, allocations: 3.996 MB / 0.5527 GB, free: 11.09 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001609/0.3371, allocations: 416.1 kB / 0.5531 GB, free: 11.08 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.006275/0.3434, allocations: 4.352 MB / 0.5573 GB, free: 11.06 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003295/0.3468, allocations: 2.163 MB / 0.5595 GB, free: 10.77 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001896/0.3487, allocations: 1.032 MB / 0.5605 GB, free: 10.77 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00252/0.3512, allocations: 1.671 MB / 0.5621 GB, free: 10.77 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004301/0.3517, allocations: 125.8 kB / 0.5622 GB, free: 10.77 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001991/0.3537, allocations: 0.892 MB / 0.5631 GB, free: 10.76 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001546/0.3552, allocations: 1.522 MB / 0.5646 GB, free: 10.76 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007994/0.356, allocations: 0.7492 MB / 0.5653 GB, free: 10.73 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004939/0.361, allocations: 4.711 MB / 0.5699 GB, free: 9.539 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.999e-06/0.361, allocations: 1.375 kB / 0.5699 GB, free: 9.539 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.863e-06/0.361, allocations: 0 / 0.5699 GB, free: 9.539 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001746/0.3612, allocations: 1.641 kB / 0.5699 GB, free: 9.539 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1512 * Number of variables: 1512 Notification: Performance of Generate backend data structure: time 0.006869/0.3681, allocations: 3.514 MB / 0.5733 GB, free: 7.328 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.708e-05/0.3681, allocations: 8.625 kB / 0.5733 GB, free: 7.328 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01111/0.3792, allocations: 3.299 MB / 0.5766 GB, free: 5.773 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004036/0.3833, allocations: 1.999 MB / 0.5785 GB, free: 4.957 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000109/0.3835, allocations: 181.3 kB / 0.5787 GB, free: 4.949 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008601/0.3843, allocations: 330.7 kB / 0.579 GB, free: 4.918 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01316/0.3975, allocations: 10.48 MB / 0.5892 GB, free: 316 kB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.492e-05/0.3976, allocations: 27.56 kB / 0.5893 GB, free: 292 kB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003945/0.398, allocations: 107.8 kB / 0.5894 GB, free: 264 kB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003615/0.4016, allocations: 2.504 MB / 0.5918 GB, free: 14.17 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01682/0.4185, allocations: 9.972 MB / 0.6016 GB, free: 6.602 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04735/0.4659, allocations: 35.01 MB / 0.6357 GB, free: 3 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008084/0.474, allocations: 4.299 MB / 0.6399 GB, free: 14.48 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003055/0.4771, allocations: 2.152 MB / 0.642 GB, free: 12.34 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001219/0.4784, allocations: 1.32 MB / 0.6433 GB, free: 10.8 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.824e-05/0.4784, allocations: 60.5 kB / 0.6434 GB, free: 10.73 MB / 442.7 MB Notification: Performance of pre-optimization done (n=236): time 5.45e-06/0.4784, allocations: 0 / 0.6434 GB, free: 10.73 MB / 442.7 MB Notification: Performance of matching and sorting (n=252): time 0.03848/0.5169, allocations: 16.72 MB / 0.6597 GB, free: 9.93 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001227/0.5182, allocations: 1.531 MB / 0.6612 GB, free: 8.242 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003438/0.5216, allocations: 2.683 MB / 0.6638 GB, free: 5.543 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004565/0.5221, allocations: 58.8 kB / 0.6639 GB, free: 5.48 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001896/0.524, allocations: 2.664 MB / 0.6665 GB, free: 2.828 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001263/0.5253, allocations: 0.926 MB / 0.6674 GB, free: 1.91 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002573/0.5256, allocations: 117.5 kB / 0.6675 GB, free: 1.797 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0003637/0.5259, allocations: 0.5418 MB / 0.668 GB, free: 1.246 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003456/0.5294, allocations: 2.396 MB / 0.6704 GB, free: 14.84 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005211/0.5346, allocations: 5.37 MB / 0.6756 GB, free: 8.031 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005088/0.5397, allocations: 3.592 MB / 0.6791 GB, free: 4.445 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.893e-05/0.5398, allocations: 35.98 kB / 0.6792 GB, free: 4.41 MB / 474.7 MB Notification: Performance of matching and sorting (n=740) (initialization): time 0.02201/0.5618, allocations: 9.692 MB / 0.6886 GB, free: 10.7 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.203e-05/0.5619, allocations: 52 kB / 0.6887 GB, free: 10.65 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01303/0.575, allocations: 4.882 MB / 0.6934 GB, free: 5.754 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01093/0.586, allocations: 2.48 MB / 0.6959 GB, free: 3.258 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004244/0.5902, allocations: 1.263 MB / 0.6971 GB, free: 1.992 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008082/0.5983, allocations: 5.858 MB / 0.7028 GB, free: 11.87 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004454/0.6028, allocations: 393.3 kB / 0.7032 GB, free: 11.48 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007738/0.6037, allocations: 320 kB / 0.7035 GB, free: 11.17 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 468 * Number of states: 0 () * Number of discrete variables: 26 (freeMotion.arrow.arrowLine.twoHeadedArrow,freeMotion.arrow.headAtOrigin,frame_a1.color_x[3],frame_a1.color_x[2],frame_a1.color_x[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],freeMotion.arrowColor[3],freeMotion.arrowColor[2],freeMotion.arrowColor[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (678): * Single equations (assignments): 666 * Array equations: 8 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003674/0.6073, allocations: 2.06 MB / 0.7055 GB, free: 9.102 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004355/0.6078, allocations: 276.5 kB / 0.7058 GB, free: 8.828 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00907/0.6169, allocations: 5.31 MB / 0.711 GB, free: 3.484 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.007907/0.6248, allocations: 4.587 MB / 0.7154 GB, free: 14.88 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.049e-05/0.6248, allocations: 4 kB / 0.7154 GB, free: 14.87 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.914e-05/0.6248, allocations: 11.92 kB / 0.7155 GB, free: 14.86 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02197/0.6468, allocations: 14.42 MB / 0.7295 GB, free: 244 kB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.229e-05/0.6469, allocations: 12 kB / 0.7295 GB, free: 232 kB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001539/0.6484, allocations: 403.4 kB / 0.7299 GB, free: 15.83 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004118/0.6526, allocations: 1.244 MB / 0.7311 GB, free: 14.57 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002975/0.6529, allocations: 63.95 kB / 0.7312 GB, free: 14.51 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00435/0.6572, allocations: 4.44 MB / 0.7355 GB, free: 9.805 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.000897/0.6581, allocations: 1.475 MB / 0.737 GB, free: 8.191 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01233/0.6705, allocations: 7.98 MB / 0.7448 GB, free: 48 kB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008991/0.6714, allocations: 329.5 kB / 0.7451 GB, free: 15.7 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003989/0.6719, allocations: 55.94 kB / 0.7451 GB, free: 15.65 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001396/0.6733, allocations: 199.4 kB / 0.7453 GB, free: 15.46 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003049/0.6736, allocations: 160.9 kB / 0.7455 GB, free: 15.3 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001633/0.6737, allocations: 75.97 kB / 0.7456 GB, free: 15.23 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.002333/0.6761, allocations: 1.636 MB / 0.7472 GB, free: 13.58 MB / 0.5417 GB Notification: Performance of sort global known variables: time 2.2e-07/0.6761, allocations: 0 / 0.7472 GB, free: 13.58 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.004226/0.6803, allocations: 1.061 MB / 0.7482 GB, free: 12.52 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 42 * Number of states: 12 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],freeMotion.r_rel_a[1],freeMotion.r_rel_a[2],freeMotion.r_rel_a[3],freeMotion.v_rel_a[1],freeMotion.v_rel_a[2],freeMotion.v_rel_a[3],freeMotion.w_rel_b[1],freeMotion.w_rel_b[2],freeMotion.w_rel_b[3]) * 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 (192): * Single equations (assignments): 182 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004618/0.6808, allocations: 189.5 kB / 0.7484 GB, free: 12.33 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01018/0.691, allocations: 6.405 MB / 0.7546 GB, free: 5.875 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 9.298e-06/0.691, allocations: 0.5 kB / 0.7546 GB, free: 5.875 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.004538/0.6956, allocations: 2.843 MB / 0.7574 GB, free: 2.965 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002302/0.6979, allocations: 387.5 kB / 0.7578 GB, free: 2.594 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2188/0.9167, allocations: 12.65 MB / 0.7701 GB, free: 192.2 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003963/0.9207, allocations: 3.238 MB / 0.7733 GB, free: 191.4 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001136/0.9219, allocations: 260.5 kB / 0.7735 GB, free: 191.4 MB / 0.5417 GB Notification: Performance of SimCode: time 6.41e-07/0.9219, allocations: 0 / 0.7735 GB, free: 191.4 MB / 0.5417 GB Notification: Performance of Templates: time 0.1141/1.036, allocations: 129.3 MB / 0.8998 GB, free: 77.3 MB / 0.5417 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotion.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotion.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotion.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotion.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotion.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotion --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotion.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotion_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/FreeMotion/FreeMotion.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches