Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 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.Forces.ForceWithTwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses") translateModel(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_4.0.0_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.001002/0.001002, allocations: 104 kB / 17.63 MB, free: 5.543 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.00111/0.00111, allocations: 192.1 kB / 18.56 MB, free: 4.621 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.26/1.26, allocations: 222.9 MB / 242.2 MB, free: 15.22 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.2004/0.2004, allocations: 44.19 MB / 336.6 MB, free: 2.754 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001336/0.001337, allocations: 64.2 kB / 408.4 MB, free: 27.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1107/0.1121, allocations: 60.82 MB / 469.3 MB, free: 14.38 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses): time 0.01569/0.1278, allocations: 10.38 MB / 479.6 MB, free: 3.945 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01022/0.1381, allocations: 3.864 MB / 483.5 MB, free: 72 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001941/0.1401, allocations: 59.81 kB / 483.5 MB, free: 12 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005453/0.1456, allocations: 2.075 MB / 485.6 MB, free: 13.93 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006129/0.1518, allocations: 1.707 MB / 487.3 MB, free: 12.22 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002297/0.1541, allocations: 0.6862 MB / 488 MB, free: 11.53 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.00721/0.1613, allocations: 3.992 MB / 492 MB, free: 7.531 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00471/0.1661, allocations: 2.598 MB / 494.6 MB, free: 4.879 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002254/0.1684, allocations: 1.308 MB / 495.9 MB, free: 3.566 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002916/0.1713, allocations: 1.85 MB / 497.8 MB, free: 1.711 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008951/0.1722, allocations: 264 kB / 498 MB, free: 1.453 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002554/0.1748, allocations: 1.198 MB / 499.2 MB, free: 260 kB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002409/0.1772, allocations: 1.656 MB / 0.4891 GB, free: 14.59 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004933/0.1822, allocations: 1.903 MB / 0.491 GB, free: 12.68 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007933/0.1901, allocations: 5.989 MB / 0.4968 GB, free: 6.672 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.52e-06/0.1902, allocations: 0 / 0.4968 GB, free: 6.672 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.1902, allocations: 0 / 0.4968 GB, free: 6.672 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001668/0.1904, allocations: 0 / 0.4968 GB, free: 6.672 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: 1319 * Number of variables: 1319 Notification: Performance of Generate backend data structure: time 0.009383/0.1998, allocations: 4.225 MB / 0.501 GB, free: 2.379 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.339e-05/0.1998, allocations: 16.02 kB / 0.501 GB, free: 2.363 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2119/0.4117, allocations: 2.423 MB / 0.5034 GB, free: 46.04 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00608/0.4178, allocations: 2.391 MB / 0.5057 GB, free: 45.41 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000231/0.4181, allocations: 192 kB / 0.5059 GB, free: 45.36 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001146/0.4193, allocations: 280 kB / 0.5061 GB, free: 45.29 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.017/0.4363, allocations: 8.583 MB / 0.5145 GB, free: 41.33 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001185/0.4364, allocations: 39.08 kB / 0.5146 GB, free: 41.31 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003474/0.4368, allocations: 125.1 kB / 0.5147 GB, free: 41.26 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00329/0.4401, allocations: 1.735 MB / 0.5164 GB, free: 40.95 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01436/0.4545, allocations: 7.283 MB / 0.5235 GB, free: 38.55 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03119/0.4857, allocations: 34.16 MB / 0.5568 GB, free: 4.043 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007607/0.4934, allocations: 3.478 MB / 0.5602 GB, free: 424 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002177/0.4956, allocations: 1.709 MB / 0.5619 GB, free: 14.7 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01209/0.5077, allocations: 7.438 MB / 0.5692 GB, free: 6.996 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.029e-05/0.5078, allocations: 51.56 kB / 0.5692 GB, free: 6.938 MB / 398.1 MB Notification: Performance of pre-optimization done (n=151): time 4.028e-06/0.5078, allocations: 0 / 0.5692 GB, free: 6.938 MB / 398.1 MB Notification: Performance of matching and sorting (n=188): time 0.06666/0.5744, allocations: 19.6 MB / 0.5884 GB, free: 3.18 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001075/0.5746, allocations: 205.2 kB / 0.5886 GB, free: 2.938 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006035/0.5806, allocations: 3.739 MB / 0.5922 GB, free: 15.21 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002949/0.5809, allocations: 57.69 kB / 0.5923 GB, free: 15.14 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001986/0.5829, allocations: 2.795 MB / 0.595 GB, free: 12.31 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008258/0.5838, allocations: 0.7211 MB / 0.5957 GB, free: 11.58 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0022/0.586, allocations: 1.198 MB / 0.5969 GB, free: 10.37 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001228/0.5861, allocations: 305.1 kB / 0.5972 GB, free: 10.07 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003352/0.5895, allocations: 2.202 MB / 0.5993 GB, free: 7.863 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005605/0.5951, allocations: 5.77 MB / 0.6049 GB, free: 328 kB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01133/0.6064, allocations: 8.591 MB / 0.6133 GB, free: 5.977 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001342/0.6066, allocations: 39.94 kB / 0.6134 GB, free: 5.938 MB / 446.1 MB Notification: Performance of matching and sorting (n=782) (initialization): time 0.01915/0.6258, allocations: 9.175 MB / 0.6223 GB, free: 12.75 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001752/0.626, allocations: 60 kB / 0.6224 GB, free: 12.69 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002791/0.6263, allocations: 124 kB / 0.6225 GB, free: 12.57 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005937/0.6322, allocations: 1.669 MB / 0.6241 GB, free: 10.89 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004568/0.6368, allocations: 1.322 MB / 0.6254 GB, free: 9.57 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01508/0.6519, allocations: 9.916 MB / 0.6351 GB, free: 15.52 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004713/0.6567, allocations: 311.5 kB / 0.6354 GB, free: 15.21 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001055/0.6578, allocations: 364 kB / 0.6358 GB, free: 14.86 MB / 478.1 MB 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.004352/0.6621, allocations: 1.896 MB / 0.6376 GB, free: 12.95 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001288/0.6634, allocations: 331.7 kB / 0.6379 GB, free: 12.62 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01032/0.6738, allocations: 4.137 MB / 0.642 GB, free: 8.465 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.216e-05/0.6739, allocations: 20 kB / 0.642 GB, free: 8.445 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.634e-05/0.6739, allocations: 8 kB / 0.642 GB, free: 8.438 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.158e-05/0.674, allocations: 11.91 kB / 0.642 GB, free: 8.426 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01995/0.6939, allocations: 8.538 MB / 0.6503 GB, free: 15.82 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.171e-05/0.694, allocations: 0 / 0.6503 GB, free: 15.82 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001392/0.6954, allocations: 247.6 kB / 0.6506 GB, free: 15.57 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005484/0.7009, allocations: 1.441 MB / 0.652 GB, free: 14.13 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003413/0.7013, allocations: 35.92 kB / 0.652 GB, free: 14.09 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01441/0.7157, allocations: 9.216 MB / 0.661 GB, free: 4.734 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.212e-06/0.7158, allocations: 4.031 kB / 0.661 GB, free: 4.73 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01366/0.7294, allocations: 6.726 MB / 0.6676 GB, free: 13.98 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001372/0.7308, allocations: 376.6 kB / 0.668 GB, free: 13.59 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001155/0.732, allocations: 28 kB / 0.668 GB, free: 13.56 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002171/0.7342, allocations: 87.89 kB / 0.6681 GB, free: 13.47 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005003/0.7347, allocations: 117.1 kB / 0.6682 GB, free: 13.36 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002001/0.735, allocations: 48 kB / 0.6682 GB, free: 13.31 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.005213/0.7402, allocations: 2.324 MB / 0.6705 GB, free: 11 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.6e-07/0.7402, allocations: 4.062 kB / 0.6705 GB, free: 11 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.006728/0.7469, allocations: 1.005 MB / 0.6715 GB, free: 9.996 MB / 0.4981 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.0006555/0.7476, allocations: 156.4 kB / 0.6716 GB, free: 9.84 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.01157/0.7592, allocations: 6.339 MB / 0.6778 GB, free: 3.535 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 6.772e-06/0.7592, allocations: 0.5625 kB / 0.6778 GB, free: 3.535 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.002932/0.7622, allocations: 1.805 MB / 0.6796 GB, free: 1.719 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003589/0.7658, allocations: 381.5 kB / 0.6799 GB, free: 1.348 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01772/0.7835, allocations: 8.629 MB / 0.6884 GB, free: 8.691 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004854/0.7884, allocations: 2.965 MB / 0.6913 GB, free: 5.691 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.005355/0.7938, allocations: 1.811 MB / 0.693 GB, free: 3.871 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009508/0.7948, allocations: 219.4 kB / 0.6932 GB, free: 3.656 MB / 0.5137 GB Notification: Performance of SimCode: time 9.22e-07/0.7948, allocations: 0 / 0.6932 GB, free: 3.656 MB / 0.5137 GB Notification: Performance of Templates: time 0.3051/1.1, allocations: 39.08 MB / 0.7314 GB, free: 155.7 MB / 0.5137 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/ForceWithTwoMasses/ForceWithTwoMasses.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches