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.0009868/0.0009868, allocations: 71.77 kB / 21.69 MB, free: 2.859 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.0009729/0.0009729, allocations: 168.1 kB / 24.99 MB, free: 8.336 MB / 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 0.9465/0.9465, allocations: 177.1 MB / 205.3 MB, free: 5.637 MB / 186.7 MB " [Timeout remaining time 179] 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.2609/0.2609, allocations: 32.8 MB / 294.6 MB, free: 1.309 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 1.894e-06/1.894e-06, allocations: 0 / 376 MB, free: 5.016 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.577e-05/1.766e-05, allocations: 8.219 kB / 376 MB, free: 5.008 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses): time 0.007844/0.007862, allocations: 10.01 MB / 386 MB, free: 10.95 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.005446/0.01331, allocations: 3.794 MB / 389.8 MB, free: 7.141 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007185/0.01403, allocations: 75.62 kB / 389.9 MB, free: 7.066 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002367/0.01639, allocations: 2.215 MB / 392.1 MB, free: 4.844 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002442/0.01884, allocations: 1.777 MB / 393.9 MB, free: 3.059 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009951/0.01983, allocations: 0.7638 MB / 394.6 MB, free: 2.293 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.003443/0.02327, allocations: 4.401 MB / 399 MB, free: 13.88 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001725/0.025, allocations: 2.495 MB / 401.5 MB, free: 11.33 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001473/0.02647, allocations: 1.976 MB / 403.5 MB, free: 9.352 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00164/0.02811, allocations: 2.03 MB / 405.5 MB, free: 7.316 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002549/0.02837, allocations: 272 kB / 405.8 MB, free: 7.051 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001333/0.0297, allocations: 1.127 MB / 406.9 MB, free: 5.922 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001105/0.03081, allocations: 1.784 MB / 408.7 MB, free: 4.133 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007911/0.0316, allocations: 1.079 MB / 409.8 MB, free: 3.051 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003385/0.03498, allocations: 4.235 MB / 414 MB, free: 14.8 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.342e-06/0.03499, allocations: 7.938 kB / 414 MB, free: 14.79 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.234e-06/0.03499, allocations: 0 / 414 MB, free: 14.79 MB / 394.7 MB Notification: Performance of Transformations before backend: time 3.557e-05/0.03503, allocations: 0 / 414 MB, free: 14.79 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.004612/0.03964, allocations: 4.595 MB / 418.6 MB, free: 10.14 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.726e-05/0.03967, allocations: 8.031 kB / 418.6 MB, free: 10.13 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00794/0.04762, allocations: 2.92 MB / 421.6 MB, free: 7.203 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002403/0.05002, allocations: 2.18 MB / 423.7 MB, free: 4.973 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.377e-05/0.05011, allocations: 197.3 kB / 423.9 MB, free: 4.777 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003443/0.05046, allocations: 272.5 kB / 424.2 MB, free: 4.512 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005505/0.05596, allocations: 5.327 MB / 429.5 MB, free: 14.31 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.655e-05/0.05603, allocations: 47.62 kB / 429.6 MB, free: 14.27 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002227/0.05625, allocations: 127.9 kB / 429.7 MB, free: 14.14 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001596/0.05785, allocations: 1.735 MB / 431.4 MB, free: 12.41 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004624/0.06247, allocations: 2.822 MB / 434.3 MB, free: 9.574 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.17/0.2325, allocations: 37.48 MB / 471.7 MB, free: 69.41 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004192/0.2367, allocations: 1.907 MB / 473.6 MB, free: 69.05 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006977/0.2374, allocations: 0.589 MB / 474.2 MB, free: 68.92 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004652/0.242, allocations: 4.656 MB / 478.9 MB, free: 66.47 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.102e-05/0.242, allocations: 52.11 kB / 478.9 MB, free: 66.42 MB / 410.7 MB Notification: Performance of pre-optimization done (n=151): time 4.218e-06/0.242, allocations: 2.906 kB / 478.9 MB, free: 66.42 MB / 410.7 MB Notification: Performance of matching and sorting (n=188): time 0.02662/0.2687, allocations: 13.9 MB / 492.9 MB, free: 62.59 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.85e-05/0.2687, allocations: 202.9 kB / 493 MB, free: 62.36 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003451/0.2722, allocations: 3.301 MB / 496.3 MB, free: 61.01 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001022/0.2723, allocations: 51.8 kB / 496.4 MB, free: 60.96 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001223/0.2735, allocations: 3.079 MB / 499.5 MB, free: 58.62 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004497/0.274, allocations: 0.7596 MB / 0.4885 GB, free: 58.06 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001168/0.2751, allocations: 1.293 MB / 0.4898 GB, free: 57.37 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.934e-05/0.2752, allocations: 481.7 kB / 0.4902 GB, free: 56.9 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001288/0.2764, allocations: 0.7355 MB / 0.491 GB, free: 56.8 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002835/0.2793, allocations: 6.067 MB / 0.4969 GB, free: 49.52 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004795/0.2841, allocations: 7.471 MB / 0.5042 GB, free: 41.39 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.754e-05/0.2841, allocations: 37.56 kB / 0.5042 GB, free: 41.38 MB / 410.7 MB Notification: Performance of matching and sorting (n=782) (initialization): time 0.008143/0.2923, allocations: 6.209 MB / 0.5103 GB, free: 39.36 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.434e-05/0.2923, allocations: 56.94 kB / 0.5103 GB, free: 39.36 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001041/0.2924, allocations: 129.6 kB / 0.5105 GB, free: 39.35 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003583/0.296, allocations: 1.452 MB / 0.5119 GB, free: 39.07 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002164/0.2982, allocations: 1.329 MB / 0.5132 GB, free: 37.9 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005848/0.304, allocations: 4.941 MB / 0.518 GB, free: 33.37 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002529/0.3066, allocations: 354.9 kB / 0.5183 GB, free: 33.07 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002768/0.3068, allocations: 360.2 kB / 0.5187 GB, free: 32.73 MB / 410.7 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.0009681/0.3078, allocations: 0.6451 MB / 0.5193 GB, free: 32.08 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003424/0.3081, allocations: 365.9 kB / 0.5197 GB, free: 31.72 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003999/0.3121, allocations: 2.366 MB / 0.522 GB, free: 30.02 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.785e-05/0.3122, allocations: 24 kB / 0.522 GB, free: 29.99 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.085e-05/0.3122, allocations: 8 kB / 0.522 GB, free: 29.98 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.081e-05/0.3122, allocations: 6.984 kB / 0.522 GB, free: 29.98 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007629/0.3198, allocations: 5.646 MB / 0.5275 GB, free: 25.39 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.602e-06/0.3198, allocations: 0 / 0.5275 GB, free: 25.39 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006448/0.3205, allocations: 253.7 kB / 0.5278 GB, free: 25.18 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002953/0.3234, allocations: 1.246 MB / 0.529 GB, free: 23.93 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.432e-05/0.3235, allocations: 28 kB / 0.529 GB, free: 23.91 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00467/0.3282, allocations: 4.452 MB / 0.5333 GB, free: 19.34 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.3282, allocations: 0 / 0.5333 GB, free: 19.34 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004713/0.3329, allocations: 3.437 MB / 0.5367 GB, free: 15.88 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003976/0.3333, allocations: 301.7 kB / 0.537 GB, free: 15.58 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000231/0.3335, allocations: 36.02 kB / 0.537 GB, free: 15.54 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007258/0.3342, allocations: 119.8 kB / 0.5371 GB, free: 15.43 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002163/0.3345, allocations: 118.3 kB / 0.5373 GB, free: 15.31 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.575e-05/0.3345, allocations: 51.92 kB / 0.5373 GB, free: 15.26 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001367/0.3359, allocations: 1.404 MB / 0.5387 GB, free: 13.86 MB / 410.7 MB Notification: Performance of sort global known variables: time 8e-08/0.3359, allocations: 0 / 0.5387 GB, free: 13.86 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00371/0.3396, allocations: 1.051 MB / 0.5397 GB, free: 12.81 MB / 410.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 (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.0003818/0.34, allocations: 178.7 kB / 0.5399 GB, free: 12.63 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003752/0.3437, allocations: 3.289 MB / 0.5431 GB, free: 9.336 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.347e-06/0.3438, allocations: 0 / 0.5431 GB, free: 9.336 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001254/0.345, allocations: 0.9983 MB / 0.5441 GB, free: 8.32 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001515/0.3465, allocations: 359 kB / 0.5444 GB, free: 7.992 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006452/0.353, allocations: 6.782 MB / 0.551 GB, free: 1.141 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000791/0.3538, allocations: 1.112 MB / 0.5521 GB, free: 4 kB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.002227/0.356, allocations: 1.537 MB / 0.5536 GB, free: 14.47 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004183/0.3564, allocations: 216.5 kB / 0.5538 GB, free: 14.25 MB / 426.7 MB Notification: Performance of SimCode: time 1.473e-06/0.3564, allocations: 0 / 0.5538 GB, free: 14.25 MB / 426.7 MB Notification: Performance of Templates: time 0.04337/0.3998, allocations: 35.03 MB / 0.588 GB, free: 11.72 MB / 458.7 MB " [Timeout remaining time 660] 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=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.578341809101403]