Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.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.001153/0.001153, allocations: 88.73 kB / 21.5 MB, free: 2.988 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.001229/0.001229, allocations: 164.2 kB / 24.91 MB, free: 8.762 MB / 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.022/1.022, allocations: 177 MB / 205.2 MB, free: 5.059 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.Fourbar1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.974e-06/1.974e-06, allocations: 3.938 kB / 273.4 MB, free: 1.023 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.426e-05/2.623e-05, allocations: 2.312 kB / 273.4 MB, free: 1.02 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.01603/0.01605, allocations: 15 MB / 288.4 MB, free: 1.953 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1329/0.149, allocations: 5.24 MB / 293.7 MB, free: 14.39 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002562/0.1515, allocations: 136.2 kB / 293.8 MB, free: 14.39 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005826/0.1574, allocations: 4.685 MB / 298.5 MB, free: 14.08 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005969/0.1633, allocations: 2.659 MB / 301.2 MB, free: 13.07 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002393/0.1657, allocations: 1.293 MB / 302.4 MB, free: 12.49 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.008604/0.1743, allocations: 9.191 MB / 311.6 MB, free: 8.164 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004793/0.1791, allocations: 5.006 MB / 316.6 MB, free: 4.102 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006713/0.1858, allocations: 5.255 MB / 321.9 MB, free: 15.27 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00515/0.191, allocations: 3.508 MB / 325.4 MB, free: 12 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001547/0.1925, allocations: 0.5078 MB / 325.9 MB, free: 11.49 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002801/0.1953, allocations: 1.492 MB / 327.4 MB, free: 10.03 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002771/0.1981, allocations: 3.182 MB / 330.6 MB, free: 6.945 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003291/0.2014, allocations: 1.989 MB / 332.6 MB, free: 5.043 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00805/0.2094, allocations: 6.778 MB / 339.4 MB, free: 14.56 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.094e-06/0.2095, allocations: 0 / 339.4 MB, free: 14.56 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.214e-06/0.2095, allocations: 4 kB / 339.4 MB, free: 14.55 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0002481/0.2097, allocations: 0 / 339.4 MB, free: 14.55 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: 2058 * Number of variables: 2058 Notification: Performance of Generate backend data structure: time 0.01028/0.22, allocations: 7.055 MB / 346.4 MB, free: 7.809 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.069e-05/0.22, allocations: 11.98 kB / 346.4 MB, free: 7.797 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00436/0.2244, allocations: 1.613 MB / 348 MB, free: 6.184 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005002/0.2294, allocations: 3.282 MB / 351.3 MB, free: 2.801 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001924/0.2296, allocations: 337.1 kB / 351.6 MB, free: 2.469 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007954/0.2304, allocations: 464.1 kB / 352.1 MB, free: 2.016 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009863/0.2402, allocations: 7.064 MB / 359.2 MB, free: 9.996 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001664/0.2404, allocations: 63.47 kB / 359.2 MB, free: 9.934 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000404/0.2408, allocations: 215.8 kB / 359.4 MB, free: 9.723 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001844/0.2427, allocations: 2.321 MB / 361.8 MB, free: 7.398 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007649/0.2503, allocations: 3.618 MB / 365.4 MB, free: 3.738 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03928/0.2896, allocations: 43.02 MB / 408.4 MB, free: 7.215 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006746/0.2963, allocations: 2.848 MB / 411.2 MB, free: 4.32 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001058/0.2974, allocations: 0.6456 MB / 411.9 MB, free: 3.668 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009136/0.3065, allocations: 6.272 MB / 418.2 MB, free: 13.37 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.051e-05/0.3066, allocations: 60.55 kB / 418.2 MB, free: 13.3 MB / 378.7 MB Notification: Performance of pre-optimization done (n=237): time 5.46e-06/0.3066, allocations: 0 / 418.2 MB, free: 13.3 MB / 378.7 MB Notification: Performance of matching and sorting (n=347): time 0.2052/0.5118, allocations: 27.85 MB / 446.1 MB, free: 114.8 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.64e-05/0.5119, allocations: 243 kB / 446.3 MB, free: 114.5 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003959/0.5158, allocations: 4.354 MB / 450.7 MB, free: 114.1 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006721/0.5165, allocations: 80.08 kB / 450.7 MB, free: 114 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001381/0.5179, allocations: 4.002 MB / 454.7 MB, free: 111.4 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001063/0.5189, allocations: 1.316 MB / 456.1 MB, free: 110.5 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001618/0.5206, allocations: 1.612 MB / 457.7 MB, free: 110.1 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 3.127e-05/0.5206, allocations: 305.1 kB / 458 MB, free: 109.8 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002526/0.5231, allocations: 1.778 MB / 459.7 MB, free: 109.6 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003488/0.5266, allocations: 6.32 MB / 466.1 MB, free: 102.4 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005636/0.5322, allocations: 8.618 MB / 474.7 MB, free: 91.84 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.102e-05/0.5323, allocations: 48 kB / 474.7 MB, free: 91.8 MB / 378.7 MB Notification: Performance of matching and sorting (n=1133) (initialization): time 0.02862/0.5609, allocations: 10.63 MB / 485.4 MB, free: 81.09 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.61e-05/0.561, allocations: 72 kB / 485.4 MB, free: 81.02 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001059/0.5611, allocations: 160 kB / 485.6 MB, free: 80.87 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01722/0.5783, allocations: 9.497 MB / 495.1 MB, free: 71.38 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003361/0.5817, allocations: 1.774 MB / 496.9 MB, free: 69.6 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02823/0.6099, allocations: 18.42 MB / 0.5032 GB, free: 50.88 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005167/0.6151, allocations: 351.7 kB / 0.5035 GB, free: 50.54 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008775/0.616, allocations: 420 kB / 0.5039 GB, free: 50.12 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.002376/0.6183, allocations: 0.7886 MB / 0.5047 GB, free: 49.32 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001052/0.6194, allocations: 371.6 kB / 0.5051 GB, free: 48.96 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02355/0.6429, allocations: 7.172 MB / 0.5121 GB, free: 41.71 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.634e-05/0.643, allocations: 36 kB / 0.5121 GB, free: 41.68 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.449e-05/0.643, allocations: 28 kB / 0.5121 GB, free: 41.65 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.991e-05/0.6431, allocations: 19.92 kB / 0.5121 GB, free: 41.63 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04764/0.6907, allocations: 15.96 MB / 0.5277 GB, free: 25.43 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.678e-05/0.6908, allocations: 8 kB / 0.5277 GB, free: 25.43 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001894/0.6927, allocations: 0.5452 MB / 0.5283 GB, free: 24.88 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02143/0.7141, allocations: 9.012 MB / 0.5371 GB, free: 15.85 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000481/0.7146, allocations: 71.98 kB / 0.5371 GB, free: 15.78 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02995/0.7445, allocations: 15.1 MB / 0.5519 GB, free: 380 kB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.36e-06/0.7445, allocations: 15.94 kB / 0.5519 GB, free: 364 kB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1732/0.9177, allocations: 8.722 MB / 0.5604 GB, free: 107.1 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001627/0.9194, allocations: 489.3 kB / 0.5609 GB, free: 107.1 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001433/0.9208, allocations: 75.19 kB / 0.561 GB, free: 107.1 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00264/0.9234, allocations: 70.66 kB / 0.561 GB, free: 107.1 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001529/0.925, allocations: 307.7 kB / 0.5613 GB, free: 107.1 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003709/0.9253, allocations: 74.23 kB / 0.5614 GB, free: 107.1 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002807/0.9281, allocations: 1.694 MB / 0.563 GB, free: 106.9 MB / 394.7 MB Notification: Performance of sort global known variables: time 2e-07/0.9281, allocations: 0 / 0.563 GB, free: 106.9 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.00952/0.9377, allocations: 2.437 MB / 0.5654 GB, free: 106.9 MB / 394.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.000801/0.9385, allocations: 213.7 kB / 0.5656 GB, free: 106.9 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0129/0.9514, allocations: 6.415 MB / 0.5719 GB, free: 106.1 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0004492/0.9518, allocations: 111 kB / 0.572 GB, free: 106.1 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007626/0.9594, allocations: 3.126 MB / 0.5751 GB, free: 105.4 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005405/0.9648, allocations: 0.9536 MB / 0.576 GB, free: 105.4 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02218/0.987, allocations: 13.23 MB / 0.5889 GB, free: 100.7 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002568/0.9896, allocations: 1.935 MB / 0.5908 GB, free: 100.5 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001887/0.9915, allocations: 0.6546 MB / 0.5914 GB, free: 100.5 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001585/0.9931, allocations: 0.729 MB / 0.5921 GB, free: 100.2 MB / 394.7 MB Notification: Performance of SimCode: time 1.512e-06/0.9931, allocations: 0 / 0.5921 GB, free: 100.2 MB / 394.7 MB Notification: Performance of Templates: time 0.2468/1.24, allocations: 136.6 MB / 0.7256 GB, free: 123.4 MB / 410.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1 -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.513575179036707]