Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002478/0.002478, allocations: 95.86 kB / 20.96 MB, free: 3.457 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00281/0.00281, allocations: 149.1 kB / 24.26 MB, free: 164 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.528/1.528, allocations: 173.4 MB / 200.8 MB, free: 9.289 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.844e-06/1.844e-06, allocations: 0 / 267.3 MB, free: 6.723 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.882e-05/3.067e-05, allocations: 6.312 kB / 267.3 MB, free: 6.715 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic): time 0.02668/0.02671, allocations: 13.05 MB / 280.4 MB, free: 9.609 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01476/0.04147, allocations: 4.779 MB / 285.1 MB, free: 4.816 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002764/0.04423, allocations: 103.5 kB / 285.2 MB, free: 4.715 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01287/0.05711, allocations: 4.509 MB / 289.8 MB, free: 196 kB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.1386/0.1958, allocations: 2.279 MB / 292 MB, free: 14.58 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002689/0.1984, allocations: 1.229 MB / 293.3 MB, free: 14.54 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.008961/0.2074, allocations: 6.635 MB / 299.9 MB, free: 13.82 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005927/0.2133, allocations: 4.735 MB / 304.6 MB, free: 12.11 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005565/0.2189, allocations: 3.302 MB / 307.9 MB, free: 10.81 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004712/0.2236, allocations: 3.22 MB / 311.2 MB, free: 9.301 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001517/0.2251, allocations: 0.4999 MB / 311.7 MB, free: 9.301 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003311/0.2284, allocations: 1.594 MB / 313.2 MB, free: 8.828 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002394/0.2308, allocations: 2.808 MB / 316.1 MB, free: 6.121 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002366/0.2332, allocations: 1.77 MB / 317.8 MB, free: 4.43 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01209/0.2453, allocations: 9.783 MB / 327.6 MB, free: 11 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.933e-06/0.2453, allocations: 0 / 327.6 MB, free: 11 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.144e-06/0.2453, allocations: 0 / 327.6 MB, free: 11 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0003498/0.2456, allocations: 0 / 327.6 MB, free: 11 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: 1743 * Number of variables: 1743 Notification: Performance of Generate backend data structure: time 0.01901/0.2646, allocations: 7.156 MB / 334.8 MB, free: 3.867 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.092e-05/0.2647, allocations: 8.922 kB / 334.8 MB, free: 3.859 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01482/0.2795, allocations: 3.203 MB / 338 MB, free: 0.6875 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0114/0.2909, allocations: 3.395 MB / 341.4 MB, free: 13.44 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003859/0.2913, allocations: 307.2 kB / 341.7 MB, free: 13.17 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001852/0.2932, allocations: 436.4 kB / 342.1 MB, free: 12.79 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02163/0.3148, allocations: 8.131 MB / 350.2 MB, free: 3.852 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001517/0.3149, allocations: 51.3 kB / 350.3 MB, free: 3.824 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005169/0.3155, allocations: 181.9 kB / 350.5 MB, free: 3.68 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003776/0.3192, allocations: 2.037 MB / 352.5 MB, free: 1.664 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01737/0.3366, allocations: 4.587 MB / 357.1 MB, free: 13.26 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07685/0.4135, allocations: 54.57 MB / 411.6 MB, free: 5.418 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01215/0.4256, allocations: 3.107 MB / 414.8 MB, free: 2.281 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00175/0.4274, allocations: 0.7465 MB / 415.5 MB, free: 1.516 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01252/0.4399, allocations: 4.686 MB / 420.2 MB, free: 12.84 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.942e-05/0.4399, allocations: 56.92 kB / 420.2 MB, free: 12.77 MB / 378.7 MB Notification: Performance of pre-optimization done (n=179): time 4.87e-06/0.4399, allocations: 0 / 420.2 MB, free: 12.77 MB / 378.7 MB Notification: Performance of matching and sorting (n=223): time 0.1954/0.6353, allocations: 15.72 MB / 436 MB, free: 118.8 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.917e-05/0.6354, allocations: 206.6 kB / 436.2 MB, free: 118.6 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007561/0.643, allocations: 4.956 MB / 441.1 MB, free: 118 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003466/0.6433, allocations: 56.98 kB / 441.2 MB, free: 118 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002762/0.6461, allocations: 4.075 MB / 445.3 MB, free: 116.3 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001149/0.6473, allocations: 0.9578 MB / 446.2 MB, free: 115.8 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002199/0.6495, allocations: 1.721 MB / 447.9 MB, free: 115.1 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.335e-05/0.6495, allocations: 481.5 kB / 448.4 MB, free: 114.7 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001927/0.6515, allocations: 0.8859 MB / 449.3 MB, free: 114.5 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003762/0.6552, allocations: 6.776 MB / 456.1 MB, free: 106.7 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006625/0.6619, allocations: 8.442 MB / 464.5 MB, free: 97.98 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.767e-05/0.662, allocations: 42.25 kB / 464.6 MB, free: 97.97 MB / 378.7 MB Notification: Performance of matching and sorting (n=868) (initialization): time 0.01257/0.6745, allocations: 6.629 MB / 471.2 MB, free: 95.66 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.12e-05/0.6746, allocations: 62.59 kB / 471.2 MB, free: 95.66 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001746/0.6748, allocations: 133.2 kB / 471.4 MB, free: 95.66 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004234/0.679, allocations: 1.057 MB / 472.4 MB, free: 95.54 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004159/0.6832, allocations: 1.474 MB / 473.9 MB, free: 95.16 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007537/0.6907, allocations: 5.059 MB / 479 MB, free: 90.43 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005454/0.6962, allocations: 412 kB / 479.4 MB, free: 90.09 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008466/0.697, allocations: 387.9 kB / 479.7 MB, free: 89.71 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 605 * Number of states: 0 () * Number of discrete variables: 46 (jointSSP.prismatic.positiveBranch,b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],jointSSP.rod2Color[3],jointSSP.rod2Color[2],jointSSP.rod2Color[1],jointSSP.sphereColor[3],jointSSP.sphereColor[2],jointSSP.sphereColor[1],jointSSP.rod1Color[3],jointSSP.rod1Color[2],jointSSP.rod1Color[1],jointSSP.rod1.massColor[3],jointSSP.rod1.massColor[2],jointSSP.rod1.massColor[1],jointSSP.boxColor[3],jointSSP.boxColor[2],jointSSP.boxColor[1],b3.color[3],b3.color[2],b3.color[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.cylinderColor[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],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (804): * Single equations (assignments): 800 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,40,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002856/0.6999, allocations: 0.7935 MB / 480.5 MB, free: 88.92 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001103/0.701, allocations: 457.1 kB / 481 MB, free: 88.48 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00632/0.7073, allocations: 2.392 MB / 483.4 MB, free: 86.18 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.688e-05/0.7073, allocations: 24 kB / 483.4 MB, free: 86.16 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.374e-05/0.7073, allocations: 8 kB / 483.4 MB, free: 86.15 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.962e-05/0.7074, allocations: 11.95 kB / 483.4 MB, free: 86.14 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01926/0.7266, allocations: 8.39 MB / 491.8 MB, free: 77.66 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.317e-05/0.7266, allocations: 8 kB / 491.8 MB, free: 77.65 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001482/0.7281, allocations: 331.7 kB / 492.1 MB, free: 77.33 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004013/0.7321, allocations: 0.8462 MB / 493 MB, free: 76.48 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002887/0.7324, allocations: 44 kB / 493 MB, free: 76.44 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006744/0.7392, allocations: 3.946 MB / 497 MB, free: 72.38 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.241e-06/0.7392, allocations: 7.938 kB / 497 MB, free: 72.37 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008745/0.7479, allocations: 3.84 MB / 0.4891 GB, free: 68.43 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001754/0.7497, allocations: 393.2 kB / 0.4895 GB, free: 68.04 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001294/0.751, allocations: 47.75 kB / 0.4895 GB, free: 68 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00269/0.7537, allocations: 155.7 kB / 0.4897 GB, free: 67.84 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004605/0.7541, allocations: 156.9 kB / 0.4898 GB, free: 67.69 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001909/0.7543, allocations: 58.62 kB / 0.4899 GB, free: 67.63 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.003645/0.758, allocations: 2.082 MB / 0.4919 GB, free: 65.54 MB / 378.7 MB Notification: Performance of sort global known variables: time 1e-07/0.758, allocations: 0 / 0.4919 GB, free: 65.54 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.007284/0.7652, allocations: 1.344 MB / 0.4932 GB, free: 64.2 MB / 378.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 (173): * Single equations (assignments): 169 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,30,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0008081/0.766, allocations: 262 kB / 0.4935 GB, free: 63.94 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.007336/0.7734, allocations: 3.954 MB / 0.4973 GB, free: 59.99 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.051e-05/0.7734, allocations: 0 / 0.4973 GB, free: 59.99 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001876/0.7753, allocations: 1.18 MB / 0.4985 GB, free: 58.79 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003715/0.779, allocations: 0.4901 MB / 0.4989 GB, free: 58.31 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01605/0.795, allocations: 9.335 MB / 0.5081 GB, free: 48.81 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003216/0.7982, allocations: 3.048 MB / 0.511 GB, free: 45.72 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.00348/0.8017, allocations: 1.626 MB / 0.5126 GB, free: 44.09 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007806/0.8025, allocations: 268.5 kB / 0.5129 GB, free: 43.82 MB / 378.7 MB Notification: Performance of SimCode: time 1.092e-06/0.8025, allocations: 0 / 0.5129 GB, free: 43.82 MB / 378.7 MB Notification: Performance of Templates: time 0.06574/0.8682, allocations: 40.24 MB / 0.5522 GB, free: 4.148 MB / 378.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar_analytic/Fourbar_analytic.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.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: 6.991912962985225]