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.001378/0.001378, allocations: 82.59 kB / 21.43 MB, free: 3.07 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.001048/0.001048, allocations: 171.9 kB / 24.82 MB, free: 9.273 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.9961/0.9961, allocations: 177 MB / 205.1 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.693e-06/1.693e-06, allocations: 0 / 273.3 MB, free: 1.23 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.435e-05/2.604e-05, allocations: 2.312 kB / 273.3 MB, free: 1.227 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.0156/0.01563, allocations: 14.05 MB / 287.4 MB, free: 3.105 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1449/0.1605, allocations: 4.702 MB / 292.1 MB, free: 13.83 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002365/0.1629, allocations: 110 kB / 292.2 MB, free: 13.83 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004905/0.1678, allocations: 3.339 MB / 295.5 MB, free: 13.82 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006676/0.1744, allocations: 2.711 MB / 298.2 MB, free: 13.48 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002143/0.1766, allocations: 1.103 MB / 299.3 MB, free: 13.46 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.008652/0.1852, allocations: 7.821 MB / 307.2 MB, free: 10.42 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004656/0.1899, allocations: 4.232 MB / 311.4 MB, free: 7.719 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00555/0.1954, allocations: 4.449 MB / 315.8 MB, free: 4.387 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003652/0.1991, allocations: 3.566 MB / 319.4 MB, free: 1.082 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00095/0.2, allocations: 488 kB / 319.9 MB, free: 0.6055 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002116/0.2022, allocations: 1.464 MB / 321.3 MB, free: 15.22 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002333/0.2045, allocations: 3.055 MB / 324.4 MB, free: 12.24 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002811/0.2073, allocations: 1.843 MB / 326.2 MB, free: 10.47 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007862/0.2152, allocations: 6.858 MB / 333.1 MB, free: 3.949 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.893e-06/0.2152, allocations: 3.984 kB / 333.1 MB, free: 3.945 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.112e-06/0.2152, allocations: 0 / 333.1 MB, free: 3.945 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0002274/0.2154, allocations: 0 / 333.1 MB, free: 3.945 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.009555/0.225, allocations: 7.387 MB / 340.5 MB, free: 13.05 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.075e-05/0.225, allocations: 11.98 kB / 340.5 MB, free: 13.04 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007124/0.2321, allocations: 2.786 MB / 343.3 MB, free: 10.31 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005306/0.2374, allocations: 3.048 MB / 346.3 MB, free: 7.242 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001884/0.2376, allocations: 324.9 kB / 346.7 MB, free: 6.98 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001451/0.2391, allocations: 426.5 kB / 347.1 MB, free: 6.625 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01265/0.2517, allocations: 8.08 MB / 355.2 MB, free: 13.5 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001595/0.2519, allocations: 59.52 kB / 355.2 MB, free: 13.44 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004414/0.2523, allocations: 201.8 kB / 355.4 MB, free: 13.25 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002835/0.2551, allocations: 2.857 MB / 358.3 MB, free: 10.38 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009315/0.2645, allocations: 3.954 MB / 362.2 MB, free: 6.414 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05131/0.3158, allocations: 59.25 MB / 421.5 MB, free: 9.32 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006253/0.322, allocations: 2.587 MB / 424.1 MB, free: 6.688 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001423/0.3234, allocations: 0.8561 MB / 424.9 MB, free: 5.82 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1526/0.4761, allocations: 6.927 MB / 431.8 MB, free: 112.8 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.634e-05/0.4761, allocations: 65.84 kB / 431.9 MB, free: 112.8 MB / 378.7 MB Notification: Performance of pre-optimization done (n=269): time 7.174e-06/0.4761, allocations: 0 / 431.9 MB, free: 112.8 MB / 378.7 MB Notification: Performance of matching and sorting (n=300): time 0.02781/0.5039, allocations: 10.3 MB / 442.2 MB, free: 112.5 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.895e-05/0.504, allocations: 212.9 kB / 442.4 MB, free: 112.3 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004321/0.5083, allocations: 4.825 MB / 447.2 MB, free: 111.6 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003392/0.5086, allocations: 63.64 kB / 447.3 MB, free: 111.6 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001989/0.5106, allocations: 4.865 MB / 452.2 MB, free: 109.1 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009332/0.5116, allocations: 1.225 MB / 453.4 MB, free: 108.4 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001557/0.5131, allocations: 1.949 MB / 455.3 MB, free: 108.2 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.601e-05/0.5132, allocations: 476.8 kB / 455.8 MB, free: 107.7 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001574/0.5147, allocations: 1.018 MB / 456.8 MB, free: 107.7 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004009/0.5188, allocations: 8.766 MB / 465.6 MB, free: 97.27 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007013/0.5258, allocations: 10.62 MB / 476.2 MB, free: 85.4 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001685/0.5259, allocations: 52 kB / 476.3 MB, free: 85.35 MB / 378.7 MB Notification: Performance of matching and sorting (n=1174) (initialization): time 0.01147/0.5374, allocations: 7.559 MB / 483.8 MB, free: 78.19 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.757e-05/0.5375, allocations: 80 kB / 483.9 MB, free: 78.11 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001723/0.5377, allocations: 187.4 kB / 484.1 MB, free: 77.93 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002012/0.5397, allocations: 0.8295 MB / 484.9 MB, free: 77.1 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004038/0.5437, allocations: 1.977 MB / 486.9 MB, free: 75.12 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004178/0.5479, allocations: 5.563 MB / 492.4 MB, free: 69.34 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004996/0.5529, allocations: 379.6 kB / 492.8 MB, free: 68.97 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001048/0.5539, allocations: 444 kB / 493.2 MB, free: 68.54 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.002425/0.5564, allocations: 0.8701 MB / 494.1 MB, free: 67.66 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009999/0.5574, allocations: 0.5476 MB / 494.7 MB, free: 67.11 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003265/0.5606, allocations: 2.421 MB / 497.1 MB, free: 64.66 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.074e-05/0.5607, allocations: 51.94 kB / 497.1 MB, free: 64.61 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.064e-05/0.5607, allocations: 4 kB / 497.1 MB, free: 64.61 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.498e-05/0.5607, allocations: 15.61 kB / 497.2 MB, free: 64.6 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01063/0.5713, allocations: 7.121 MB / 0.4925 GB, free: 57.31 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.314e-05/0.5713, allocations: 8 kB / 0.4925 GB, free: 57.3 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001094/0.5724, allocations: 404.2 kB / 0.4929 GB, free: 56.91 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001507/0.5739, allocations: 0.5692 MB / 0.4934 GB, free: 56.34 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001559/0.5741, allocations: 52 kB / 0.4935 GB, free: 56.29 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002778/0.5769, allocations: 4.59 MB / 0.4979 GB, free: 51.47 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.922e-06/0.5769, allocations: 13.02 kB / 0.498 GB, free: 51.46 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004722/0.5816, allocations: 3.697 MB / 0.5016 GB, free: 47.59 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001185/0.5828, allocations: 452.6 kB / 0.502 GB, free: 47.15 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004106/0.5832, allocations: 51.98 kB / 0.502 GB, free: 47.1 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009919/0.5842, allocations: 52 kB / 0.5021 GB, free: 47.05 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002626/0.5844, allocations: 177.5 kB / 0.5023 GB, free: 46.87 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001069/0.5846, allocations: 63.92 kB / 0.5023 GB, free: 46.81 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001792/0.5863, allocations: 1.903 MB / 0.5042 GB, free: 44.91 MB / 378.7 MB Notification: Performance of sort global known variables: time 9.1e-08/0.5863, allocations: 0 / 0.5042 GB, free: 44.91 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.006993/0.5933, allocations: 1.562 MB / 0.5057 GB, free: 43.35 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.0005925/0.5939, allocations: 218.7 kB / 0.5059 GB, free: 43.13 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.005781/0.5997, allocations: 4.327 MB / 0.5101 GB, free: 38.81 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 8.245e-06/0.5997, allocations: 0 / 0.5101 GB, free: 38.81 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00132/0.601, allocations: 1.168 MB / 0.5113 GB, free: 37.63 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002446/0.6035, allocations: 0.5305 MB / 0.5118 GB, free: 37.12 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01403/0.6175, allocations: 11.48 MB / 0.523 GB, free: 25.43 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001481/0.619, allocations: 1.83 MB / 0.5248 GB, free: 23.57 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.002271/0.6213, allocations: 0.7113 MB / 0.5255 GB, free: 22.88 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001139/0.6224, allocations: 0.7871 MB / 0.5263 GB, free: 22.09 MB / 378.7 MB Notification: Performance of SimCode: time 1.573e-06/0.6224, allocations: 4 kB / 0.5263 GB, free: 22.09 MB / 378.7 MB Notification: Performance of Templates: time 0.1868/0.8092, allocations: 50.88 MB / 0.576 GB, free: 110.9 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 -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.392520627938211]