Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.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.0009838/0.0009838, allocations: 79.91 kB / 21.18 MB, free: 3.391 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.0009017/0.0009017, allocations: 145.1 kB / 24.54 MB, free: 32 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 0.9142/0.9142, allocations: 173.4 MB / 201.1 MB, free: 8.98 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.Fourbar1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.252e-06/1.252e-06, allocations: 3.938 kB / 268 MB, free: 6.277 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.591e-05/1.716e-05, allocations: 2.312 kB / 268 MB, free: 6.273 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.01074/0.01075, allocations: 15.49 MB / 283.5 MB, free: 6.711 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.007725/0.01848, allocations: 5.065 MB / 288.6 MB, free: 1.629 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002122/0.0206, allocations: 135.2 kB / 288.7 MB, free: 1.496 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.1191/0.1397, allocations: 4.781 MB / 293.5 MB, free: 14.05 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005313/0.1451, allocations: 2.71 MB / 296.2 MB, free: 13.75 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001579/0.1466, allocations: 1.294 MB / 297.5 MB, free: 13.71 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.007572/0.1542, allocations: 8.961 MB / 306.4 MB, free: 11.93 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004548/0.1588, allocations: 5.229 MB / 311.7 MB, free: 8.648 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005247/0.164, allocations: 5.401 MB / 317.1 MB, free: 5.289 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003205/0.1672, allocations: 3.673 MB / 320.7 MB, free: 1.898 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008054/0.168, allocations: 0.5117 MB / 321.2 MB, free: 1.387 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001596/0.1696, allocations: 1.454 MB / 322.7 MB, free: 15.99 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001831/0.1714, allocations: 3.209 MB / 325.9 MB, free: 12.89 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001565/0.173, allocations: 2.013 MB / 327.9 MB, free: 10.96 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005289/0.1783, allocations: 6.828 MB / 334.8 MB, free: 4.559 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.1783, allocations: 0 / 334.8 MB, free: 4.559 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.914e-06/0.1783, allocations: 0 / 334.8 MB, free: 4.559 MB / 282.7 MB Notification: Performance of Transformations before backend: time 8.765e-05/0.1784, allocations: 0 / 334.8 MB, free: 4.559 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: 2058 * Number of variables: 2058 Notification: Performance of Generate backend data structure: time 0.008942/0.1873, allocations: 8.322 MB / 343.1 MB, free: 12.3 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.368e-05/0.1874, allocations: 8.922 kB / 343.1 MB, free: 12.29 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00777/0.1951, allocations: 3.757 MB / 346.8 MB, free: 8.57 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00429/0.1994, allocations: 3.976 MB / 350.8 MB, free: 4.75 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001641/0.1996, allocations: 339.6 kB / 351.1 MB, free: 4.461 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005097/0.2001, allocations: 467 kB / 351.6 MB, free: 4.051 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01025/0.2103, allocations: 8.751 MB / 360.4 MB, free: 10.29 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001138/0.2105, allocations: 73.25 kB / 360.4 MB, free: 10.24 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003639/0.2108, allocations: 211.4 kB / 360.6 MB, free: 10.08 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00213/0.213, allocations: 2.495 MB / 363.1 MB, free: 7.613 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008318/0.2213, allocations: 4.709 MB / 367.8 MB, free: 3.133 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04141/0.2627, allocations: 59.71 MB / 427.5 MB, free: 5.934 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007401/0.2701, allocations: 3.166 MB / 430.7 MB, free: 2.73 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001266/0.2714, allocations: 0.9523 MB / 431.7 MB, free: 1.766 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.139/0.4104, allocations: 7.276 MB / 438.9 MB, free: 102 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.515e-05/0.4104, allocations: 64.39 kB / 439 MB, free: 101.9 MB / 378.7 MB Notification: Performance of pre-optimization done (n=237): time 5.039e-06/0.4104, allocations: 0 / 439 MB, free: 101.9 MB / 378.7 MB Notification: Performance of matching and sorting (n=349): time 0.1293/0.5397, allocations: 76.95 MB / 0.5039 GB, free: 48.66 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.337e-05/0.5397, allocations: 242.5 kB / 0.5041 GB, free: 48.38 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004455/0.5442, allocations: 4.876 MB / 0.5089 GB, free: 44.43 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005421/0.5447, allocations: 78.64 kB / 0.5089 GB, free: 44.35 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001575/0.5463, allocations: 4.607 MB / 0.5134 GB, free: 40.16 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009001/0.5472, allocations: 1.391 MB / 0.5148 GB, free: 38.79 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001644/0.5489, allocations: 1.849 MB / 0.5166 GB, free: 36.92 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 3.902e-05/0.5489, allocations: 484.5 kB / 0.5171 GB, free: 36.45 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002329/0.5512, allocations: 1.876 MB / 0.5189 GB, free: 34.56 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004025/0.5552, allocations: 8.826 MB / 0.5275 GB, free: 22.68 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007583/0.5628, allocations: 11.65 MB / 0.5389 GB, free: 8.562 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.553e-05/0.5629, allocations: 44 kB / 0.5389 GB, free: 8.52 MB / 378.7 MB Notification: Performance of matching and sorting (n=1135) (initialization): time 0.1886/0.7514, allocations: 32.16 MB / 0.5703 GB, free: 93.35 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001081/0.7516, allocations: 74.5 kB / 0.5704 GB, free: 93.35 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002/0.7518, allocations: 160.6 kB / 0.5706 GB, free: 93.35 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02633/0.7781, allocations: 17.04 MB / 0.5872 GB, free: 93.13 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003281/0.7814, allocations: 1.747 MB / 0.5889 GB, free: 93.13 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03905/0.8204, allocations: 27.99 MB / 0.6162 GB, free: 78.46 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004698/0.8251, allocations: 1.027 MB / 0.6172 GB, free: 77.45 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005426/0.8257, allocations: 488 kB / 0.6177 GB, free: 76.98 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 734 * Number of states: 0 () * Number of discrete variables: 54 (b0.color[3],b0.color[2],b0.color[1],j5.cylinderColor[3],j5.cylinderColor[2],j5.cylinderColor[1],j4.cylinderColor[3],j4.cylinderColor[2],j4.cylinderColor[1],j3.cylinderColor[3],j3.cylinderColor[2],j3.cylinderColor[1],rev1.cylinderColor[3],rev1.cylinderColor[2],rev1.cylinderColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[1],b3.color[3],b3.color[2],b3.color[1],b3.body.sphereColor[3],b3.body.sphereColor[2],b3.body.sphereColor[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 (934): * Single equations (assignments): 927 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(21,67,29.3%), (17,35,35.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(12,27)} Notification: Performance of prepare postOptimizeDAE: time 0.001816/0.8275, allocations: 0.8358 MB / 0.6185 GB, free: 76.39 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008183/0.8283, allocations: 0.6041 MB / 0.6191 GB, free: 76.06 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04291/0.8712, allocations: 27.65 MB / 0.6461 GB, free: 48.42 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.185e-05/0.8712, allocations: 38.97 kB / 0.6462 GB, free: 48.38 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.305e-05/0.8713, allocations: 24.88 kB / 0.6462 GB, free: 48.36 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.208e-05/0.8713, allocations: 19.94 kB / 0.6462 GB, free: 48.34 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05795/0.9293, allocations: 44.92 MB / 0.6901 GB, free: 1.195 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.463e-05/0.9293, allocations: 8 kB / 0.6901 GB, free: 1.188 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008197/0.9301, allocations: 337 kB / 0.6904 GB, free: 0.875 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02614/0.9563, allocations: 16.43 MB / 0.7064 GB, free: 428 kB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005724/0.9568, allocations: 74.12 kB / 0.7065 GB, free: 360 kB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1743/1.131, allocations: 23.82 MB / 0.7298 GB, free: 120.2 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.648e-06/1.131, allocations: 13.97 kB / 0.7298 GB, free: 120.2 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05245/1.184, allocations: 29.77 MB / 0.7588 GB, free: 110.8 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001305/1.185, allocations: 0.5131 MB / 0.7593 GB, free: 110.6 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005895/1.185, allocations: 72.11 kB / 0.7594 GB, free: 110.6 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002228/1.188, allocations: 0.6495 MB / 0.7601 GB, free: 110 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001223/1.189, allocations: 321.3 kB / 0.7604 GB, free: 109.7 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002185/1.189, allocations: 100.8 kB / 0.7605 GB, free: 109.7 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002314/1.191, allocations: 2.179 MB / 0.7626 GB, free: 107.9 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.7e-07/1.191, allocations: 0 / 0.7626 GB, free: 107.9 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.006005/1.197, allocations: 2.497 MB / 0.765 GB, free: 105.4 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 41 * 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 (167): * Single equations (assignments): 160 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(21,60,29.3%), (17,33,35.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(12,27)} Notification: Performance of Backend phase and start with SimCode phase: time 0.000531/1.198, allocations: 241.4 kB / 0.7653 GB, free: 105.2 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01322/1.211, allocations: 10.76 MB / 0.7758 GB, free: 94.98 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.02e-06/1.211, allocations: 4 kB / 0.7758 GB, free: 94.97 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008741/1.22, allocations: 6.591 MB / 0.7822 GB, free: 88.44 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002526/1.222, allocations: 0.6769 MB / 0.7829 GB, free: 87.79 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01601/1.238, allocations: 13.92 MB / 0.7965 GB, free: 73.7 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001566/1.24, allocations: 1.962 MB / 0.7984 GB, free: 71.71 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.00259/1.243, allocations: 1.861 MB / 0.8002 GB, free: 69.84 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004881/1.243, allocations: 304.5 kB / 0.8005 GB, free: 69.55 MB / 426.7 MB Notification: Performance of SimCode: time 1.532e-06/1.243, allocations: 0 / 0.8005 GB, free: 69.55 MB / 426.7 MB Notification: Performance of Templates: time 0.252/1.495, allocations: 137.7 MB / 0.9349 GB, free: 74.43 MB / 426.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar1/Fourbar1.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: 5.871309758163989]