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.00131/0.00131, allocations: 84.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.001182/0.001182, allocations: 166.6 kB / 24.91 MB, free: 9.188 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 0.9721/0.9721, allocations: 177 MB / 205.2 MB, free: 5.469 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.433e-06/1.433e-06, allocations: 0 / 273.4 MB, free: 1.211 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.234e-05/2.378e-05, allocations: 2.312 kB / 273.4 MB, free: 1.207 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.0108/0.01083, allocations: 14.11 MB / 287.5 MB, free: 3.027 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1357/0.1466, allocations: 4.904 MB / 292.4 MB, free: 14.43 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002519/0.1491, allocations: 110.1 kB / 292.5 MB, free: 14.43 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005035/0.1541, allocations: 3.326 MB / 295.9 MB, free: 14.4 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006234/0.1604, allocations: 2.692 MB / 298.6 MB, free: 14.07 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002083/0.1624, allocations: 1.107 MB / 299.7 MB, free: 13.86 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.007878/0.1703, allocations: 7.789 MB / 307.5 MB, free: 10.54 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004686/0.175, allocations: 4.116 MB / 311.6 MB, free: 7.918 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006351/0.1814, allocations: 4.346 MB / 315.9 MB, free: 4.633 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003953/0.1853, allocations: 3.407 MB / 319.3 MB, free: 1.434 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00129/0.1866, allocations: 488 kB / 319.8 MB, free: 0.957 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002727/0.1893, allocations: 1.496 MB / 321.3 MB, free: 15.54 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002881/0.1922, allocations: 3.054 MB / 324.4 MB, free: 12.56 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003616/0.1958, allocations: 1.847 MB / 326.2 MB, free: 10.79 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00873/0.2046, allocations: 6.859 MB / 333.1 MB, free: 4.23 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.041e-06/0.2046, allocations: 0 / 333.1 MB, free: 4.23 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.212e-06/0.2046, allocations: 0 / 333.1 MB, free: 4.23 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.000305/0.2049, allocations: 0 / 333.1 MB, free: 4.23 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.009462/0.2143, allocations: 6.548 MB / 339.6 MB, free: 14.2 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.709e-05/0.2144, allocations: 11.98 kB / 339.6 MB, free: 14.18 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005274/0.2196, allocations: 1.827 MB / 341.4 MB, free: 12.43 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003862/0.2235, allocations: 2.809 MB / 344.3 MB, free: 9.602 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000154/0.2237, allocations: 321.3 kB / 344.6 MB, free: 9.344 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005498/0.2242, allocations: 434 kB / 345 MB, free: 8.98 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008852/0.2331, allocations: 7.325 MB / 352.3 MB, free: 0.9023 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001189/0.2332, allocations: 66.95 kB / 352.4 MB, free: 0.8398 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003748/0.2335, allocations: 203.8 kB / 352.6 MB, free: 0.6406 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0023/0.2358, allocations: 2.857 MB / 355.4 MB, free: 13.77 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007603/0.2435, allocations: 3.923 MB / 359.4 MB, free: 9.812 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03743/0.2809, allocations: 43.38 MB / 402.7 MB, free: 12.94 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005619/0.2865, allocations: 2.583 MB / 405.3 MB, free: 10.32 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001127/0.2876, allocations: 0.7042 MB / 406 MB, free: 9.598 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009363/0.297, allocations: 6.604 MB / 412.6 MB, free: 2.961 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.211e-05/0.297, allocations: 64.48 kB / 412.7 MB, free: 2.891 MB / 362.7 MB Notification: Performance of pre-optimization done (n=269): time 7.293e-06/0.297, allocations: 0 / 412.7 MB, free: 2.891 MB / 362.7 MB Notification: Performance of matching and sorting (n=300): time 0.02101/0.3181, allocations: 9.313 MB / 422 MB, free: 9.621 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.652e-05/0.3181, allocations: 209.9 kB / 422.2 MB, free: 9.375 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003742/0.3219, allocations: 4.331 MB / 426.5 MB, free: 5.031 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002372/0.3221, allocations: 69.69 kB / 426.6 MB, free: 4.957 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001846/0.324, allocations: 4.344 MB / 431 MB, free: 0.5664 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.1243/0.4483, allocations: 1.155 MB / 432.1 MB, free: 114.4 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002277/0.4505, allocations: 1.667 MB / 433.8 MB, free: 114.3 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 3.496e-05/0.4506, allocations: 305.8 kB / 434.1 MB, free: 114 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002411/0.453, allocations: 1.252 MB / 435.3 MB, free: 114 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004081/0.4571, allocations: 6.271 MB / 441.6 MB, free: 107.3 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00667/0.4637, allocations: 8.207 MB / 449.8 MB, free: 100.2 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001641/0.4639, allocations: 49.88 kB / 449.9 MB, free: 100.2 MB / 378.7 MB Notification: Performance of matching and sorting (n=1174) (initialization): time 0.00929/0.4732, allocations: 6.442 MB / 456.3 MB, free: 98.72 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.483e-05/0.4733, allocations: 80.41 kB / 456.4 MB, free: 98.72 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001649/0.4734, allocations: 183.5 kB / 456.6 MB, free: 98.72 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001894/0.4753, allocations: 0.8313 MB / 457.4 MB, free: 98.69 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003811/0.4791, allocations: 2.079 MB / 459.5 MB, free: 98.51 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003811/0.4829, allocations: 4.351 MB / 463.8 MB, free: 95.61 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004238/0.4872, allocations: 372.9 kB / 464.2 MB, free: 95.47 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005737/0.4878, allocations: 456.8 kB / 464.6 MB, free: 95.4 MB / 378.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.001929/0.4897, allocations: 0.8147 MB / 465.4 MB, free: 94.88 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005542/0.4902, allocations: 333.8 kB / 465.8 MB, free: 94.67 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002752/0.493, allocations: 2.109 MB / 467.9 MB, free: 93.09 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.777e-05/0.493, allocations: 51.14 kB / 467.9 MB, free: 93.04 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.806e-06/0.493, allocations: 7.938 kB / 467.9 MB, free: 93.03 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.441e-05/0.4931, allocations: 14.64 kB / 467.9 MB, free: 93.03 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008443/0.5015, allocations: 6.328 MB / 474.3 MB, free: 88.13 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.208e-06/0.5015, allocations: 4 kB / 474.3 MB, free: 88.12 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001409/0.5029, allocations: 0.6698 MB / 474.9 MB, free: 87.52 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001445/0.5044, allocations: 0.5722 MB / 475.5 MB, free: 87.14 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001646/0.5045, allocations: 48 kB / 475.6 MB, free: 87.1 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002531/0.5071, allocations: 3.433 MB / 479 MB, free: 83.6 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.769e-06/0.5071, allocations: 14.12 kB / 479 MB, free: 83.59 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003789/0.5109, allocations: 3.086 MB / 482.1 MB, free: 80.41 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008023/0.5117, allocations: 438.1 kB / 482.5 MB, free: 80.12 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003781/0.512, allocations: 54.86 kB / 482.6 MB, free: 80.07 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008942/0.5129, allocations: 51.83 kB / 482.6 MB, free: 80.02 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002956/0.5132, allocations: 177.5 kB / 482.8 MB, free: 79.85 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001124/0.5133, allocations: 56 kB / 482.9 MB, free: 79.8 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.00141/0.5147, allocations: 1.594 MB / 484.5 MB, free: 78.4 MB / 378.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.5147, allocations: 0 / 484.5 MB, free: 78.4 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.004881/0.5196, allocations: 1.553 MB / 486 MB, free: 76.86 MB / 378.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.0004232/0.5201, allocations: 201.4 kB / 486.2 MB, free: 76.67 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.004728/0.5248, allocations: 3.884 MB / 490.1 MB, free: 72.86 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001928/0.525, allocations: 119.5 kB / 490.2 MB, free: 72.74 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001048/0.526, allocations: 0.9744 MB / 491.2 MB, free: 71.75 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002689/0.5287, allocations: 0.8674 MB / 492 MB, free: 70.91 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01321/0.5419, allocations: 11.33 MB / 0.4916 GB, free: 59.43 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001382/0.5433, allocations: 1.818 MB / 0.4934 GB, free: 57.58 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001961/0.5453, allocations: 0.7034 MB / 0.494 GB, free: 56.88 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001168/0.5464, allocations: 0.7394 MB / 0.4948 GB, free: 56.13 MB / 378.7 MB Notification: Performance of SimCode: time 1.864e-06/0.5464, allocations: 0 / 0.4948 GB, free: 56.13 MB / 378.7 MB Notification: Performance of Templates: time 0.07447/0.6209, allocations: 50.76 MB / 0.5443 GB, free: 5.699 MB / 378.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 -s gbode -gbm=radauIIA3 -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: 4.13554328167811]