Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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.001871/0.001871, allocations: 105.1 kB / 21.23 MB, free: 0.6562 MB / 14.72 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.002318/0.002318, allocations: 213.7 kB / 24.54 MB, free: 4.016 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.479/1.479, allocations: 230.6 MB / 258.3 MB, free: 8.047 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001973/0.001973, allocations: 64.77 kB / 379 MB, free: 2.652 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2431/0.2451, allocations: 53.37 MB / 432.4 MB, free: 6.934 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.01827/0.2633, allocations: 15.06 MB / 447.5 MB, free: 7.809 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01045/0.2738, allocations: 4.873 MB / 452.4 MB, free: 2.922 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002172/0.276, allocations: 107.5 kB / 452.5 MB, free: 2.816 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006424/0.2824, allocations: 3.223 MB / 455.7 MB, free: 15.58 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006508/0.2889, allocations: 2.599 MB / 458.3 MB, free: 12.97 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002308/0.2912, allocations: 0.9904 MB / 459.3 MB, free: 11.98 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01016/0.3014, allocations: 7.053 MB / 466.3 MB, free: 4.918 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005195/0.3066, allocations: 3.214 MB / 469.5 MB, free: 1.641 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004162/0.3107, allocations: 2.25 MB / 471.8 MB, free: 15.38 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005633/0.3164, allocations: 3.517 MB / 475.3 MB, free: 11.86 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001595/0.3179, allocations: 488 kB / 475.8 MB, free: 11.38 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003525/0.3215, allocations: 1.529 MB / 477.3 MB, free: 9.848 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004046/0.3255, allocations: 2.925 MB / 480.2 MB, free: 6.914 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005367/0.3309, allocations: 3.215 MB / 483.4 MB, free: 3.68 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01443/0.3453, allocations: 10.4 MB / 493.8 MB, free: 9.238 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.436e-06/0.3453, allocations: 4 kB / 493.9 MB, free: 9.234 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.3453, allocations: 0 / 493.9 MB, free: 9.234 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0004343/0.3458, allocations: 0 / 493.9 MB, free: 9.234 MB / 398.1 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.02105/0.3668, allocations: 7.345 MB / 0.4895 GB, free: 1.812 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.741e-05/0.3669, allocations: 12.03 kB / 0.4895 GB, free: 1.801 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01567/0.3825, allocations: 3.978 MB / 0.4933 GB, free: 13.81 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009847/0.3924, allocations: 4.044 MB / 0.4973 GB, free: 9.715 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002966/0.3927, allocations: 320.4 kB / 0.4976 GB, free: 9.398 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001522/0.3942, allocations: 439.6 kB / 0.498 GB, free: 8.969 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02747/0.4217, allocations: 15.72 MB / 0.5134 GB, free: 8.32 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001534/0.4218, allocations: 51.58 kB / 0.5134 GB, free: 8.27 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005917/0.4224, allocations: 203.8 kB / 0.5136 GB, free: 8.07 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00523/0.4276, allocations: 3.223 MB / 0.5168 GB, free: 4.844 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02897/0.4566, allocations: 14.12 MB / 0.5305 GB, free: 6.703 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3168/0.7734, allocations: 57.41 MB / 0.5866 GB, free: 53.66 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01188/0.7852, allocations: 5.367 MB / 0.5919 GB, free: 48.96 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003898/0.7891, allocations: 3.337 MB / 0.5951 GB, free: 45.61 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01824/0.8074, allocations: 12.65 MB / 0.6075 GB, free: 33.21 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.952e-05/0.8074, allocations: 68.56 kB / 0.6075 GB, free: 33.14 MB / 446.1 MB Notification: Performance of pre-optimization done (n=289): time 6.051e-06/0.8074, allocations: 0 / 0.6075 GB, free: 33.14 MB / 446.1 MB Notification: Performance of matching and sorting (n=339): time 0.1381/0.9455, allocations: 42.5 MB / 0.649 GB, free: 6.965 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001644/0.9457, allocations: 217.9 kB / 0.6492 GB, free: 6.707 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01008/0.9557, allocations: 5.476 MB / 0.6546 GB, free: 1.355 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001153/0.9569, allocations: 73.7 kB / 0.6547 GB, free: 1.277 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004368/0.9613, allocations: 4.527 MB / 0.6591 GB, free: 12.92 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002731/0.964, allocations: 1.322 MB / 0.6604 GB, free: 11.59 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003416/0.9674, allocations: 1.861 MB / 0.6622 GB, free: 9.711 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001378/0.9675, allocations: 309.1 kB / 0.6625 GB, free: 9.406 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008288/0.9758, allocations: 4.808 MB / 0.6672 GB, free: 4.59 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01353/0.9894, allocations: 9.802 MB / 0.6767 GB, free: 8.34 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02291/1.012, allocations: 15.57 MB / 0.6919 GB, free: 6.305 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001785/1.012, allocations: 56 kB / 0.692 GB, free: 6.25 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1189) (initialization): time 0.04928/1.062, allocations: 19.55 MB / 0.7111 GB, free: 2.656 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001232/1.062, allocations: 80.94 kB / 0.7112 GB, free: 2.578 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002213/1.062, allocations: 176 kB / 0.7113 GB, free: 2.406 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02335/1.085, allocations: 5.941 MB / 0.7171 GB, free: 12.45 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007876/1.093, allocations: 2.113 MB / 0.7192 GB, free: 10.34 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03803/1.131, allocations: 25.95 MB / 0.7445 GB, free: 136 kB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.248/1.379, allocations: 0.5506 MB / 0.7451 GB, free: 186.2 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001908/1.381, allocations: 0.5172 MB / 0.7456 GB, free: 186.2 MB / 0.545 GB 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 (1098): * Single equations (assignments): 1090 * 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.005559/1.387, allocations: 3.091 MB / 0.7486 GB, free: 186.1 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001429/1.388, allocations: 0.5182 MB / 0.7491 GB, free: 186.1 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02959/1.418, allocations: 12.9 MB / 0.7617 GB, free: 182.5 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.522e-05/1.418, allocations: 55.66 kB / 0.7618 GB, free: 182.5 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.189e-05/1.418, allocations: 11.91 kB / 0.7618 GB, free: 182.5 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.186e-05/1.418, allocations: 18.16 kB / 0.7618 GB, free: 182.5 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04563/1.464, allocations: 24.44 MB / 0.7857 GB, free: 168.3 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.366e-05/1.464, allocations: 7.656 kB / 0.7857 GB, free: 168.3 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003105/1.467, allocations: 0.5772 MB / 0.7862 GB, free: 167.8 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01792/1.485, allocations: 4.968 MB / 0.7911 GB, free: 162.8 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009581/1.486, allocations: 63.73 kB / 0.7911 GB, free: 162.8 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02253/1.508, allocations: 21.14 MB / 0.8118 GB, free: 141.5 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.851e-06/1.508, allocations: 15.92 kB / 0.8118 GB, free: 141.5 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03137/1.54, allocations: 17.44 MB / 0.8288 GB, free: 124.2 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00157/1.541, allocations: 496 kB / 0.8293 GB, free: 123.8 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001377/1.542, allocations: 56.23 kB / 0.8294 GB, free: 123.7 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002956/1.545, allocations: 267.1 kB / 0.8296 GB, free: 123.5 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000727/1.546, allocations: 209.4 kB / 0.8298 GB, free: 123.3 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000253/1.546, allocations: 80.75 kB / 0.8299 GB, free: 123.2 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004414/1.551, allocations: 3.401 MB / 0.8332 GB, free: 119.8 MB / 0.545 GB Notification: Performance of sort global known variables: time 9e-08/1.551, allocations: 0 / 0.8332 GB, free: 119.8 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.008128/1.559, allocations: 1.736 MB / 0.8349 GB, free: 118.1 MB / 0.545 GB 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.0009551/1.56, allocations: 211.6 kB / 0.8351 GB, free: 117.9 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0145/1.574, allocations: 10.48 MB / 0.8453 GB, free: 107.5 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.097e-05/1.574, allocations: 0 / 0.8453 GB, free: 107.5 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.005222/1.58, allocations: 3.791 MB / 0.849 GB, free: 103.7 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004604/1.584, allocations: 0.6253 MB / 0.8497 GB, free: 103.1 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02575/1.61, allocations: 16.37 MB / 0.8656 GB, free: 86.64 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005418/1.615, allocations: 4.619 MB / 0.8701 GB, free: 81.98 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.00657/1.622, allocations: 2.966 MB / 0.873 GB, free: 79.01 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001694/1.624, allocations: 347.4 kB / 0.8734 GB, free: 78.67 MB / 0.545 GB Notification: Performance of SimCode: time 1.022e-06/1.624, allocations: 0 / 0.8734 GB, free: 78.67 MB / 0.545 GB Notification: Performance of Templates: time 0.3644/1.988, allocations: 80.23 MB / 0.9517 GB, free: 175.4 MB / 0.545 GB " [Timeout remaining time 658] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & ./Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.643014844506979]