Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001436/0.001436, allocations: 77.97 kB / 21.42 MB, free: 3.074 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001641/0.001641, allocations: 168.8 kB / 24.82 MB, free: 9.27 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9945/0.9945, allocations: 177.1 MB / 205.3 MB, free: 5.516 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.363e-06/1.363e-06, allocations: 0 / 273.4 MB, free: 1.309 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.394e-05/2.53e-05, allocations: 4.844 kB / 273.4 MB, free: 1.305 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.02263/0.02265, allocations: 14.95 MB / 288.3 MB, free: 2.293 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1344/0.157, allocations: 5.023 MB / 293.4 MB, free: 14.39 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002206/0.1592, allocations: 134.2 kB / 293.5 MB, free: 14.39 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005765/0.165, allocations: 4.691 MB / 298.2 MB, free: 14.22 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005703/0.1707, allocations: 2.685 MB / 300.9 MB, free: 13.29 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002201/0.1729, allocations: 1.29 MB / 302.2 MB, free: 12.79 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.008351/0.1813, allocations: 9.214 MB / 311.4 MB, free: 8.445 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005304/0.1866, allocations: 5.217 MB / 316.6 MB, free: 4.266 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006763/0.1933, allocations: 5.406 MB / 322 MB, free: 15.29 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004621/0.198, allocations: 3.665 MB / 325.7 MB, free: 11.91 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001317/0.1993, allocations: 0.5078 MB / 326.2 MB, free: 11.4 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002443/0.2017, allocations: 1.454 MB / 327.6 MB, free: 9.984 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002511/0.2042, allocations: 3.185 MB / 330.8 MB, free: 6.895 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003218/0.2074, allocations: 1.984 MB / 332.8 MB, free: 4.996 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007983/0.2154, allocations: 6.773 MB / 339.6 MB, free: 14.52 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.111e-06/0.2154, allocations: 3.938 kB / 339.6 MB, free: 14.51 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.304e-06/0.2154, allocations: 0 / 339.6 MB, free: 14.51 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0003356/0.2158, allocations: 0 / 339.6 MB, free: 14.51 MB / 298.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.01188/0.2276, allocations: 7.809 MB / 347.4 MB, free: 7.086 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.448e-05/0.2277, allocations: 12.03 kB / 347.4 MB, free: 7.074 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007217/0.2349, allocations: 2.724 MB / 350.1 MB, free: 4.344 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00534/0.2403, allocations: 3.523 MB / 353.6 MB, free: 0.7305 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004926/0.2407, allocations: 345.1 kB / 354 MB, free: 400 kB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008583/0.2416, allocations: 468.1 kB / 354.4 MB, free: 15.93 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01263/0.2542, allocations: 7.759 MB / 362.2 MB, free: 6.906 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002374/0.2545, allocations: 75.38 kB / 362.3 MB, free: 6.832 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004348/0.2549, allocations: 207.8 kB / 362.5 MB, free: 6.629 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001983/0.2569, allocations: 2.317 MB / 364.8 MB, free: 4.305 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008429/0.2653, allocations: 3.587 MB / 368.4 MB, free: 0.6797 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04752/0.3128, allocations: 58.71 MB / 427.1 MB, free: 4.145 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007014/0.3198, allocations: 2.771 MB / 429.9 MB, free: 1.328 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001239/0.3211, allocations: 0.8062 MB / 430.7 MB, free: 0.5117 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.138/0.4591, allocations: 6.71 MB / 437.4 MB, free: 114.3 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.836e-05/0.4591, allocations: 61.3 kB / 437.4 MB, free: 114.2 MB / 378.7 MB Notification: Performance of pre-optimization done (n=237): time 5.7e-06/0.4592, allocations: 0 / 437.4 MB, free: 114.2 MB / 378.7 MB Notification: Performance of matching and sorting (n=349): time 0.09618/0.5553, allocations: 32.44 MB / 469.9 MB, free: 99.04 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.073e-05/0.5554, allocations: 247 kB / 470.1 MB, free: 98.75 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004476/0.5599, allocations: 4.82 MB / 474.9 MB, free: 94.93 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006511/0.5605, allocations: 77.7 kB / 475 MB, free: 94.85 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001677/0.5622, allocations: 4.636 MB / 479.7 MB, free: 90.73 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001065/0.5633, allocations: 1.394 MB / 481 MB, free: 89.4 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001693/0.565, allocations: 1.884 MB / 482.9 MB, free: 87.61 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.001e-05/0.565, allocations: 484.7 kB / 483.4 MB, free: 87.14 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002121/0.5671, allocations: 1.68 MB / 485.1 MB, free: 85.45 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003591/0.5707, allocations: 8.678 MB / 493.8 MB, free: 73.71 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006864/0.5776, allocations: 11.01 MB / 0.4929 GB, free: 59.64 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.97e-05/0.5777, allocations: 48 kB / 0.493 GB, free: 59.6 MB / 378.7 MB Notification: Performance of matching and sorting (n=1135) (initialization): time 0.04023/0.6179, allocations: 12.15 MB / 0.5049 GB, free: 47.39 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.524e-05/0.618, allocations: 83.66 kB / 0.5049 GB, free: 47.31 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001503/0.6181, allocations: 160 kB / 0.5051 GB, free: 47.16 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0234/0.6415, allocations: 9.721 MB / 0.5146 GB, free: 37.41 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003351/0.6449, allocations: 1.684 MB / 0.5162 GB, free: 35.73 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03256/0.6774, allocations: 21.52 MB / 0.5372 GB, free: 13.85 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00536/0.6828, allocations: 355.7 kB / 0.5376 GB, free: 13.5 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001019/0.6838, allocations: 423.9 kB / 0.538 GB, free: 13.09 MB / 378.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.002031/0.6859, allocations: 0.8258 MB / 0.5388 GB, free: 12.25 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001229/0.6871, allocations: 0.5983 MB / 0.5394 GB, free: 11.64 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0244/0.7115, allocations: 7.989 MB / 0.5472 GB, free: 3.582 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.385e-05/0.7115, allocations: 36 kB / 0.5472 GB, free: 3.547 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.727e-05/0.7116, allocations: 32 kB / 0.5472 GB, free: 3.516 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.727e-05/0.7116, allocations: 15.94 kB / 0.5473 GB, free: 3.5 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1724/0.8841, allocations: 24.51 MB / 0.5712 GB, free: 103.2 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.362e-05/0.8841, allocations: 11.66 kB / 0.5712 GB, free: 103.2 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00109/0.8852, allocations: 288.2 kB / 0.5715 GB, free: 103.2 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01843/0.9036, allocations: 9.169 MB / 0.5804 GB, free: 103 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005631/0.9042, allocations: 74.78 kB / 0.5805 GB, free: 103 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02656/0.9308, allocations: 18.06 MB / 0.5981 GB, free: 95.27 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.083e-06/0.9308, allocations: 14.69 kB / 0.5981 GB, free: 95.27 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02827/0.959, allocations: 9.88 MB / 0.6078 GB, free: 89.82 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001593/0.9606, allocations: 0.4993 MB / 0.6083 GB, free: 89.46 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007834/0.9614, allocations: 67.98 kB / 0.6083 GB, free: 89.4 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001757/0.9632, allocations: 72 kB / 0.6084 GB, free: 89.33 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001117/0.9643, allocations: 310.9 kB / 0.6087 GB, free: 89.02 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002151/0.9645, allocations: 81.08 kB / 0.6088 GB, free: 88.95 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002239/0.9667, allocations: 2.012 MB / 0.6108 GB, free: 87.15 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.81e-07/0.9667, allocations: 0 / 0.6108 GB, free: 87.15 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.006894/0.9736, allocations: 2.46 MB / 0.6132 GB, free: 84.7 MB / 394.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.000603/0.9742, allocations: 230.5 kB / 0.6134 GB, free: 84.48 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.01159/0.9858, allocations: 7.831 MB / 0.621 GB, free: 76.74 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.063e-05/0.9858, allocations: 5.812 kB / 0.621 GB, free: 76.74 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007502/0.9933, allocations: 4.141 MB / 0.6251 GB, free: 72.54 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0031/0.9964, allocations: 0.6821 MB / 0.6257 GB, free: 71.87 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01645/1.013, allocations: 13.68 MB / 0.6391 GB, free: 57.96 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001803/1.015, allocations: 1.958 MB / 0.641 GB, free: 55.98 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001586/1.016, allocations: 0.6595 MB / 0.6417 GB, free: 55.32 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008908/1.017, allocations: 0.787 MB / 0.6424 GB, free: 54.53 MB / 394.7 MB Notification: Performance of SimCode: time 1.933e-06/1.017, allocations: 0 / 0.6424 GB, free: 54.53 MB / 394.7 MB Notification: Performance of Templates: time 0.2564/1.274, allocations: 140.4 MB / 0.7796 GB, free: 70.49 MB / 410.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.623922485858202]