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.001139/0.001139, allocations: 79.69 kB / 21.7 MB, free: 2.852 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.001252/0.001252, allocations: 163.5 kB / 24.99 MB, free: 8.801 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.943/0.943, allocations: 177 MB / 205.2 MB, free: 5.578 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.222e-06/1.222e-06, allocations: 0 / 273 MB, free: 1.738 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.675e-05/2.797e-05, allocations: 9.125 kB / 273 MB, free: 1.73 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.01149/0.01152, allocations: 14.48 MB / 287.5 MB, free: 3.18 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1409/0.1524, allocations: 4.722 MB / 292.2 MB, free: 14.03 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002156/0.1545, allocations: 108.6 kB / 292.3 MB, free: 14.03 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004901/0.1594, allocations: 3.385 MB / 295.7 MB, free: 14.02 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005838/0.1653, allocations: 2.698 MB / 298.4 MB, free: 13.7 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002342/0.1676, allocations: 1.114 MB / 299.5 MB, free: 13.56 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.008989/0.1766, allocations: 7.802 MB / 307.3 MB, free: 10.29 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004548/0.1811, allocations: 4.234 MB / 311.5 MB, free: 7.582 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005581/0.1867, allocations: 3.384 MB / 314.9 MB, free: 5.551 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004465/0.1912, allocations: 3.631 MB / 318.5 MB, free: 2.184 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001386/0.1926, allocations: 496 kB / 319 MB, free: 1.699 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002703/0.1953, allocations: 1.472 MB / 320.5 MB, free: 312 kB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002779/0.1981, allocations: 3.069 MB / 323.6 MB, free: 13.32 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00295/0.201, allocations: 1.854 MB / 325.4 MB, free: 11.54 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008118/0.2091, allocations: 6.876 MB / 332.3 MB, free: 4.992 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.981e-06/0.2091, allocations: 4 kB / 332.3 MB, free: 4.988 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.432e-06/0.2091, allocations: 0 / 332.3 MB, free: 4.988 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0002974/0.2094, allocations: 0 / 332.3 MB, free: 4.988 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.01097/0.2204, allocations: 7.917 MB / 340.2 MB, free: 13.14 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.932e-05/0.2205, allocations: 15.98 kB / 340.2 MB, free: 13.13 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009952/0.2304, allocations: 4.689 MB / 344.9 MB, free: 8.492 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006404/0.2368, allocations: 3.661 MB / 348.6 MB, free: 4.809 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001916/0.237, allocations: 320.3 kB / 348.9 MB, free: 4.551 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008917/0.2379, allocations: 437.3 kB / 349.3 MB, free: 4.184 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01352/0.2514, allocations: 8.997 MB / 358.3 MB, free: 10.11 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001741/0.2516, allocations: 62.66 kB / 358.4 MB, free: 10.05 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005433/0.2521, allocations: 202.3 kB / 358.6 MB, free: 9.906 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003237/0.2554, allocations: 3.214 MB / 361.8 MB, free: 6.703 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0134/0.2688, allocations: 5.222 MB / 367 MB, free: 1.484 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05203/0.3208, allocations: 60.07 MB / 427.1 MB, free: 3.926 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007329/0.3281, allocations: 3.053 MB / 430.1 MB, free: 0.8281 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.1347/0.4628, allocations: 1.167 MB / 431.3 MB, free: 118 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01381/0.4766, allocations: 8.251 MB / 439.6 MB, free: 116.9 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.103e-05/0.4767, allocations: 64.91 kB / 439.6 MB, free: 116.9 MB / 378.7 MB Notification: Performance of pre-optimization done (n=289): time 5.931e-06/0.4767, allocations: 0 / 439.6 MB, free: 116.9 MB / 378.7 MB Notification: Performance of matching and sorting (n=339): time 0.05798/0.5347, allocations: 27.19 MB / 466.8 MB, free: 104.3 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.822e-05/0.5347, allocations: 214 kB / 467 MB, free: 104.1 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004387/0.5391, allocations: 4.71 MB / 471.7 MB, free: 99.55 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006061/0.5397, allocations: 75.67 kB / 471.8 MB, free: 99.47 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001711/0.5414, allocations: 4.729 MB / 476.5 MB, free: 94.9 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001445/0.5429, allocations: 1.35 MB / 477.9 MB, free: 93.57 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00195/0.5448, allocations: 1.926 MB / 479.8 MB, free: 91.63 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 3.984e-05/0.5449, allocations: 476.8 kB / 480.3 MB, free: 91.16 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002447/0.5473, allocations: 1.669 MB / 481.9 MB, free: 89.48 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004281/0.5516, allocations: 9.096 MB / 491 MB, free: 77.03 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008629/0.5602, allocations: 11.73 MB / 0.491 GB, free: 61.94 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001466/0.5604, allocations: 52 kB / 0.491 GB, free: 61.89 MB / 378.7 MB Notification: Performance of matching and sorting (n=1185) (initialization): time 0.02199/0.5824, allocations: 12.33 MB / 0.5031 GB, free: 49.52 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.393e-05/0.5825, allocations: 80 kB / 0.5032 GB, free: 49.44 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001589/0.5826, allocations: 172 kB / 0.5033 GB, free: 49.27 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01279/0.5954, allocations: 4.858 MB / 0.5081 GB, free: 44.4 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004855/0.6003, allocations: 2.109 MB / 0.5101 GB, free: 42.29 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01196/0.6122, allocations: 9.357 MB / 0.5193 GB, free: 32.69 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005271/0.6175, allocations: 0.6123 MB / 0.5199 GB, free: 32.08 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008819/0.6184, allocations: 0.5195 MB / 0.5204 GB, free: 31.56 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 791 * 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 (1094): * Single equations (assignments): 1086 * 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,42,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00209/0.6205, allocations: 0.8489 MB / 0.5212 GB, free: 30.7 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008774/0.6214, allocations: 0.5666 MB / 0.5217 GB, free: 30.13 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01383/0.6352, allocations: 7.254 MB / 0.5288 GB, free: 22.81 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.559e-05/0.6352, allocations: 55.98 kB / 0.5289 GB, free: 22.75 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.26e-05/0.6352, allocations: 15.94 kB / 0.5289 GB, free: 22.74 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.089e-05/0.6353, allocations: 18.52 kB / 0.5289 GB, free: 22.72 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02347/0.6587, allocations: 15.75 MB / 0.5443 GB, free: 6.523 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.178e-05/0.6587, allocations: 4 kB / 0.5443 GB, free: 6.52 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001486/0.6602, allocations: 0.5772 MB / 0.5449 GB, free: 5.941 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01085/0.6711, allocations: 4.269 MB / 0.549 GB, free: 1.66 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003595/0.6714, allocations: 59.94 kB / 0.5491 GB, free: 1.602 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01054/0.682, allocations: 8.163 MB / 0.5571 GB, free: 9.203 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.21e-06/0.682, allocations: 8 kB / 0.5571 GB, free: 9.195 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1588/0.8408, allocations: 8.346 MB / 0.5652 GB, free: 111.5 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001234/0.842, allocations: 472.8 kB / 0.5657 GB, free: 111.5 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007381/0.8428, allocations: 55.45 kB / 0.5657 GB, free: 111.5 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002272/0.8451, allocations: 304.8 kB / 0.566 GB, free: 111.5 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007413/0.8458, allocations: 208.3 kB / 0.5662 GB, free: 111.5 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002761/0.8461, allocations: 86.14 kB / 0.5663 GB, free: 111.5 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.00311/0.8492, allocations: 2.009 MB / 0.5683 GB, free: 111.2 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.8492, allocations: 3.188 kB / 0.5683 GB, free: 111.2 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.004882/0.8541, allocations: 1.868 MB / 0.5701 GB, free: 111.2 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * 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 (254): * Single equations (assignments): 246 * 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,38,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005785/0.8546, allocations: 218.8 kB / 0.5703 GB, free: 111.2 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.007421/0.8621, allocations: 5.879 MB / 0.576 GB, free: 110.3 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 6.282e-06/0.8621, allocations: 3.375 kB / 0.576 GB, free: 110.3 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002436/0.8645, allocations: 1.961 MB / 0.578 GB, free: 110 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00227/0.8668, allocations: 0.5395 MB / 0.5785 GB, free: 110 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01485/0.8816, allocations: 12.51 MB / 0.5907 GB, free: 103.8 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001436/0.8831, allocations: 1.877 MB / 0.5925 GB, free: 102.8 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0035/0.8866, allocations: 2.37 MB / 0.5948 GB, free: 101.6 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009565/0.8875, allocations: 335.9 kB / 0.5952 GB, free: 101.3 MB / 394.7 MB Notification: Performance of SimCode: time 2.404e-06/0.8875, allocations: 0 / 0.5952 GB, free: 101.3 MB / 394.7 MB Notification: Performance of Templates: time 0.07439/0.9619, allocations: 74.94 MB / 0.6684 GB, free: 27.58 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.897247261134908]