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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.002058/0.002058, allocations: 92.31 kB / 20.96 MB, free: 3.473 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00255/0.00255, allocations: 161.7 kB / 24.27 MB, free: 172 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.479/1.479, allocations: 177.1 MB / 204.6 MB, free: 5.598 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3573/0.3573, allocations: 32.8 MB / 293.9 MB, free: 1.203 MB / 266.7 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,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=5002,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.094e-06/2.094e-06, allocations: 0 / 375.3 MB, free: 5 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.169e-05/3.378e-05, allocations: 2.312 kB / 375.3 MB, free: 4.996 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses): time 0.01532/0.01535, allocations: 9.134 MB / 384.4 MB, free: 11.82 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.008485/0.02383, allocations: 3.673 MB / 388.1 MB, free: 8.129 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009724/0.02481, allocations: 71.62 kB / 388.1 MB, free: 8.059 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00446/0.02927, allocations: 2.164 MB / 390.3 MB, free: 5.887 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00464/0.03391, allocations: 1.777 MB / 392.1 MB, free: 4.102 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0018/0.03571, allocations: 0.7561 MB / 392.8 MB, free: 3.344 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.006757/0.04246, allocations: 4.398 MB / 397.2 MB, free: 14.94 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003672/0.04614, allocations: 2.492 MB / 399.7 MB, free: 12.39 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004662/0.0508, allocations: 1.972 MB / 401.7 MB, free: 10.41 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003242/0.05404, allocations: 2.007 MB / 403.7 MB, free: 8.402 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005483/0.05459, allocations: 276 kB / 404 MB, free: 8.133 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002152/0.05674, allocations: 1.131 MB / 405.1 MB, free: 7 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001999/0.05874, allocations: 1.776 MB / 406.9 MB, free: 5.219 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002149/0.06089, allocations: 1.082 MB / 408 MB, free: 4.133 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009387/0.07028, allocations: 6.273 MB / 414.2 MB, free: 13.84 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.086e-06/0.07028, allocations: 0 / 414.2 MB, free: 13.84 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.773e-06/0.07029, allocations: 0 / 414.2 MB, free: 13.84 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002121/0.0705, allocations: 4 kB / 414.2 MB, free: 13.84 MB / 394.7 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.0111/0.08159, allocations: 4.272 MB / 418.5 MB, free: 9.508 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.359e-05/0.08164, allocations: 12.03 kB / 418.5 MB, free: 9.496 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01735/0.09899, allocations: 2.963 MB / 421.5 MB, free: 6.527 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006446/0.1054, allocations: 2.353 MB / 423.8 MB, free: 4.125 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002238/0.1057, allocations: 205.2 kB / 424 MB, free: 3.922 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009461/0.1066, allocations: 272.5 kB / 424.3 MB, free: 3.656 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01722/0.1238, allocations: 8.721 MB / 433 MB, free: 10.29 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000124/0.124, allocations: 47.64 kB / 433.1 MB, free: 10.24 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003894/0.1243, allocations: 123.9 kB / 433.2 MB, free: 10.12 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003228/0.1276, allocations: 1.739 MB / 434.9 MB, free: 8.379 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01611/0.1437, allocations: 7.319 MB / 442.3 MB, free: 1.051 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.205/0.3487, allocations: 31.95 MB / 474.2 MB, free: 74.87 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007545/0.3562, allocations: 2.991 MB / 477.2 MB, free: 74.08 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001733/0.358, allocations: 1.618 MB / 478.8 MB, free: 73.43 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009267/0.3672, allocations: 6.394 MB / 485.2 MB, free: 70.62 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.133e-05/0.3672, allocations: 58.11 kB / 485.3 MB, free: 70.57 MB / 410.7 MB Notification: Performance of pre-optimization done (n=153): time 4.318e-06/0.3673, allocations: 0 / 485.3 MB, free: 70.57 MB / 410.7 MB Notification: Performance of matching and sorting (n=190): time 0.07921/0.4465, allocations: 27.81 MB / 0.5011 GB, free: 59.63 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.576e-05/0.4465, allocations: 201.2 kB / 0.5012 GB, free: 59.39 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003632/0.4502, allocations: 3.633 MB / 0.5048 GB, free: 55.89 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003021/0.4505, allocations: 57.7 kB / 0.5048 GB, free: 55.83 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001039/0.4515, allocations: 2.891 MB / 0.5077 GB, free: 52.95 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005836/0.4521, allocations: 0.7514 MB / 0.5084 GB, free: 52.21 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001264/0.4533, allocations: 1.199 MB / 0.5096 GB, free: 51 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.6e-05/0.4534, allocations: 301.1 kB / 0.5099 GB, free: 50.7 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002658/0.456, allocations: 2.374 MB / 0.5122 GB, free: 48.32 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003662/0.4597, allocations: 5.962 MB / 0.518 GB, free: 40.59 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007266/0.467, allocations: 8.907 MB / 0.5267 GB, free: 29.94 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001471/0.4671, allocations: 36 kB / 0.5267 GB, free: 29.9 MB / 410.7 MB Notification: Performance of matching and sorting (n=781) (initialization): time 0.01888/0.486, allocations: 10.55 MB / 0.537 GB, free: 19.34 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001602/0.4862, allocations: 61.56 kB / 0.5371 GB, free: 19.28 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001809/0.4863, allocations: 124 kB / 0.5372 GB, free: 19.16 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008946/0.4953, allocations: 2.958 MB / 0.5401 GB, free: 16.2 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00401/0.4993, allocations: 1.329 MB / 0.5414 GB, free: 14.87 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01632/0.5156, allocations: 12.19 MB / 0.5533 GB, free: 2.57 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004664/0.5203, allocations: 395.3 kB / 0.5537 GB, free: 2.188 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000978/0.5213, allocations: 356 kB / 0.554 GB, free: 1.84 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 567 * 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 (710): * Single equations (assignments): 706 * 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,46,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003215/0.5245, allocations: 1.895 MB / 0.5559 GB, free: 15.94 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00138/0.5258, allocations: 365.9 kB / 0.5562 GB, free: 15.58 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01429/0.5401, allocations: 5.254 MB / 0.5613 GB, free: 10.3 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.698e-05/0.5402, allocations: 24 kB / 0.5614 GB, free: 10.28 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.993e-05/0.5402, allocations: 8 kB / 0.5614 GB, free: 10.27 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.444e-05/0.5403, allocations: 7.969 kB / 0.5614 GB, free: 10.27 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02478/0.565, allocations: 9.218 MB / 0.5704 GB, free: 1.031 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.346e-05/0.5651, allocations: 0 / 0.5704 GB, free: 1.031 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001443/0.5665, allocations: 265.3 kB / 0.5706 GB, free: 0.7734 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01054/0.577, allocations: 2.737 MB / 0.5733 GB, free: 14.03 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003972/0.5774, allocations: 28 kB / 0.5733 GB, free: 14 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02283/0.6003, allocations: 11.48 MB / 0.5846 GB, free: 2.418 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.948e-06/0.6003, allocations: 0.75 kB / 0.5846 GB, free: 2.418 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02002/0.6203, allocations: 8.177 MB / 0.5925 GB, free: 10.21 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001198/0.6215, allocations: 309.7 kB / 0.5928 GB, free: 9.91 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000918/0.6224, allocations: 28 kB / 0.5929 GB, free: 9.883 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002351/0.6248, allocations: 171.6 kB / 0.593 GB, free: 9.719 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006181/0.6254, allocations: 113.1 kB / 0.5931 GB, free: 9.609 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002383/0.6256, allocations: 55.73 kB / 0.5932 GB, free: 9.559 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.004572/0.6302, allocations: 2.099 MB / 0.5952 GB, free: 7.465 MB / 458.7 MB Notification: Performance of sort global known variables: time 9e-08/0.6302, allocations: 0 / 0.5952 GB, free: 7.465 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.006219/0.6364, allocations: 1.105 MB / 0.5963 GB, free: 6.359 MB / 458.7 MB 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 (129): * Single equations (assignments): 125 * 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,39,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0007348/0.6371, allocations: 178 kB / 0.5965 GB, free: 6.18 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01173/0.6489, allocations: 5.567 MB / 0.6019 GB, free: 0.6328 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 6.662e-06/0.6489, allocations: 0 / 0.6019 GB, free: 0.6328 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.1415/0.7904, allocations: 1.858 MB / 0.6037 GB, free: 135.8 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00222/0.7926, allocations: 356.7 kB / 0.6041 GB, free: 135.8 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01145/0.804, allocations: 8.86 MB / 0.6127 GB, free: 133.3 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002559/0.8066, allocations: 2.416 MB / 0.6151 GB, free: 132.7 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.003322/0.8099, allocations: 1.779 MB / 0.6168 GB, free: 132.7 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005878/0.8105, allocations: 214.2 kB / 0.617 GB, free: 132.7 MB / 458.7 MB Notification: Performance of SimCode: time 1.423e-06/0.8105, allocations: 3.281 kB / 0.617 GB, free: 132.7 MB / 458.7 MB Notification: Performance of Templates: time 0.0597/0.8702, allocations: 39.55 MB / 0.6557 GB, free: 117.9 MB / 458.7 MB " [Timeout remaining time 659] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.makefile [Timeout 660] (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) [Timeout 480] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 7.175471208058298]