Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.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.0009126/0.0009126, allocations: 80.8 kB / 22.29 MB, free: 2.207 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.001981/0.001981, allocations: 169.6 kB / 25.7 MB, free: 8.402 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8378/0.8378, allocations: 158.6 MB / 187.6 MB, free: 2.781 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_3.2.3_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_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.243e-06/1.243e-06, allocations: 0 / 251.5 MB, free: 7.289 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.871e-05/1.995e-05, allocations: 10.25 kB / 251.5 MB, free: 7.277 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.01024/0.01026, allocations: 14.15 MB / 265.7 MB, free: 9.059 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.007466/0.01772, allocations: 4.907 MB / 270.6 MB, free: 4.137 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001094/0.01882, allocations: 107.5 kB / 270.7 MB, free: 4.031 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00334/0.02216, allocations: 3.398 MB / 274.1 MB, free: 0.6211 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003534/0.02569, allocations: 2.761 MB / 276.9 MB, free: 13.85 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001289/0.02698, allocations: 1.123 MB / 278 MB, free: 12.72 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.005588/0.03257, allocations: 7.333 MB / 285.3 MB, free: 5.371 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003131/0.0357, allocations: 4.364 MB / 289.7 MB, free: 0.918 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003726/0.03943, allocations: 4.085 MB / 293.8 MB, free: 12.82 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002822/0.04225, allocations: 3.418 MB / 297.2 MB, free: 9.398 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004838/0.04273, allocations: 488 kB / 297.7 MB, free: 8.922 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001695/0.04443, allocations: 1.467 MB / 299.1 MB, free: 7.453 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001953/0.04638, allocations: 3.105 MB / 302.2 MB, free: 4.34 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001444/0.04783, allocations: 1.873 MB / 304.1 MB, free: 2.461 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005678/0.0535, allocations: 6.944 MB / 311 MB, free: 11.49 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.97e-06/0.05351, allocations: 0 / 311 MB, free: 11.49 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.323e-06/0.05351, allocations: 0 / 311 MB, free: 11.49 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.401e-05/0.0536, allocations: 0 / 311 MB, free: 11.49 MB / 298.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.006998/0.0606, allocations: 6.605 MB / 317.6 MB, free: 4.812 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.579e-05/0.06064, allocations: 15.98 kB / 317.7 MB, free: 4.797 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004726/0.06536, allocations: 1.823 MB / 319.5 MB, free: 2.973 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00372/0.06908, allocations: 2.854 MB / 322.3 MB, free: 60 kB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002972/0.06938, allocations: 320.4 kB / 322.6 MB, free: 15.74 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005773/0.06996, allocations: 432.2 kB / 323.1 MB, free: 15.32 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008251/0.07821, allocations: 7.325 MB / 330.4 MB, free: 7.043 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001083/0.07832, allocations: 55.52 kB / 330.4 MB, free: 6.988 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003958/0.07871, allocations: 203.8 kB / 330.6 MB, free: 6.789 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002417/0.08113, allocations: 2.857 MB / 333.5 MB, free: 3.926 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007681/0.08881, allocations: 3.921 MB / 337.4 MB, free: 15.95 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.142/0.2308, allocations: 43.39 MB / 380.8 MB, free: 59.96 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005237/0.2361, allocations: 2.593 MB / 383.4 MB, free: 59.73 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008912/0.237, allocations: 0.704 MB / 384.1 MB, free: 59.69 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008024/0.245, allocations: 6.614 MB / 390.7 MB, free: 58.64 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.363e-05/0.245, allocations: 61.38 kB / 390.8 MB, free: 58.59 MB / 330.7 MB Notification: Performance of pre-optimization done (n=269): time 5.36e-06/0.245, allocations: 0 / 390.8 MB, free: 58.59 MB / 330.7 MB Notification: Performance of matching and sorting (n=300): time 0.01958/0.2646, allocations: 9.352 MB / 400.1 MB, free: 52.27 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.429e-05/0.2647, allocations: 205.9 kB / 400.3 MB, free: 52.02 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0032/0.2679, allocations: 4.37 MB / 404.7 MB, free: 48.39 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001472/0.268, allocations: 69.69 kB / 404.8 MB, free: 48.32 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001256/0.2693, allocations: 4.343 MB / 409.1 MB, free: 44.02 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006159/0.2699, allocations: 1.166 MB / 410.3 MB, free: 42.84 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001189/0.2711, allocations: 1.664 MB / 412 MB, free: 41.17 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 2.446e-05/0.2711, allocations: 309 kB / 412.3 MB, free: 40.87 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001758/0.2728, allocations: 1.256 MB / 413.5 MB, free: 39.6 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002604/0.2755, allocations: 6.266 MB / 419.8 MB, free: 30.88 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004644/0.2801, allocations: 8.201 MB / 428 MB, free: 20.45 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.432e-05/0.2801, allocations: 59.94 kB / 428 MB, free: 20.39 MB / 330.7 MB Notification: Performance of matching and sorting (n=1174) (initialization): time 0.006748/0.2869, allocations: 6.445 MB / 434.5 MB, free: 13.9 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.966e-05/0.287, allocations: 84 kB / 434.6 MB, free: 13.82 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001112/0.2871, allocations: 180 kB / 434.7 MB, free: 13.64 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00183/0.2889, allocations: 0.8232 MB / 435.6 MB, free: 12.82 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003124/0.292, allocations: 1.981 MB / 437.5 MB, free: 10.84 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003559/0.2956, allocations: 4.345 MB / 441.9 MB, free: 6.301 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003699/0.2993, allocations: 378.7 kB / 442.3 MB, free: 5.934 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004389/0.2997, allocations: 448 kB / 442.7 MB, free: 5.496 MB / 330.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.001701/0.3014, allocations: 0.8215 MB / 443.5 MB, free: 4.66 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006401/0.3021, allocations: 327.6 kB / 443.8 MB, free: 4.34 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002816/0.3049, allocations: 2.113 MB / 446 MB, free: 2.207 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.18e-05/0.3049, allocations: 48 kB / 446 MB, free: 2.16 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.953e-06/0.3049, allocations: 8 kB / 446 MB, free: 2.152 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.319e-05/0.3049, allocations: 11.95 kB / 446 MB, free: 2.141 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009152/0.3141, allocations: 6.365 MB / 452.4 MB, free: 11.62 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-05/0.3141, allocations: 8 kB / 452.4 MB, free: 11.62 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00113/0.3152, allocations: 403.4 kB / 452.8 MB, free: 11.22 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001826/0.3171, allocations: 0.7967 MB / 453.6 MB, free: 10.42 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000161/0.3172, allocations: 51.98 kB / 453.6 MB, free: 10.37 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003248/0.3205, allocations: 3.432 MB / 457.1 MB, free: 6.75 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.941e-06/0.3205, allocations: 11.94 kB / 457.1 MB, free: 6.738 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004184/0.3247, allocations: 3.092 MB / 460.2 MB, free: 3.508 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001151/0.3258, allocations: 0.7074 MB / 460.9 MB, free: 2.797 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004114/0.3262, allocations: 51.98 kB / 460.9 MB, free: 2.746 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009696/0.3272, allocations: 52 kB / 461 MB, free: 2.695 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002751/0.3275, allocations: 181.5 kB / 461.2 MB, free: 2.516 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001258/0.3276, allocations: 60 kB / 461.2 MB, free: 2.457 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001525/0.3291, allocations: 1.607 MB / 462.8 MB, free: 0.8555 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3291, allocations: 0 / 462.8 MB, free: 0.8555 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.004539/0.3337, allocations: 1.598 MB / 464.4 MB, free: 15.25 MB / 362.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.0004387/0.3341, allocations: 206.5 kB / 464.6 MB, free: 15.05 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.004893/0.339, allocations: 3.889 MB / 468.5 MB, free: 11.17 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001929/0.3392, allocations: 120.2 kB / 468.6 MB, free: 11.04 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001233/0.3404, allocations: 0.9636 MB / 469.6 MB, free: 10.07 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003519/0.3439, allocations: 0.8742 MB / 470.5 MB, free: 9.207 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01658/0.3605, allocations: 11.35 MB / 481.8 MB, free: 13.66 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002046/0.3626, allocations: 1.823 MB / 483.6 MB, free: 11.81 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.00259/0.3651, allocations: 0.7081 MB / 484.3 MB, free: 11.1 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001688/0.3668, allocations: 0.7433 MB / 485.1 MB, free: 10.36 MB / 378.7 MB Notification: Performance of SimCode: time 1.643e-06/0.3668, allocations: 0 / 485.1 MB, free: 10.36 MB / 378.7 MB Notification: Performance of Templates: time 0.1893/0.5561, allocations: 51.36 MB / 0.5239 GB, free: 98.78 MB / 378.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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: 4.081575576681644]