Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00107/0.00107, allocations: 91.67 kB / 21.2 MB, free: 3.367 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009881/0.0009881, allocations: 160.5 kB / 24.56 MB, free: 12 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.004/1.004, allocations: 177 MB / 204.8 MB, free: 5.586 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.633e-06/1.633e-06, allocations: 0 / 272.9 MB, free: 1.449 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.15e-05/2.313e-05, allocations: 6.312 kB / 272.9 MB, free: 1.441 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.01101/0.01103, allocations: 14.52 MB / 287.4 MB, free: 2.848 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1564/0.1675, allocations: 4.738 MB / 292.2 MB, free: 13.74 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002814/0.1703, allocations: 109.5 kB / 292.3 MB, free: 13.74 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005825/0.1761, allocations: 3.388 MB / 295.7 MB, free: 13.72 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006844/0.1829, allocations: 2.7 MB / 298.4 MB, free: 13.38 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002142/0.1851, allocations: 1.117 MB / 299.5 MB, free: 13.35 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00876/0.1938, allocations: 7.813 MB / 307.3 MB, free: 10.14 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004285/0.1981, allocations: 4.23 MB / 311.5 MB, free: 7.43 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004642/0.2028, allocations: 3.391 MB / 314.9 MB, free: 5.34 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00374/0.2065, allocations: 3.629 MB / 318.5 MB, free: 1.977 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009626/0.2075, allocations: 496 kB / 319 MB, free: 1.492 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002059/0.2095, allocations: 1.468 MB / 320.5 MB, free: 104 kB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002128/0.2117, allocations: 3.06 MB / 323.6 MB, free: 13.12 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00218/0.2138, allocations: 1.858 MB / 325.4 MB, free: 11.34 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006902/0.2207, allocations: 6.883 MB / 332.3 MB, free: 4.758 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.252e-06/0.2208, allocations: 0 / 332.3 MB, free: 4.758 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.234e-06/0.2208, allocations: 0 / 332.3 MB, free: 4.758 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0001414/0.2209, allocations: 0 / 332.3 MB, free: 4.758 MB / 282.7 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.0101/0.231, allocations: 7.919 MB / 340.2 MB, free: 12.91 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.895e-05/0.231, allocations: 19.98 kB / 340.2 MB, free: 12.89 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009146/0.2402, allocations: 4.691 MB / 344.9 MB, free: 8.254 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006053/0.2462, allocations: 3.659 MB / 348.6 MB, free: 4.57 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002794/0.2465, allocations: 320 kB / 348.9 MB, free: 4.312 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001122/0.2476, allocations: 427.7 kB / 349.3 MB, free: 3.953 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01313/0.2608, allocations: 9.004 MB / 358.3 MB, free: 9.867 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001558/0.2609, allocations: 55.47 kB / 358.4 MB, free: 9.812 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004546/0.2614, allocations: 204.1 kB / 358.6 MB, free: 9.672 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003409/0.2648, allocations: 3.224 MB / 361.8 MB, free: 6.461 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01196/0.2768, allocations: 5.209 MB / 367 MB, free: 1.246 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04882/0.3256, allocations: 60.07 MB / 427.1 MB, free: 3.691 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006824/0.3324, allocations: 3.044 MB / 430.1 MB, free: 0.6055 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.14/0.4724, allocations: 1.172 MB / 431.3 MB, free: 112.3 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01361/0.486, allocations: 8.262 MB / 439.6 MB, free: 111.3 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.956e-05/0.4861, allocations: 66.14 kB / 439.6 MB, free: 111.2 MB / 378.7 MB Notification: Performance of pre-optimization done (n=289): time 7.383e-06/0.4861, allocations: 1.562 kB / 439.6 MB, free: 111.2 MB / 378.7 MB Notification: Performance of matching and sorting (n=339): time 0.0548/0.5409, allocations: 27.18 MB / 466.8 MB, free: 101 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.865e-05/0.541, allocations: 221.2 kB / 467 MB, free: 100.7 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004677/0.5457, allocations: 4.71 MB / 471.7 MB, free: 96.2 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005553/0.5462, allocations: 73.7 kB / 471.8 MB, free: 96.12 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001748/0.548, allocations: 4.725 MB / 476.5 MB, free: 91.67 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001175/0.5492, allocations: 1.35 MB / 477.9 MB, free: 90.34 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001814/0.551, allocations: 1.937 MB / 479.8 MB, free: 88.39 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.944e-05/0.551, allocations: 480.8 kB / 480.3 MB, free: 87.92 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002404/0.5534, allocations: 1.665 MB / 482 MB, free: 86.25 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004646/0.5581, allocations: 9.09 MB / 491 MB, free: 73.88 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00813/0.5662, allocations: 11.73 MB / 0.491 GB, free: 59.04 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001011/0.5663, allocations: 48 kB / 0.491 GB, free: 58.99 MB / 378.7 MB Notification: Performance of matching and sorting (n=1185) (initialization): time 0.0209/0.5872, allocations: 12.32 MB / 0.5031 GB, free: 46.62 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.063e-05/0.5873, allocations: 80 kB / 0.5031 GB, free: 46.55 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001288/0.5874, allocations: 180.1 kB / 0.5033 GB, free: 46.37 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01255/0.6, allocations: 4.853 MB / 0.5081 GB, free: 41.5 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004751/0.6047, allocations: 2.105 MB / 0.5101 GB, free: 39.39 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01158/0.6163, allocations: 9.375 MB / 0.5193 GB, free: 29.78 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005087/0.6214, allocations: 0.6068 MB / 0.5199 GB, free: 29.18 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009681/0.6223, allocations: 0.5117 MB / 0.5204 GB, free: 28.66 MB / 378.7 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.002254/0.6246, allocations: 0.8573 MB / 0.5212 GB, free: 27.8 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009114/0.6255, allocations: 0.5593 MB / 0.5217 GB, free: 27.24 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01392/0.6394, allocations: 7.264 MB / 0.5288 GB, free: 19.91 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.149e-05/0.6395, allocations: 55.98 kB / 0.5289 GB, free: 19.86 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.322e-05/0.6395, allocations: 8 kB / 0.5289 GB, free: 19.85 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.912e-05/0.6395, allocations: 15.94 kB / 0.5289 GB, free: 19.83 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02668/0.6662, allocations: 15.75 MB / 0.5443 GB, free: 3.645 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.902e-05/0.6662, allocations: 14 kB / 0.5443 GB, free: 3.633 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001637/0.6679, allocations: 0.5772 MB / 0.5449 GB, free: 3.055 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01111/0.679, allocations: 4.264 MB / 0.549 GB, free: 14.78 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003377/0.6793, allocations: 56 kB / 0.5491 GB, free: 14.73 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01069/0.69, allocations: 8.167 MB / 0.5571 GB, free: 6.328 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.47e-06/0.69, allocations: 4 kB / 0.5571 GB, free: 6.324 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1768/0.8668, allocations: 8.344 MB / 0.5652 GB, free: 105.7 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001696/0.8685, allocations: 467.9 kB / 0.5657 GB, free: 105.7 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00125/0.8698, allocations: 62.81 kB / 0.5657 GB, free: 105.7 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002077/0.8718, allocations: 305.4 kB / 0.566 GB, free: 105.7 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005886/0.8724, allocations: 204.3 kB / 0.5662 GB, free: 105.7 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002351/0.8727, allocations: 90.81 kB / 0.5663 GB, free: 105.7 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.003354/0.876, allocations: 2.008 MB / 0.5683 GB, free: 105.4 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.876, allocations: 1.156 kB / 0.5683 GB, free: 105.4 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.007532/0.8835, allocations: 1.864 MB / 0.5701 GB, free: 105.4 MB / 394.7 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.0006838/0.8842, allocations: 220.3 kB / 0.5703 GB, free: 105.4 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.009107/0.8933, allocations: 5.882 MB / 0.576 GB, free: 104.9 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 9.939e-06/0.8933, allocations: 0.8125 kB / 0.576 GB, free: 104.9 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002805/0.8962, allocations: 1.959 MB / 0.5779 GB, free: 104.6 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002878/0.899, allocations: 0.5482 MB / 0.5785 GB, free: 104.5 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01613/0.9152, allocations: 12.5 MB / 0.5907 GB, free: 100.1 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001582/0.9167, allocations: 1.877 MB / 0.5925 GB, free: 99.07 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.003795/0.9205, allocations: 2.368 MB / 0.5948 GB, free: 97.88 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000971/0.9215, allocations: 337.9 kB / 0.5952 GB, free: 97.57 MB / 394.7 MB Notification: Performance of SimCode: time 1.713e-06/0.9215, allocations: 0 / 0.5952 GB, free: 97.57 MB / 394.7 MB Notification: Performance of Templates: time 0.08059/1.002, allocations: 74.93 MB / 0.6683 GB, free: 25.07 MB / 394.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar2/Fourbar2.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: 5.1012198850512505]