Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.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.0007646/0.0007646, allocations: 76.48 kB / 9.931 MB, free: 0.7617 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001006/0.001771, allocations: 449.7 kB / 10.37 MB, free: 332 kB / 10.45 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.0006266/0.0006266, allocations: 148.9 kB / 11.24 MB, free: 2.934 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008702/0.001497, allocations: 459.6 kB / 11.69 MB, free: 2.48 MB / 13.93 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 0.9254/0.9254, allocations: 173.4 MB / 185.8 MB, free: 8.984 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09585/1.021, allocations: 52.49 MB / 238.3 MB, free: 4.43 MB / 234.7 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.Fourbar1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.813e-06/1.813e-06, allocations: 0 / 239.6 MB, free: 3.172 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.106e-05/1.287e-05, allocations: 2.312 kB / 239.6 MB, free: 3.168 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.01095/0.01096, allocations: 15.14 MB / 254.7 MB, free: 3.961 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.00974/0.0207, allocations: 5.296 MB / 260 MB, free: 14.65 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001934/0.02264, allocations: 143.2 kB / 260.1 MB, free: 14.51 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005561/0.0282, allocations: 4.516 MB / 264.6 MB, free: 9.977 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004459/0.03266, allocations: 2.678 MB / 267.3 MB, free: 7.285 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002112/0.03477, allocations: 1.189 MB / 268.5 MB, free: 6.094 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1881/0.2228, allocations: 8.091 MB / 276.6 MB, free: 2.973 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005895/0.2287, allocations: 4.676 MB / 281.3 MB, free: 2.645 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006593/0.2353, allocations: 5.033 MB / 286.3 MB, free: 2.406 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003669/0.239, allocations: 3.495 MB / 289.8 MB, free: 2.176 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006384/0.2396, allocations: 0.5123 MB / 290.3 MB, free: 2.176 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001903/0.2415, allocations: 1.505 MB / 291.8 MB, free: 2.078 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001732/0.2433, allocations: 2.862 MB / 294.7 MB, free: 1.336 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00158/0.2448, allocations: 1.636 MB / 296.3 MB, free: 1.047 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00545/0.2503, allocations: 6.329 MB / 302.7 MB, free: 13.96 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.46e-05/0.2503, allocations: 0 / 302.7 MB, free: 13.96 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.423e-06/0.2503, allocations: 0 / 302.7 MB, free: 13.96 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0001151/0.2504, allocations: 0 / 302.7 MB, free: 13.96 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: 2058 * Number of variables: 2058 Notification: Performance of Generate backend data structure: time 0.01027/0.2607, allocations: 8.348 MB / 311 MB, free: 6.41 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.035e-05/0.2607, allocations: 8.031 kB / 311 MB, free: 6.402 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005132/0.2659, allocations: 1.55 MB / 312.6 MB, free: 4.914 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004374/0.2702, allocations: 3.289 MB / 315.8 MB, free: 1.77 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001462/0.2704, allocations: 337.2 kB / 316.2 MB, free: 1.484 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004795/0.2709, allocations: 470.5 kB / 316.6 MB, free: 1.074 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007277/0.2781, allocations: 7.063 MB / 323.7 MB, free: 9.672 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001311/0.2783, allocations: 69.8 kB / 323.8 MB, free: 9.633 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003558/0.2786, allocations: 214.5 kB / 324 MB, free: 9.469 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001901/0.2805, allocations: 2.328 MB / 326.3 MB, free: 7.172 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008447/0.289, allocations: 3.612 MB / 329.9 MB, free: 3.801 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04323/0.3322, allocations: 43.01 MB / 372.9 MB, free: 8.918 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006609/0.3388, allocations: 2.795 MB / 375.7 MB, free: 6.168 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00124/0.34, allocations: 0.647 MB / 376.4 MB, free: 5.531 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01051/0.3505, allocations: 6.238 MB / 382.6 MB, free: 15.39 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.323e-05/0.3506, allocations: 55.75 kB / 382.7 MB, free: 15.33 MB / 362.7 MB Notification: Performance of pre-optimization done (n=237): time 6.693e-06/0.3506, allocations: 3.938 kB / 382.7 MB, free: 15.32 MB / 362.7 MB Notification: Performance of matching and sorting (n=347): time 0.0846/0.4352, allocations: 27.45 MB / 410.1 MB, free: 4.43 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.046e-05/0.4353, allocations: 166.8 kB / 410.3 MB, free: 4.234 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004848/0.4402, allocations: 4.363 MB / 414.6 MB, free: 0.668 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007625/0.4409, allocations: 81.7 kB / 414.7 MB, free: 0.582 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.1443/0.5852, allocations: 4.001 MB / 418.7 MB, free: 112.9 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001995/0.5872, allocations: 1.314 MB / 420 MB, free: 112.1 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003374/0.5906, allocations: 1.608 MB / 421.6 MB, free: 111.9 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 3.628e-05/0.5906, allocations: 303 kB / 421.9 MB, free: 111.6 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004143/0.5948, allocations: 1.78 MB / 423.7 MB, free: 111.6 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006073/0.6008, allocations: 6.308 MB / 430 MB, free: 105.6 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01052/0.6113, allocations: 8.636 MB / 438.7 MB, free: 99.38 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002242/0.6116, allocations: 46.41 kB / 438.7 MB, free: 99.38 MB / 378.7 MB Notification: Performance of matching and sorting (n=1133) (initialization): time 0.03305/0.6446, allocations: 10.63 MB / 449.3 MB, free: 97.73 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000104/0.6447, allocations: 79.38 kB / 449.4 MB, free: 97.72 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002024/0.6449, allocations: 170.3 kB / 449.6 MB, free: 97.72 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01889/0.6638, allocations: 9.505 MB / 459.1 MB, free: 93.89 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004049/0.6679, allocations: 1.885 MB / 461 MB, free: 92.2 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02966/0.6975, allocations: 18.45 MB / 479.4 MB, free: 74.08 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006772/0.7043, allocations: 355.7 kB / 479.8 MB, free: 73.73 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001202/0.7055, allocations: 416 kB / 480.2 MB, free: 73.32 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 734 * Number of states: 0 () * Number of discrete variables: 54 (b0.color[3],b0.color[2],b0.color[1],j5.cylinderColor[3],j5.cylinderColor[2],j5.cylinderColor[1],j4.cylinderColor[3],j4.cylinderColor[2],j4.cylinderColor[1],j3.cylinderColor[3],j3.cylinderColor[2],j3.cylinderColor[1],rev1.cylinderColor[3],rev1.cylinderColor[2],rev1.cylinderColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[1],b3.color[3],b3.color[2],b3.color[1],b3.body.sphereColor[3],b3.body.sphereColor[2],b3.body.sphereColor[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 (934): * Single equations (assignments): 927 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(11,77,47.9%), (5,46,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(5,33)} Notification: Performance of prepare postOptimizeDAE: time 0.003068/0.7086, allocations: 0.7866 MB / 481 MB, free: 72.52 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001257/0.7098, allocations: 383.2 kB / 481.3 MB, free: 72.15 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02986/0.7397, allocations: 7.171 MB / 488.5 MB, free: 64.93 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.462e-05/0.7397, allocations: 36 kB / 488.5 MB, free: 64.9 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.287e-05/0.7398, allocations: 28 kB / 488.6 MB, free: 64.87 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.273e-05/0.7399, allocations: 15.94 kB / 488.6 MB, free: 64.86 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04093/0.7808, allocations: 15.98 MB / 0.4927 GB, free: 48.88 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.461e-05/0.7808, allocations: 8.188 kB / 0.4927 GB, free: 48.87 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001971/0.7828, allocations: 0.5677 MB / 0.4933 GB, free: 48.3 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001457/0.7843, allocations: 484.4 kB / 0.4938 GB, free: 47.83 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01705/0.8013, allocations: 9.008 MB / 0.5026 GB, free: 38.8 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000857/0.8022, allocations: 68 kB / 0.5026 GB, free: 38.73 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02545/0.8276, allocations: 15.12 MB / 0.5174 GB, free: 23.3 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.266e-05/0.8276, allocations: 19.88 kB / 0.5174 GB, free: 23.29 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02603/0.8537, allocations: 8.756 MB / 0.526 GB, free: 14.29 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001386/0.855, allocations: 72.03 kB / 0.526 GB, free: 14.21 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001929/0.857, allocations: 67.98 kB / 0.5261 GB, free: 14.15 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00102/0.858, allocations: 314.8 kB / 0.5264 GB, free: 13.84 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002246/0.8582, allocations: 81.44 kB / 0.5265 GB, free: 13.77 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001851/0.8601, allocations: 1.69 MB / 0.5281 GB, free: 12.09 MB / 378.7 MB Notification: Performance of sort global known variables: time 1e-07/0.8601, allocations: 0 / 0.5281 GB, free: 12.09 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.008272/0.8683, allocations: 2.461 MB / 0.5305 GB, free: 9.625 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 41 * 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 (167): * Single equations (assignments): 160 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(13,68,39.6%), (7,42,69.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(5,33)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007814/0.8691, allocations: 223.9 kB / 0.5307 GB, free: 9.398 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.01032/0.8794, allocations: 6.411 MB / 0.537 GB, free: 2.93 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0005139/0.88, allocations: 154.1 kB / 0.5371 GB, free: 2.762 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005506/0.8855, allocations: 3.13 MB / 0.5402 GB, free: 15.58 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.1303/1.016, allocations: 1.326 MB / 0.5415 GB, free: 114.5 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03061/1.046, allocations: 13.48 MB / 0.5547 GB, free: 110.1 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003764/1.05, allocations: 1.937 MB / 0.5566 GB, free: 109.9 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.002216/1.052, allocations: 0.6633 MB / 0.5572 GB, free: 109.8 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001117/1.054, allocations: 0.7344 MB / 0.5579 GB, free: 109.8 MB / 394.7 MB Notification: Performance of SimCode: time 2.875e-06/1.054, allocations: 0 / 0.5579 GB, free: 109.8 MB / 394.7 MB Notification: Performance of Templates: time 0.2609/1.314, allocations: 138 MB / 0.6927 GB, free: 108.8 MB / 394.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1 -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar1/Fourbar1.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.51410966552794]