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.0009307/0.0009307, allocations: 72.08 kB / 21.69 MB, free: 2.859 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.001124/0.001124, allocations: 142 kB / 24.97 MB, free: 8.324 MB / 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 0.9253/0.9253, allocations: 173.4 MB / 201.5 MB, free: 9.328 MB / 186.7 MB " [Timeout remaining time 179] 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.794e-06/1.794e-06, allocations: 0 / 268.1 MB, free: 6.734 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.55e-05/2.729e-05, allocations: 2.312 kB / 268.1 MB, free: 6.73 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic): time 0.01045/0.01048, allocations: 13.1 MB / 281.2 MB, free: 9.57 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.007343/0.01782, allocations: 4.76 MB / 285.9 MB, free: 4.797 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001072/0.01889, allocations: 111.4 kB / 286 MB, free: 4.688 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004057/0.02295, allocations: 4.513 MB / 290.6 MB, free: 164 kB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.1266/0.1496, allocations: 2.282 MB / 292.8 MB, free: 14.61 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001921/0.1515, allocations: 1.223 MB / 294.1 MB, free: 14.58 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.006827/0.1583, allocations: 6.642 MB / 300.7 MB, free: 13.86 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004894/0.1632, allocations: 4.73 MB / 305.4 MB, free: 12.14 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003858/0.1671, allocations: 3.305 MB / 308.7 MB, free: 10.86 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003131/0.1702, allocations: 3.218 MB / 312 MB, free: 9.344 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009084/0.1711, allocations: 0.5004 MB / 312.5 MB, free: 9.344 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001835/0.173, allocations: 1.593 MB / 314 MB, free: 8.836 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001354/0.1743, allocations: 2.804 MB / 316.8 MB, free: 6.133 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001896/0.1762, allocations: 1.774 MB / 318.6 MB, free: 4.438 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005169/0.1814, allocations: 6.14 MB / 324.8 MB, free: 14.65 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.126e-06/0.1814, allocations: 0 / 324.8 MB, free: 14.65 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.353e-06/0.1814, allocations: 0 / 324.8 MB, free: 14.65 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0001668/0.1815, allocations: 1.969 kB / 324.8 MB, free: 14.65 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.00845/0.19, allocations: 6.581 MB / 331.3 MB, free: 8.102 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.908e-05/0.19, allocations: 12.92 kB / 331.4 MB, free: 8.09 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006817/0.1969, allocations: 3.204 MB / 334.6 MB, free: 4.918 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004224/0.2011, allocations: 3.35 MB / 337.9 MB, free: 1.715 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001477/0.2012, allocations: 302.6 kB / 338.2 MB, free: 1.453 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005077/0.2017, allocations: 436.7 kB / 338.6 MB, free: 1.062 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009491/0.2112, allocations: 7.585 MB / 346.2 MB, free: 8.672 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.768e-05/0.2113, allocations: 48.3 kB / 346.3 MB, free: 8.645 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003313/0.2117, allocations: 186.2 kB / 346.4 MB, free: 8.496 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001897/0.2136, allocations: 2.039 MB / 348.5 MB, free: 6.488 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008534/0.2221, allocations: 4.283 MB / 352.8 MB, free: 2.402 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0317/0.2538, allocations: 47.14 MB / 399.9 MB, free: 2.43 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006317/0.2601, allocations: 3.028 MB / 402.9 MB, free: 15.37 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009055/0.261, allocations: 0.6989 MB / 403.6 MB, free: 14.65 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00549/0.2665, allocations: 4.601 MB / 408.2 MB, free: 10.07 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.614e-05/0.2665, allocations: 53.45 kB / 408.3 MB, free: 10.01 MB / 362.7 MB Notification: Performance of pre-optimization done (n=179): time 3.838e-06/0.2665, allocations: 0 / 408.3 MB, free: 10.01 MB / 362.7 MB Notification: Performance of matching and sorting (n=223): time 0.03101/0.2976, allocations: 15.51 MB / 423.8 MB, free: 10.55 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.648e-05/0.2977, allocations: 205.4 kB / 424 MB, free: 10.32 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004025/0.3017, allocations: 3.897 MB / 427.9 MB, free: 6.391 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001093/0.3018, allocations: 57.7 kB / 428 MB, free: 6.328 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001892/0.3037, allocations: 3.829 MB / 431.8 MB, free: 2.512 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006258/0.3043, allocations: 0.8909 MB / 432.7 MB, free: 1.633 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001256/0.3056, allocations: 1.424 MB / 434.1 MB, free: 200 kB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.1159/0.4214, allocations: 484.4 kB / 434.6 MB, free: 122.7 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00218/0.4236, allocations: 0.7873 MB / 435.4 MB, free: 122.7 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00305/0.4266, allocations: 6.451 MB / 441.8 MB, free: 115.4 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005561/0.4322, allocations: 7.949 MB / 449.8 MB, free: 107.7 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.98e-05/0.4323, allocations: 37.78 kB / 449.8 MB, free: 107.7 MB / 378.7 MB Notification: Performance of matching and sorting (n=868) (initialization): time 0.00915/0.4414, allocations: 6.401 MB / 456.2 MB, free: 106.6 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.206e-05/0.4415, allocations: 59.52 kB / 456.3 MB, free: 106.6 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001026/0.4416, allocations: 132.8 kB / 456.4 MB, free: 106.6 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002367/0.4439, allocations: 1.028 MB / 457.4 MB, free: 106.5 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002429/0.4464, allocations: 1.474 MB / 458.9 MB, free: 106.4 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004501/0.4509, allocations: 4.59 MB / 463.5 MB, free: 104.3 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002602/0.4535, allocations: 411.5 kB / 463.9 MB, free: 104.3 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003133/0.4538, allocations: 390.6 kB / 464.3 MB, free: 104.3 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.001308/0.4551, allocations: 0.6909 MB / 464.9 MB, free: 103.9 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004242/0.4555, allocations: 453.3 kB / 465.4 MB, free: 103.9 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003359/0.4589, allocations: 2.269 MB / 467.7 MB, free: 103 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.566e-05/0.4589, allocations: 28 kB / 467.7 MB, free: 103 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.063e-06/0.4589, allocations: 8 kB / 467.7 MB, free: 103 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.237e-05/0.4589, allocations: 15.06 kB / 467.7 MB, free: 103 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008136/0.467, allocations: 6.982 MB / 474.7 MB, free: 97.17 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.454e-06/0.4671, allocations: 4 kB / 474.7 MB, free: 97.17 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007097/0.4678, allocations: 329.4 kB / 475 MB, free: 96.9 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002009/0.4698, allocations: 0.8131 MB / 475.8 MB, free: 96.41 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001025/0.4699, allocations: 43.94 kB / 475.9 MB, free: 96.37 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003519/0.4734, allocations: 3.561 MB / 479.4 MB, free: 92.8 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/0.4734, allocations: 7.938 kB / 479.4 MB, free: 92.8 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004208/0.4776, allocations: 3.56 MB / 483 MB, free: 89.36 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004287/0.478, allocations: 396.5 kB / 483.4 MB, free: 89.02 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000286/0.4783, allocations: 40 kB / 483.4 MB, free: 88.98 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008887/0.4792, allocations: 155.8 kB / 483.6 MB, free: 88.83 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002249/0.4794, allocations: 148.9 kB / 483.7 MB, free: 88.69 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.621e-05/0.4795, allocations: 71.84 kB / 483.8 MB, free: 88.62 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001567/0.4811, allocations: 1.723 MB / 485.5 MB, free: 86.89 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.01e-07/0.4811, allocations: 0 / 485.5 MB, free: 86.89 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00354/0.4846, allocations: 1.34 MB / 486.9 MB, free: 85.56 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.000428/0.4851, allocations: 261.4 kB / 487.1 MB, free: 85.32 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003848/0.4889, allocations: 3.538 MB / 490.7 MB, free: 81.77 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.965e-06/0.4889, allocations: 3.391 kB / 490.7 MB, free: 81.77 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001023/0.4899, allocations: 1.055 MB / 491.7 MB, free: 80.7 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001464/0.4914, allocations: 0.4961 MB / 492.2 MB, free: 80.22 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009559/0.501, allocations: 9.184 MB / 0.4896 GB, free: 70.88 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001031/0.502, allocations: 1.53 MB / 0.4911 GB, free: 69.32 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.002164/0.5041, allocations: 1.631 MB / 0.4927 GB, free: 67.68 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004495/0.5046, allocations: 268.5 kB / 0.493 GB, free: 67.42 MB / 378.7 MB Notification: Performance of SimCode: time 2.074e-06/0.5046, allocations: 0 / 0.493 GB, free: 67.42 MB / 378.7 MB Notification: Performance of Templates: time 0.04792/0.5525, allocations: 40.29 MB / 0.5323 GB, free: 27.7 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","",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.090617890004069]