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.0008415/0.0008415, allocations: 76.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00143/0.002272, allocations: 457.8 kB / 10.45 MB, free: 244 kB / 10.45 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.0008219/0.0008219, allocations: 162 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001338/0.00216, allocations: 475.6 kB / 11.82 MB, free: 2.348 MB / 13.93 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 0.9357/0.9357, allocations: 177.5 MB / 190 MB, free: 4.762 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1125/1.048, allocations: 53.87 MB / 243.9 MB, free: 14.82 MB / 250.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.263e-06/1.263e-06, allocations: 0 / 245.2 MB, free: 13.54 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.407e-05/1.533e-05, allocations: 5.406 kB / 245.2 MB, free: 13.54 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.00937/0.009385, allocations: 14.21 MB / 259.4 MB, free: 15.26 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006111/0.0155, allocations: 4.953 MB / 264.4 MB, free: 10.29 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007391/0.01624, allocations: 107.5 kB / 264.5 MB, free: 10.18 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002794/0.01903, allocations: 3.242 MB / 267.7 MB, free: 6.93 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002939/0.02197, allocations: 2.679 MB / 270.4 MB, free: 4.238 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001204/0.02317, allocations: 1.014 MB / 271.4 MB, free: 3.223 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.127/0.1502, allocations: 7.26 MB / 278.7 MB, free: 2.043 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004705/0.1549, allocations: 3.767 MB / 282.4 MB, free: 1.633 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005894/0.1608, allocations: 4.229 MB / 286.7 MB, free: 1.305 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0029/0.1637, allocations: 3.376 MB / 290 MB, free: 0.9609 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005624/0.1642, allocations: 489.2 kB / 290.5 MB, free: 0.9609 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001656/0.1659, allocations: 1.494 MB / 292 MB, free: 0.8047 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001205/0.1671, allocations: 2.725 MB / 294.7 MB, free: 92 kB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00119/0.1683, allocations: 1.493 MB / 296.2 MB, free: 15.79 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004838/0.1731, allocations: 6.341 MB / 302.6 MB, free: 11.34 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.392e-05/0.1731, allocations: 0 / 302.6 MB, free: 11.34 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.934e-06/0.1731, allocations: 4 kB / 302.6 MB, free: 11.33 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0001846/0.1733, allocations: 0 / 302.6 MB, free: 11.33 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.007708/0.181, allocations: 7.839 MB / 310.4 MB, free: 4 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.254e-05/0.1811, allocations: 8.625 kB / 310.4 MB, free: 3.992 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004656/0.1857, allocations: 1.815 MB / 312.2 MB, free: 2.258 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003273/0.189, allocations: 2.815 MB / 315.1 MB, free: 15.63 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001389/0.1891, allocations: 316.7 kB / 315.4 MB, free: 15.38 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005267/0.1897, allocations: 436 kB / 315.8 MB, free: 15.02 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007201/0.1969, allocations: 7.322 MB / 323.1 MB, free: 7.418 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001199/0.197, allocations: 59.52 kB / 323.2 MB, free: 7.387 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003783/0.1974, allocations: 206 kB / 323.4 MB, free: 7.246 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002263/0.1996, allocations: 2.699 MB / 326.1 MB, free: 4.57 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005999/0.2056, allocations: 3.924 MB / 330 MB, free: 0.9023 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03143/0.2371, allocations: 43.37 MB / 373.4 MB, free: 5.707 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004884/0.2419, allocations: 2.535 MB / 375.9 MB, free: 3.227 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008114/0.2427, allocations: 0.7178 MB / 376.6 MB, free: 2.512 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008055/0.2508, allocations: 6.55 MB / 383.2 MB, free: 12.07 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.044e-05/0.2508, allocations: 63.69 kB / 383.2 MB, free: 12 MB / 362.7 MB Notification: Performance of pre-optimization done (n=269): time 3.948e-06/0.2508, allocations: 0 / 383.2 MB, free: 12 MB / 362.7 MB Notification: Performance of matching and sorting (n=300): time 0.02093/0.2718, allocations: 9.476 MB / 392.7 MB, free: 2.73 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001667/0.2719, allocations: 158.5 kB / 392.9 MB, free: 2.543 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003897/0.2758, allocations: 4.324 MB / 397.2 MB, free: 15 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001744/0.276, allocations: 72.44 kB / 397.3 MB, free: 14.93 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001993/0.278, allocations: 4.351 MB / 401.6 MB, free: 10.79 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007517/0.2788, allocations: 1.155 MB / 402.8 MB, free: 9.695 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001381/0.2801, allocations: 1.667 MB / 404.4 MB, free: 8.035 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.607e-05/0.2802, allocations: 309.1 kB / 404.7 MB, free: 7.73 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001746/0.282, allocations: 1.251 MB / 406 MB, free: 6.473 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00402/0.286, allocations: 6.265 MB / 412.2 MB, free: 13.72 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007242/0.2932, allocations: 8.83 MB / 421.1 MB, free: 2.395 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.569e-05/0.2933, allocations: 52 kB / 421.1 MB, free: 2.344 MB / 394.7 MB Notification: Performance of matching and sorting (n=1174) (initialization): time 0.1476/0.4409, allocations: 6.433 MB / 427.6 MB, free: 100.4 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001132/0.441, allocations: 87.66 kB / 427.6 MB, free: 100.4 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003268/0.4413, allocations: 190.4 kB / 427.8 MB, free: 100.4 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002777/0.4441, allocations: 0.8268 MB / 428.7 MB, free: 100.4 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0058/0.4499, allocations: 2.213 MB / 430.9 MB, free: 100.4 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004851/0.4547, allocations: 4.347 MB / 435.2 MB, free: 97.77 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004816/0.4596, allocations: 373.6 kB / 435.6 MB, free: 97.77 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005884/0.4601, allocations: 446.5 kB / 436 MB, free: 97.77 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 825 * 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 (1107): * Single equations (assignments): 1099 * 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,18,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001958/0.4621, allocations: 0.8323 MB / 436.9 MB, free: 97.64 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006384/0.4627, allocations: 321 kB / 437.2 MB, free: 97.64 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003846/0.4666, allocations: 2.106 MB / 439.3 MB, free: 97.49 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.97e-05/0.4666, allocations: 49.08 kB / 439.3 MB, free: 97.49 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.095e-05/0.4666, allocations: 7.516 kB / 439.3 MB, free: 97.49 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.848e-05/0.4667, allocations: 15.34 kB / 439.3 MB, free: 97.48 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01083/0.4775, allocations: 6.323 MB / 445.7 MB, free: 96.67 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.347e-05/0.4775, allocations: 14.5 kB / 445.7 MB, free: 96.67 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002001/0.4795, allocations: 0.6985 MB / 446.4 MB, free: 96.65 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007542/0.4803, allocations: 433.1 kB / 446.8 MB, free: 96.65 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001944/0.4822, allocations: 0.5768 MB / 447.4 MB, free: 96.62 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001948/0.4824, allocations: 54.12 kB / 447.4 MB, free: 96.62 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003361/0.4858, allocations: 3.421 MB / 450.9 MB, free: 94.21 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.295e-05/0.4858, allocations: 12.55 kB / 450.9 MB, free: 94.21 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0048/0.4906, allocations: 3.102 MB / 454 MB, free: 93.25 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000543/0.4911, allocations: 50.34 kB / 454 MB, free: 93.25 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001281/0.4924, allocations: 55.91 kB / 454.1 MB, free: 93.25 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003776/0.4928, allocations: 170.7 kB / 454.2 MB, free: 93.24 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001588/0.4929, allocations: 62.59 kB / 454.3 MB, free: 93.24 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001578/0.4945, allocations: 1.586 MB / 455.9 MB, free: 93.11 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.4945, allocations: 0 / 455.9 MB, free: 93.11 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.004926/0.4994, allocations: 1.565 MB / 457.4 MB, free: 93.11 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 29 * 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 (236): * Single equations (assignments): 228 * 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,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004403/0.4999, allocations: 201.5 kB / 457.6 MB, free: 93.04 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.005042/0.5049, allocations: 4.048 MB / 461.7 MB, free: 92.73 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0002389/0.5052, allocations: 154.3 kB / 461.8 MB, free: 92.68 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00257/0.5077, allocations: 1.786 MB / 463.6 MB, free: 91.46 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002942/0.5107, allocations: 3.442 MB / 467.1 MB, free: 87.73 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0152/0.5259, allocations: 11.58 MB / 478.6 MB, free: 77.06 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001304/0.5272, allocations: 1.814 MB / 480.5 MB, free: 75.5 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001804/0.529, allocations: 0.7019 MB / 481.2 MB, free: 74.79 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001106/0.5301, allocations: 0.7237 MB / 481.9 MB, free: 74.07 MB / 394.7 MB Notification: Performance of SimCode: time 1.743e-06/0.5301, allocations: 0 / 481.9 MB, free: 74.07 MB / 394.7 MB Notification: Performance of Templates: time 0.05922/0.5893, allocations: 49.71 MB / 0.5191 GB, free: 24.57 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 -ignoreHideResult -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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.7002024250105023]