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.001674/0.001674, allocations: 104.3 kB / 18.4 MB, free: 4.57 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.001211/0.001212, allocations: 187 kB / 19.34 MB, free: 3.641 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 / 243 MB, free: 15.15 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.2144/0.2144, allocations: 44.18 MB / 337.4 MB, free: 2.715 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00117/0.00117, allocations: 67.17 kB / 409.9 MB, free: 26.54 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1387/0.1399, allocations: 60.82 MB / 470.7 MB, free: 13.67 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion2): time 0.01674/0.1567, allocations: 14.79 MB / 485.5 MB, free: 14.81 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01123/0.168, allocations: 5.012 MB / 490.5 MB, free: 9.781 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004365/0.1724, allocations: 99.69 kB / 490.6 MB, free: 9.684 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008819/0.1813, allocations: 4.162 MB / 494.8 MB, free: 5.508 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008449/0.1898, allocations: 2.368 MB / 497.1 MB, free: 3.133 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003548/0.1934, allocations: 1.08 MB / 498.2 MB, free: 2.051 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01227/0.2057, allocations: 7.051 MB / 0.4934 GB, free: 10.98 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007911/0.2136, allocations: 5.155 MB / 0.4985 GB, free: 5.766 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006414/0.2201, allocations: 2.247 MB / 0.5007 GB, free: 3.512 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007153/0.2273, allocations: 3.076 MB / 0.5037 GB, free: 436 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.3176/0.5449, allocations: 499.1 kB / 0.5041 GB, free: 21.75 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0055/0.5505, allocations: 1.378 MB / 0.5055 GB, free: 21.75 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004959/0.5555, allocations: 2.784 MB / 0.5082 GB, free: 21.75 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00991/0.5654, allocations: 3.18 MB / 0.5113 GB, free: 20.77 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01601/0.5815, allocations: 9.934 MB / 0.521 GB, free: 19.36 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.532e-06/0.5815, allocations: 1 kB / 0.521 GB, free: 19.36 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.5815, allocations: 0 / 0.521 GB, free: 19.36 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004775/0.582, allocations: 0 / 0.521 GB, free: 19.36 MB / 382.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.03128/0.6133, allocations: 6.913 MB / 0.5278 GB, free: 15.9 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.886e-05/0.6134, allocations: 9.375 kB / 0.5278 GB, free: 15.9 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02714/0.6405, allocations: 3.341 MB / 0.531 GB, free: 14.73 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01173/0.6523, allocations: 4.513 MB / 0.5354 GB, free: 12.14 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002592/0.6526, allocations: 332.6 kB / 0.5358 GB, free: 12.03 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002289/0.6549, allocations: 450.8 kB / 0.5362 GB, free: 11.91 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02597/0.6809, allocations: 13.29 MB / 0.5492 GB, free: 2.105 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003558/0.6813, allocations: 62.78 kB / 0.5492 GB, free: 2.066 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001365/0.6827, allocations: 207 kB / 0.5494 GB, free: 1.906 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004213/0.6869, allocations: 2.6 MB / 0.552 GB, free: 15.35 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0271/0.714, allocations: 11.55 MB / 0.5632 GB, free: 4.027 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0796/0.7937, allocations: 53.15 MB / 0.6151 GB, free: 14.06 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01367/0.8074, allocations: 5.659 MB / 0.6207 GB, free: 8.277 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004852/0.8123, allocations: 3.504 MB / 0.6241 GB, free: 4.77 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000775/0.8131, allocations: 0.6857 MB / 0.6248 GB, free: 3.984 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.644e-05/0.8131, allocations: 70.23 kB / 0.6248 GB, free: 3.91 MB / 462.1 MB Notification: Performance of pre-optimization done (n=245): time 5.881e-06/0.8132, allocations: 0 / 0.6248 GB, free: 3.91 MB / 462.1 MB Notification: Performance of matching and sorting (n=315): time 0.1042/0.9173, allocations: 36.53 MB / 0.6605 GB, free: 15.31 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001864/0.9176, allocations: 265.1 kB / 0.6607 GB, free: 15 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01106/0.9286, allocations: 5.229 MB / 0.6659 GB, free: 9.773 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.001087/0.9298, allocations: 73.7 kB / 0.6659 GB, free: 9.695 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.003459/0.9332, allocations: 3.909 MB / 0.6697 GB, free: 5.785 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.002553/0.9358, allocations: 1.18 MB / 0.6709 GB, free: 4.617 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003417/0.9392, allocations: 1.591 MB / 0.6724 GB, free: 3.016 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001242/0.9394, allocations: 309.1 kB / 0.6727 GB, free: 2.711 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006102/0.9455, allocations: 3.631 MB / 0.6763 GB, free: 15.07 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00955/0.9551, allocations: 7.833 MB / 0.6839 GB, free: 5.262 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01719/0.9723, allocations: 12.27 MB / 0.6959 GB, free: 7.523 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001372/0.9725, allocations: 43.09 kB / 0.696 GB, free: 7.484 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1027) (initialization): time 0.3577/1.33, allocations: 13.76 MB / 0.7094 GB, free: 178.2 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002171/1.331, allocations: 69.95 kB / 0.7095 GB, free: 178.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004699/1.331, allocations: 145.1 kB / 0.7096 GB, free: 178.2 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009803/1.341, allocations: 2.754 MB / 0.7123 GB, free: 178.1 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008118/1.349, allocations: 1.789 MB / 0.714 GB, free: 178.1 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02029/1.369, allocations: 17.8 MB / 0.7314 GB, free: 169.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007593/1.377, allocations: 471.6 kB / 0.7319 GB, free: 169.8 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002024/1.379, allocations: 452.1 kB / 0.7323 GB, free: 169.7 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.008231/1.387, allocations: 2.775 MB / 0.735 GB, free: 168.7 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0018/1.389, allocations: 482.7 kB / 0.7355 GB, free: 168.7 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01426/1.403, allocations: 8.05 MB / 0.7433 GB, free: 164.6 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.449e-05/1.403, allocations: 37.17 kB / 0.7434 GB, free: 164.6 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.866e-05/1.403, allocations: 10.02 kB / 0.7434 GB, free: 164.6 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.989e-05/1.404, allocations: 15.52 kB / 0.7434 GB, free: 164.6 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03429/1.438, allocations: 17.07 MB / 0.7601 GB, free: 148.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.634e-05/1.438, allocations: 8 kB / 0.7601 GB, free: 148.5 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002665/1.441, allocations: 0.4992 MB / 0.7606 GB, free: 148 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006077/1.447, allocations: 2.485 MB / 0.763 GB, free: 145.5 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008106/1.448, allocations: 63.31 kB / 0.763 GB, free: 145.5 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01684/1.464, allocations: 15.86 MB / 0.7785 GB, free: 129.4 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.524e-06/1.464, allocations: 11.94 kB / 0.7786 GB, free: 129.4 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01888/1.483, allocations: 12.58 MB / 0.7908 GB, free: 116.9 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002381/1.486, allocations: 0.5329 MB / 0.7914 GB, free: 116.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002389/1.488, allocations: 63.05 kB / 0.7914 GB, free: 116.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003897/1.492, allocations: 223.7 kB / 0.7916 GB, free: 116.2 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001046/1.493, allocations: 210.2 kB / 0.7918 GB, free: 115.9 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002818/1.493, allocations: 86.64 kB / 0.7919 GB, free: 115.9 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.005634/1.499, allocations: 3.301 MB / 0.7951 GB, free: 112.6 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.6e-07/1.499, allocations: 0 / 0.7951 GB, free: 112.6 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.009401/1.509, allocations: 1.557 MB / 0.7967 GB, free: 111 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.000828/1.509, allocations: 214.6 kB / 0.7969 GB, free: 110.8 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01373/1.523, allocations: 8.914 MB / 0.8056 GB, free: 101.9 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.83e-05/1.523, allocations: 3.391 kB / 0.8056 GB, free: 101.9 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.005453/1.529, allocations: 3.564 MB / 0.8091 GB, free: 98.32 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006435/1.535, allocations: 0.6649 MB / 0.8097 GB, free: 97.67 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03664/1.572, allocations: 14.65 MB / 0.824 GB, free: 82.92 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01262/1.584, allocations: 4.328 MB / 0.8282 GB, free: 78.55 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.008017/1.593, allocations: 2.46 MB / 0.8306 GB, free: 76.08 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00186/1.594, allocations: 347.4 kB / 0.831 GB, free: 75.74 MB / 0.5294 GB Notification: Performance of SimCode: time 1.222e-06/1.594, allocations: 4 kB / 0.831 GB, free: 75.73 MB / 0.5294 GB Notification: Performance of Templates: time 0.1161/1.711, allocations: 62.75 MB / 0.8923 GB, free: 13.38 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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/FreeMotion2/FreeMotion2.csv","/var/lib/jenkins1/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