Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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_4.0.0_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_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001292/0.001292, allocations: 105 kB / 17.21 MB, free: 6.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001425/0.001425, allocations: 194 kB / 18.12 MB, free: 5.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.441/1.441, allocations: 222.9 MB / 241.8 MB, free: 15.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2401/0.2401, allocations: 44.18 MB / 336.1 MB, free: 2.984 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001342/0.001342, allocations: 70.77 kB / 407.7 MB, free: 27.69 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1521/0.1535, allocations: 60.82 MB / 468.5 MB, free: 14.84 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion2): time 0.3896/0.5431, allocations: 74.22 MB / 0.53 GB, free: 9.637 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0396/0.5828, allocations: 14.93 MB / 0.5446 GB, free: 1.773 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02088/0.6037, allocations: 332 kB / 0.5449 GB, free: 1.719 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009321/0.6131, allocations: 4.159 MB / 0.549 GB, free: 15.23 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008959/0.6221, allocations: 2.216 MB / 0.5511 GB, free: 13.65 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003708/0.6259, allocations: 0.9959 MB / 0.5521 GB, free: 12.96 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01497/0.6409, allocations: 9.859 MB / 0.5617 GB, free: 5.297 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009575/0.6505, allocations: 4.998 MB / 0.5666 GB, free: 256 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005101/0.6556, allocations: 1.974 MB / 0.5686 GB, free: 14.27 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00665/0.6623, allocations: 3.283 MB / 0.5718 GB, free: 10.97 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002455/0.6648, allocations: 340 kB / 0.5721 GB, free: 10.64 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00481/0.6697, allocations: 1.291 MB / 0.5733 GB, free: 9.352 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00498/0.6747, allocations: 2.657 MB / 0.5759 GB, free: 6.688 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008641/0.6833, allocations: 3.037 MB / 0.5789 GB, free: 3.633 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01478/0.6982, allocations: 9.525 MB / 0.5882 GB, free: 10.08 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.586e-06/0.6982, allocations: 0 / 0.5882 GB, free: 10.08 MB / 430.1 MB Notification: Performance of FrontEnd: time 3.096e-06/0.6982, allocations: 4 kB / 0.5882 GB, free: 10.07 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0004102/0.6987, allocations: 0 / 0.5882 GB, free: 10.07 MB / 430.1 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.02026/0.7189, allocations: 6.91 MB / 0.595 GB, free: 3.082 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.481e-05/0.719, allocations: 8.031 kB / 0.595 GB, free: 3.074 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02511/0.7441, allocations: 3.339 MB / 0.5982 GB, free: 15.72 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01368/0.7578, allocations: 4.431 MB / 0.6026 GB, free: 11.21 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005561/0.7584, allocations: 329 kB / 0.6029 GB, free: 10.88 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003149/0.7616, allocations: 455.6 kB / 0.6033 GB, free: 10.44 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03435/0.796, allocations: 13.27 MB / 0.6163 GB, free: 12.29 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004747/0.7965, allocations: 71.36 kB / 0.6163 GB, free: 12.22 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002198/0.7987, allocations: 207.8 kB / 0.6165 GB, free: 12.02 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005116/0.8039, allocations: 2.586 MB / 0.6191 GB, free: 9.434 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02679/0.8307, allocations: 11.55 MB / 0.6303 GB, free: 13.88 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09121/0.922, allocations: 53.44 MB / 0.6825 GB, free: 6.906 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0144/0.9364, allocations: 5.676 MB / 0.6881 GB, free: 1.086 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005125/0.9416, allocations: 3.5 MB / 0.6915 GB, free: 13.57 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009218/0.9425, allocations: 0.6838 MB / 0.6921 GB, free: 12.78 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.058e-05/0.9426, allocations: 56.56 kB / 0.6922 GB, free: 12.71 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=245): time 9.679e-06/0.9426, allocations: 0 / 0.6922 GB, free: 12.71 MB / 0.5294 GB Notification: Performance of matching and sorting (n=315): time 0.421/1.364, allocations: 36.53 MB / 0.7279 GB, free: 182.3 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001463/1.364, allocations: 270.6 kB / 0.7281 GB, free: 182 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007546/1.371, allocations: 5.228 MB / 0.7332 GB, free: 180.1 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0008772/1.372, allocations: 76.95 kB / 0.7333 GB, free: 180.1 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002281/1.375, allocations: 3.909 MB / 0.7371 GB, free: 177.1 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001468/1.376, allocations: 1.176 MB / 0.7383 GB, free: 176.2 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002085/1.378, allocations: 1.6 MB / 0.7398 GB, free: 175.5 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 5.379e-05/1.378, allocations: 309.1 kB / 0.7401 GB, free: 175.1 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004343/1.383, allocations: 3.629 MB / 0.7437 GB, free: 173.6 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005621/1.388, allocations: 7.835 MB / 0.7513 GB, free: 164.6 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01216/1.4, allocations: 12.27 MB / 0.7633 GB, free: 150.3 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001172/1.4, allocations: 44 kB / 0.7633 GB, free: 150.2 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1027) (initialization): time 0.02421/1.425, allocations: 13.75 MB / 0.7768 GB, free: 136.4 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001835/1.425, allocations: 68.97 kB / 0.7768 GB, free: 136.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002678/1.425, allocations: 147.9 kB / 0.777 GB, free: 136.2 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006255/1.431, allocations: 2.758 MB / 0.7797 GB, free: 133.5 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006442/1.438, allocations: 1.79 MB / 0.7814 GB, free: 131.7 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01833/1.456, allocations: 16.62 MB / 0.7976 GB, free: 114.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007165/1.463, allocations: 467.2 kB / 0.7981 GB, free: 114.3 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001656/1.465, allocations: 459.9 kB / 0.7985 GB, free: 113.9 MB / 0.5294 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(3,24,100.0%), (3,24,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00609/1.471, allocations: 2.771 MB / 0.8012 GB, free: 111.1 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001644/1.473, allocations: 489.8 kB / 0.8017 GB, free: 110.6 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01505/1.488, allocations: 8.048 MB / 0.8096 GB, free: 102.5 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.489e-05/1.488, allocations: 32 kB / 0.8096 GB, free: 102.5 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.709e-05/1.488, allocations: 12 kB / 0.8096 GB, free: 102.5 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.405e-05/1.488, allocations: 11.95 kB / 0.8096 GB, free: 102.5 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03348/1.522, allocations: 17.15 MB / 0.8264 GB, free: 85.24 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.492e-05/1.522, allocations: 11.88 kB / 0.8264 GB, free: 85.23 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002231/1.524, allocations: 0.4953 MB / 0.8269 GB, free: 84.73 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005697/1.53, allocations: 2.479 MB / 0.8293 GB, free: 82.25 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003603/1.53, allocations: 59.98 kB / 0.8293 GB, free: 82.19 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01532/1.545, allocations: 14.79 MB / 0.8438 GB, free: 67.14 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.246e-06/1.545, allocations: 12.8 kB / 0.8438 GB, free: 67.12 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01795/1.563, allocations: 12.59 MB / 0.8561 GB, free: 54.34 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002012/1.565, allocations: 0.5338 MB / 0.8566 GB, free: 53.78 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001755/1.567, allocations: 60 kB / 0.8567 GB, free: 53.72 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003665/1.571, allocations: 227.7 kB / 0.8569 GB, free: 53.5 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008626/1.572, allocations: 209.5 kB / 0.8571 GB, free: 53.29 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004208/1.572, allocations: 87.98 kB / 0.8572 GB, free: 53.21 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.007618/1.58, allocations: 3.297 MB / 0.8604 GB, free: 49.93 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.4e-07/1.58, allocations: 0 / 0.8604 GB, free: 49.93 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.009742/1.59, allocations: 1.558 MB / 0.8619 GB, free: 48.38 MB / 0.5294 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(3,21,100.0%), (3,21,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001111/1.591, allocations: 209.4 kB / 0.8621 GB, free: 48.17 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01334/1.604, allocations: 8.871 MB / 0.8708 GB, free: 39.29 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 9.087e-06/1.604, allocations: 0 / 0.8708 GB, free: 39.29 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.005468/1.61, allocations: 3.567 MB / 0.8743 GB, free: 35.7 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006713/1.616, allocations: 0.6418 MB / 0.8749 GB, free: 35.06 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02736/1.644, allocations: 17.55 MB / 0.892 GB, free: 17.41 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008177/1.652, allocations: 4.331 MB / 0.8963 GB, free: 13.04 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.2769/1.929, allocations: 2.462 MB / 0.8987 GB, free: 168.9 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001847/1.931, allocations: 348.7 kB / 0.899 GB, free: 168.9 MB / 0.5294 GB Notification: Performance of SimCode: time 1.292e-06/1.931, allocations: 0 / 0.899 GB, free: 168.9 MB / 0.5294 GB Notification: Performance of Templates: time 0.1186/2.049, allocations: 66.76 MB / 0.9642 GB, free: 129.2 MB / 0.5294 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches