Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001218/0.001218, allocations: 79.03 kB / 20.68 MB, free: 1.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001284/0.001284, allocations: 150 kB / 23.94 MB, free: 4.176 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.38/1.38, allocations: 173.3 MB / 200.4 MB, free: 12.86 MB / 190.1 MB " [Timeout remaining time 179] 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(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.583e-06/1.583e-06, allocations: 0 / 318.9 MB, free: 3.562 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.255e-05/2.414e-05, allocations: 2.281 kB / 318.9 MB, free: 3.559 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.0158/0.01583, allocations: 13.07 MB / 332 MB, free: 11.07 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01238/0.02821, allocations: 4.623 MB / 336.6 MB, free: 8.008 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003147/0.03135, allocations: 111.2 kB / 336.7 MB, free: 7.973 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007022/0.03838, allocations: 3.25 MB / 340 MB, free: 5.82 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00784/0.04622, allocations: 2.716 MB / 342.7 MB, free: 3.848 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002976/0.04919, allocations: 1.111 MB / 343.8 MB, free: 2.73 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01083/0.06002, allocations: 7.665 MB / 351.5 MB, free: 11.05 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006285/0.0663, allocations: 4.108 MB / 355.6 MB, free: 6.879 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007146/0.07345, allocations: 3.383 MB / 359 MB, free: 3.488 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006069/0.07952, allocations: 3.589 MB / 362.5 MB, free: 15.89 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001576/0.0811, allocations: 496 kB / 363 MB, free: 15.41 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004539/0.08563, allocations: 1.482 MB / 364.5 MB, free: 13.92 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004108/0.08974, allocations: 3.081 MB / 367.6 MB, free: 10.83 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003992/0.09373, allocations: 1.873 MB / 369.5 MB, free: 8.953 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01264/0.1064, allocations: 10.61 MB / 380.1 MB, free: 14.31 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.1064, allocations: 0 / 380.1 MB, free: 14.31 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.1064, allocations: 0 / 380.1 MB, free: 14.31 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001693/0.1066, allocations: 7.984 kB / 380.1 MB, free: 14.3 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2242 * Number of variables: 2242 Notification: Performance of Generate backend data structure: time 0.01479/0.1213, allocations: 7.431 MB / 387.5 MB, free: 6.793 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.911e-05/0.1214, allocations: 8.922 kB / 387.5 MB, free: 6.785 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01682/0.1382, allocations: 4.084 MB / 391.6 MB, free: 2.691 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01139/0.1496, allocations: 4.043 MB / 395.7 MB, free: 14.59 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003192/0.1499, allocations: 320.3 kB / 396 MB, free: 14.28 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001495/0.1514, allocations: 428.3 kB / 396.4 MB, free: 13.86 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02948/0.1809, allocations: 15.81 MB / 412.2 MB, free: 13.1 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002787/0.1812, allocations: 63.53 kB / 412.3 MB, free: 13.04 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001648/0.1828, allocations: 203.8 kB / 412.5 MB, free: 12.84 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005901/0.1887, allocations: 3.223 MB / 415.7 MB, free: 9.613 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03141/0.2201, allocations: 14.11 MB / 429.8 MB, free: 11.48 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2613/0.4815, allocations: 53.76 MB / 483.5 MB, free: 91.45 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01397/0.4954, allocations: 5.544 MB / 489.1 MB, free: 91.32 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004443/0.4999, allocations: 3.342 MB / 492.4 MB, free: 90.25 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0192/0.5191, allocations: 12.23 MB / 0.4928 GB, free: 85.81 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.079e-05/0.5191, allocations: 65.34 kB / 0.4929 GB, free: 85.75 MB / 430.1 MB Notification: Performance of pre-optimization done (n=289): time 6.342e-06/0.5191, allocations: 0 / 0.4929 GB, free: 85.75 MB / 430.1 MB Notification: Performance of matching and sorting (n=339): time 0.1463/0.6655, allocations: 43.53 MB / 0.5354 GB, free: 52.38 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.384e-05/0.6655, allocations: 210 kB / 0.5356 GB, free: 52.12 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006457/0.672, allocations: 5.377 MB / 0.5409 GB, free: 46.96 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005996/0.6726, allocations: 73.7 kB / 0.5409 GB, free: 46.88 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001639/0.6742, allocations: 4.518 MB / 0.5453 GB, free: 42.54 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001033/0.6753, allocations: 1.285 MB / 0.5466 GB, free: 41.27 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002201/0.6775, allocations: 1.84 MB / 0.5484 GB, free: 39.41 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 4.142e-05/0.6775, allocations: 305.1 kB / 0.5487 GB, free: 39.11 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005164/0.6827, allocations: 4.792 MB / 0.5534 GB, free: 34.31 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006649/0.6893, allocations: 9.847 MB / 0.563 GB, free: 22.08 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01375/0.7031, allocations: 15.56 MB / 0.5782 GB, free: 4.184 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001005/0.7032, allocations: 52 kB / 0.5782 GB, free: 4.133 MB / 430.1 MB Notification: Performance of matching and sorting (n=1185) (initialization): time 0.04731/0.7505, allocations: 19.49 MB / 0.5973 GB, free: 0.5977 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000247/0.7507, allocations: 80 kB / 0.5973 GB, free: 0.5195 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002996/0.751, allocations: 172 kB / 0.5975 GB, free: 360 kB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02673/0.7778, allocations: 5.941 MB / 0.6033 GB, free: 10.4 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008057/0.7858, allocations: 2.102 MB / 0.6053 GB, free: 8.297 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03925/0.8251, allocations: 25.74 MB / 0.6305 GB, free: 14.35 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007972/0.833, allocations: 0.6125 MB / 0.6311 GB, free: 13.73 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001716/0.8348, allocations: 0.5121 MB / 0.6316 GB, free: 13.23 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 791 * Number of states: 0 () * Number of discrete variables: 45 (fixedFrame.color_x[3],fixedFrame.color_x[2],fixedFrame.color_x[1],b3.color[3],b3.color[2],b3.color[1],universalSpherical.cylinderColor[3],universalSpherical.cylinderColor[2],universalSpherical.cylinderColor[1],universalSpherical.sphereColor[3],universalSpherical.sphereColor[2],universalSpherical.sphereColor[1],universalSpherical.rodColor[3],universalSpherical.rodColor[2],universalSpherical.rodColor[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.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 (1094): * Single equations (assignments): 1086 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,42,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00669/0.8415, allocations: 3.091 MB / 0.6346 GB, free: 10.12 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001482/0.8429, allocations: 480.8 kB / 0.6351 GB, free: 9.648 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2121/1.055, allocations: 12.86 MB / 0.6476 GB, free: 172.1 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.223e-05/1.055, allocations: 55.92 kB / 0.6477 GB, free: 172.1 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.862e-05/1.055, allocations: 9.031 kB / 0.6477 GB, free: 172.1 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.221e-05/1.055, allocations: 12.47 kB / 0.6477 GB, free: 172.1 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05249/1.108, allocations: 22.31 MB / 0.6695 GB, free: 164.9 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.5e-05/1.108, allocations: 7.672 kB / 0.6695 GB, free: 164.9 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00316/1.111, allocations: 0.5715 MB / 0.67 GB, free: 164.9 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0202/1.131, allocations: 4.971 MB / 0.6749 GB, free: 162.7 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006905/1.132, allocations: 58.25 kB / 0.675 GB, free: 162.6 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02294/1.155, allocations: 20.95 MB / 0.6954 GB, free: 148.3 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.45e-06/1.155, allocations: 11.92 kB / 0.6954 GB, free: 148.3 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03286/1.188, allocations: 17.4 MB / 0.7124 GB, free: 131 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001554/1.189, allocations: 480.2 kB / 0.7129 GB, free: 130.8 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009566/1.19, allocations: 55.44 kB / 0.7129 GB, free: 130.8 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003179/1.193, allocations: 311.4 kB / 0.7132 GB, free: 130.5 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007852/1.194, allocations: 201.5 kB / 0.7134 GB, free: 130.3 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002798/1.194, allocations: 91.92 kB / 0.7135 GB, free: 130.2 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003673/1.198, allocations: 3.13 MB / 0.7166 GB, free: 127.1 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.1e-07/1.198, allocations: 0 / 0.7166 GB, free: 127.1 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.006674/1.205, allocations: 1.897 MB / 0.7184 GB, free: 125.2 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 2 (j1.phi,j1.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 (254): * Single equations (assignments): 246 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,38,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0006666/1.205, allocations: 239.1 kB / 0.7186 GB, free: 125 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01269/1.218, allocations: 10.47 MB / 0.7289 GB, free: 114.6 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.059e-05/1.218, allocations: 3.938 kB / 0.7289 GB, free: 114.6 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004545/1.223, allocations: 3.781 MB / 0.7326 GB, free: 110.8 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003569/1.226, allocations: 0.5235 MB / 0.7331 GB, free: 110.3 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02078/1.247, allocations: 16.22 MB / 0.7489 GB, free: 94.02 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00376/1.251, allocations: 4.116 MB / 0.7529 GB, free: 89.88 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.005413/1.256, allocations: 2.924 MB / 0.7558 GB, free: 86.95 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001369/1.257, allocations: 336.4 kB / 0.7561 GB, free: 86.62 MB / 494.1 MB Notification: Performance of SimCode: time 1.092e-06/1.257, allocations: 0 / 0.7561 GB, free: 86.62 MB / 494.1 MB Notification: Performance of Templates: time 0.2574/1.515, allocations: 73.89 MB / 0.8283 GB, free: 163.6 MB / 494.1 MB " [Timeout remaining time 658] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar2/Fourbar2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.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.673315580934286]