Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.Forces.ForceWithTwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses") translateModel(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00111/0.00111, allocations: 103 kB / 16.4 MB, free: 6.477 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.001128/0.001128, allocations: 192.1 kB / 17.34 MB, free: 5.754 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.423/1.423, allocations: 205.1 MB / 223.2 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2153/0.2153, allocations: 43.53 MB / 314.1 MB, free: 468 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001421/0.001421, allocations: 67.91 kB / 441.8 MB, free: 5.676 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1179/0.1193, allocations: 57.79 MB / 499.6 MB, free: 11.8 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses): time 0.01142/0.1307, allocations: 10.4 MB / 0.498 GB, free: 1.355 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.008509/0.1393, allocations: 3.873 MB / 0.5018 GB, free: 13.47 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002077/0.1414, allocations: 59.81 kB / 0.5019 GB, free: 13.41 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004048/0.1455, allocations: 2.067 MB / 0.5039 GB, free: 11.34 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004787/0.1503, allocations: 1.712 MB / 0.5056 GB, free: 9.621 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00157/0.1519, allocations: 0.694 MB / 0.5062 GB, free: 8.926 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.005241/0.1572, allocations: 3.814 MB / 0.51 GB, free: 5.105 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002992/0.1602, allocations: 2.598 MB / 0.5125 GB, free: 2.453 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002064/0.1623, allocations: 1.32 MB / 0.5138 GB, free: 1.129 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002699/0.165, allocations: 1.857 MB / 0.5156 GB, free: 15.27 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006982/0.1657, allocations: 268 kB / 0.5159 GB, free: 15 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002368/0.1681, allocations: 1.186 MB / 0.517 GB, free: 13.82 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001599/0.1697, allocations: 1.687 MB / 0.5187 GB, free: 12.12 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002043/0.1717, allocations: 1.907 MB / 0.5205 GB, free: 10.21 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006717/0.1785, allocations: 6.201 MB / 0.5266 GB, free: 3.984 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.174e-06/0.1785, allocations: 8 kB / 0.5266 GB, free: 3.977 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.595e-06/0.1785, allocations: 0 / 0.5266 GB, free: 3.977 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0001208/0.1786, allocations: 0 / 0.5266 GB, free: 3.977 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1319 * Number of variables: 1319 Notification: Performance of Generate backend data structure: time 0.2992/0.4778, allocations: 4.228 MB / 0.5307 GB, free: 37.92 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.821e-05/0.4779, allocations: 12.89 kB / 0.5307 GB, free: 37.91 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01813/0.4961, allocations: 2.426 MB / 0.5331 GB, free: 37.67 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008001/0.5041, allocations: 2.498 MB / 0.5355 GB, free: 37.03 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001978/0.5043, allocations: 192 kB / 0.5357 GB, free: 37.02 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001022/0.5054, allocations: 275.4 kB / 0.536 GB, free: 37.02 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0169/0.5223, allocations: 8.572 MB / 0.5444 GB, free: 33.24 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001155/0.5224, allocations: 45.83 kB / 0.5444 GB, free: 33.21 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003343/0.5228, allocations: 127.3 kB / 0.5445 GB, free: 33.16 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003501/0.5263, allocations: 1.74 MB / 0.5462 GB, free: 32.85 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01546/0.5418, allocations: 7.284 MB / 0.5533 GB, free: 30.14 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04543/0.5873, allocations: 34.04 MB / 0.5866 GB, free: 12.58 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01344/0.6008, allocations: 3.477 MB / 0.59 GB, free: 8.957 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003714/0.6045, allocations: 1.717 MB / 0.5917 GB, free: 7.227 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01728/0.6218, allocations: 7.443 MB / 0.5989 GB, free: 15.52 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.486e-05/0.6219, allocations: 43.56 kB / 0.599 GB, free: 15.47 MB / 446.1 MB Notification: Performance of pre-optimization done (n=151): time 8.766e-06/0.622, allocations: 4 kB / 0.599 GB, free: 15.47 MB / 446.1 MB Notification: Performance of matching and sorting (n=188): time 0.0719/0.6939, allocations: 19.63 MB / 0.6181 GB, free: 11.68 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001821/0.6941, allocations: 197.2 kB / 0.6183 GB, free: 11.45 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007193/0.7013, allocations: 3.754 MB / 0.622 GB, free: 7.699 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005545/0.7019, allocations: 53.7 kB / 0.622 GB, free: 7.641 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002601/0.7045, allocations: 2.803 MB / 0.6248 GB, free: 4.797 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001137/0.7057, allocations: 0.7173 MB / 0.6255 GB, free: 4.07 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00218/0.7079, allocations: 1.198 MB / 0.6267 GB, free: 2.859 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001341/0.708, allocations: 305.1 kB / 0.6269 GB, free: 2.559 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003192/0.7112, allocations: 2.202 MB / 0.6291 GB, free: 360 kB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005793/0.717, allocations: 5.77 MB / 0.6347 GB, free: 8.805 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01078/0.7278, allocations: 8.588 MB / 0.6431 GB, free: 14.46 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001189/0.728, allocations: 40 kB / 0.6432 GB, free: 14.43 MB / 494.1 MB Notification: Performance of matching and sorting (n=782) (initialization): time 0.02103/0.7491, allocations: 9.174 MB / 0.6521 GB, free: 5.238 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002048/0.7493, allocations: 60 kB / 0.6522 GB, free: 5.18 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003031/0.7496, allocations: 124 kB / 0.6523 GB, free: 5.059 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008044/0.7577, allocations: 1.668 MB / 0.6539 GB, free: 3.383 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006459/0.7642, allocations: 1.318 MB / 0.6552 GB, free: 2.062 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01871/0.7829, allocations: 9.907 MB / 0.6649 GB, free: 8.008 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006688/0.7897, allocations: 315.5 kB / 0.6652 GB, free: 7.699 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001489/0.7912, allocations: 368 kB / 0.6655 GB, free: 7.34 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 570 * Number of states: 0 () * Number of discrete variables: 36 (FixedTranslation2.color[3],FixedTranslation2.color[2],FixedTranslation2.color[1],force.massColor[3],force.massColor[2],force.massColor[1],force.color_b[3],force.color_b[2],force.color_b[1],force.color_a[3],force.color_a[2],force.color_a[1],FixedTranslation1.color[3],FixedTranslation1.color[2],FixedTranslation1.color[1],BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[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 (714): * Single equations (assignments): 710 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,43,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005588/0.7968, allocations: 1.892 MB / 0.6674 GB, free: 5.434 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001293/0.7981, allocations: 327.7 kB / 0.6677 GB, free: 5.109 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01365/0.8118, allocations: 4.137 MB / 0.6717 GB, free: 0.9609 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.104e-05/0.8119, allocations: 23.98 kB / 0.6718 GB, free: 0.9375 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.155e-05/0.8119, allocations: 12 kB / 0.6718 GB, free: 0.9258 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.062e-05/0.812, allocations: 11.91 kB / 0.6718 GB, free: 0.9141 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01959/0.8316, allocations: 8.506 MB / 0.6801 GB, free: 8.348 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.697e-05/0.8316, allocations: 4 kB / 0.6801 GB, free: 8.344 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001249/0.8329, allocations: 251.6 kB / 0.6803 GB, free: 8.098 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005324/0.8382, allocations: 1.429 MB / 0.6817 GB, free: 6.664 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002363/0.8385, allocations: 28 kB / 0.6817 GB, free: 6.637 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01363/0.8521, allocations: 9.232 MB / 0.6908 GB, free: 13.26 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.352e-06/0.8521, allocations: 4.031 kB / 0.6908 GB, free: 13.26 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01251/0.8647, allocations: 6.726 MB / 0.6973 GB, free: 6.508 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002017/0.8667, allocations: 0.6216 MB / 0.6979 GB, free: 5.863 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005015/0.8672, allocations: 36.05 kB / 0.698 GB, free: 5.828 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001423/0.8687, allocations: 83.89 kB / 0.6981 GB, free: 5.746 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003854/0.8691, allocations: 121 kB / 0.6982 GB, free: 5.629 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001452/0.8692, allocations: 55.98 kB / 0.6982 GB, free: 5.574 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.003702/0.8729, allocations: 2.328 MB / 0.7005 GB, free: 3.262 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.6e-07/0.8729, allocations: 0 / 0.7005 GB, free: 3.262 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.005343/0.8783, allocations: 0.9947 MB / 0.7015 GB, free: 2.27 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (revolute.phi,revolute.w) * 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 (130): * Single equations (assignments): 126 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,36,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004906/0.8788, allocations: 168.3 kB / 0.7016 GB, free: 2.102 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.008334/0.8871, allocations: 5.415 MB / 0.7069 GB, free: 12.7 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 4.648e-06/0.8872, allocations: 4 kB / 0.7069 GB, free: 12.7 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.002816/0.89, allocations: 1.796 MB / 0.7087 GB, free: 10.89 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002604/0.8926, allocations: 384.9 kB / 0.709 GB, free: 10.52 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01562/0.9083, allocations: 8.543 MB / 0.7174 GB, free: 1.941 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003292/0.9116, allocations: 2.969 MB / 0.7203 GB, free: 14.94 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.004076/0.9157, allocations: 1.807 MB / 0.7221 GB, free: 13.12 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005945/0.9163, allocations: 227.4 kB / 0.7223 GB, free: 12.91 MB / 0.5606 GB Notification: Performance of SimCode: time 1.123e-06/0.9163, allocations: 0 / 0.7223 GB, free: 12.91 MB / 0.5606 GB Notification: Performance of Templates: time 0.386/1.302, allocations: 36.22 MB / 0.7576 GB, free: 191 MB / 0.5762 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.sim & ./ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Forces/ForceWithTwoMasses/ForceWithTwoMasses.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches