Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.0008146/0.0008146, allocations: 91.61 kB / 22.19 MB, free: 2.379 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.0008544/0.0008544, allocations: 156.4 kB / 25.44 MB, free: 8.855 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8879/0.8879, allocations: 158.6 MB / 187.2 MB, free: 3.023 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.954e-06/1.954e-06, allocations: 0 / 299.7 MB, free: 3.004 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.532e-05/3.727e-05, allocations: 2.281 kB / 299.7 MB, free: 3 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.1563/0.1564, allocations: 13.87 MB / 313.6 MB, free: 7.941 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.01096/0.1673, allocations: 4.975 MB / 318.6 MB, free: 4.715 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004161/0.1715, allocations: 140.6 kB / 318.7 MB, free: 4.664 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006839/0.1783, allocations: 4.552 MB / 323.2 MB, free: 2.707 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007234/0.1856, allocations: 2.719 MB / 326 MB, free: 0.707 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002969/0.1885, allocations: 1.284 MB / 327.2 MB, free: 15.79 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.01053/0.1991, allocations: 8.497 MB / 335.7 MB, free: 10.35 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007386/0.2065, allocations: 5.074 MB / 340.8 MB, free: 5.199 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009349/0.2158, allocations: 3.847 MB / 344.7 MB, free: 1.34 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005864/0.2217, allocations: 3.78 MB / 348.4 MB, free: 13.55 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001652/0.2233, allocations: 0.5195 MB / 349 MB, free: 13.03 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003046/0.2264, allocations: 1.459 MB / 350.4 MB, free: 11.57 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003054/0.2294, allocations: 3.214 MB / 353.6 MB, free: 8.348 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003676/0.2331, allocations: 2.029 MB / 355.7 MB, free: 6.312 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01134/0.2444, allocations: 10.58 MB / 366.3 MB, free: 11.7 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.251e-06/0.2444, allocations: 0 / 366.3 MB, free: 11.7 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.783e-06/0.2444, allocations: 4 kB / 366.3 MB, free: 11.69 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0003761/0.2448, allocations: 4 kB / 366.3 MB, free: 11.69 MB / 330.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.01678/0.2616, allocations: 7.851 MB / 374.1 MB, free: 3.758 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.351e-05/0.2616, allocations: 11.98 kB / 374.1 MB, free: 3.746 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008994/0.2706, allocations: 3.343 MB / 377.5 MB, free: 404 kB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008626/0.2793, allocations: 4.841 MB / 382.3 MB, free: 11.46 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002312/0.2795, allocations: 341 kB / 382.6 MB, free: 11.12 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001591/0.2811, allocations: 472 kB / 383.1 MB, free: 10.66 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02125/0.3023, allocations: 14.65 MB / 397.7 MB, free: 11.07 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002389/0.3026, allocations: 75.45 kB / 397.8 MB, free: 10.99 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008952/0.3035, allocations: 211.8 kB / 398 MB, free: 10.79 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003227/0.3067, allocations: 2.832 MB / 400.9 MB, free: 7.945 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02032/0.327, allocations: 13.16 MB / 414 MB, free: 10.77 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06741/0.3944, allocations: 54.49 MB / 468.5 MB, free: 2.98 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1754/0.5698, allocations: 7.096 MB / 475.6 MB, free: 134.7 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005343/0.5751, allocations: 4.59 MB / 480.2 MB, free: 133.1 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01947/0.5946, allocations: 11.86 MB / 492.1 MB, free: 128.4 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.891e-05/0.5947, allocations: 70.42 kB / 492.1 MB, free: 128.3 MB / 426.7 MB Notification: Performance of pre-optimization done (n=326): time 7.845e-06/0.5947, allocations: 0 / 492.1 MB, free: 128.3 MB / 426.7 MB Notification: Performance of matching and sorting (n=572): time 1.189/1.784, allocations: 413.8 MB / 0.8847 GB, free: 61.6 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.905e-05/1.784, allocations: 269.6 kB / 0.885 GB, free: 61.28 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005162/1.789, allocations: 5.386 MB / 0.8902 GB, free: 56.3 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001823/1.791, allocations: 109.7 kB / 0.8903 GB, free: 56.19 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00161/1.793, allocations: 4.08 MB / 0.8943 GB, free: 53.11 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002424/1.795, allocations: 2.076 MB / 0.8963 GB, free: 51.07 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003076/1.798, allocations: 2.171 MB / 0.8985 GB, free: 48.89 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 3.048e-05/1.798, allocations: 305.1 kB / 0.8987 GB, free: 48.59 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009609/1.808, allocations: 11.06 MB / 0.9096 GB, free: 37.52 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01193/1.82, allocations: 15.32 MB / 0.9245 GB, free: 20.22 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1853/2.005, allocations: 27.44 MB / 0.9513 GB, free: 119.4 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001321/2.005, allocations: 39.41 kB / 0.9513 GB, free: 119.4 MB / 442.7 MB Notification: Performance of matching and sorting (n=1259) (initialization): time 0.186/2.191, allocations: 140.7 MB / 1.089 GB, free: 7.02 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.891e-05/2.191, allocations: 68.22 kB / 1.089 GB, free: 6.953 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001337/2.191, allocations: 136 kB / 1.089 GB, free: 6.82 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.2062/2.397, allocations: 34.68 MB / 1.123 GB, free: 133.1 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003284/2.401, allocations: 1.569 MB / 1.124 GB, free: 133 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.354/2.755, allocations: 201 MB / 1.321 GB, free: 108.3 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01014/2.765, allocations: 1.825 MB / 1.322 GB, free: 108.1 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002633/2.768, allocations: 0.5386 MB / 1.323 GB, free: 108.1 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 632 * 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 (840): * Single equations (assignments): 833 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(20,164,40.5%), (16,102,51.6%), (2,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(12,76)} Notification: Performance of prepare postOptimizeDAE: time 0.007378/2.775, allocations: 3.101 MB / 1.326 GB, free: 106.8 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001811/2.777, allocations: 0.5503 MB / 1.326 GB, free: 106.8 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3452/3.122, allocations: 136.3 MB / 1.46 GB, free: 126.4 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.865e-05/3.122, allocations: 61.94 kB / 1.46 GB, free: 126.4 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001499/3.122, allocations: 55.34 kB / 1.46 GB, free: 126.4 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001139/3.122, allocations: 29.14 kB / 1.46 GB, free: 126.3 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3742/3.497, allocations: 201.8 MB / 1.657 GB, free: 105.9 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.2e-05/3.497, allocations: 3.969 kB / 1.657 GB, free: 105.9 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009594/3.498, allocations: 332 kB / 1.657 GB, free: 105.8 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.04394/3.541, allocations: 33.4 MB / 1.69 GB, free: 76.67 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001493/3.543, allocations: 102 kB / 1.69 GB, free: 76.57 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3083/3.851, allocations: 183.8 MB / 1.869 GB, free: 60.88 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.062e-06/3.851, allocations: 7.844 kB / 1.869 GB, free: 60.88 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3366/4.188, allocations: 152.2 MB / 2.018 GB, free: 75.63 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005439/4.193, allocations: 2.974 MB / 2.021 GB, free: 73.67 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001586/4.195, allocations: 103.5 kB / 2.021 GB, free: 73.57 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005207/4.2, allocations: 1.572 MB / 2.022 GB, free: 72 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002381/4.203, allocations: 0.5195 MB / 2.023 GB, free: 71.48 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004381/4.203, allocations: 140 kB / 2.023 GB, free: 71.35 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.003224/4.206, allocations: 3.279 MB / 2.026 GB, free: 68.07 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.11e-07/4.206, allocations: 1.688 kB / 2.026 GB, free: 68.07 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.0114/4.218, allocations: 4.125 MB / 2.03 GB, free: 63.96 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * 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 (165): * Single equations (assignments): 158 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(20,157,40.5%), (16,99,51.6%), (2,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(12,86)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00156/4.219, allocations: 264.6 kB / 2.03 GB, free: 63.71 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.03358/4.253, allocations: 32.72 MB / 2.062 GB, free: 31.18 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.086e-05/4.253, allocations: 4 kB / 2.062 GB, free: 31.18 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.02362/4.276, allocations: 19.58 MB / 2.082 GB, free: 11.62 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005743/4.282, allocations: 0.6963 MB / 2.082 GB, free: 10.94 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1838/4.466, allocations: 27.97 MB / 2.11 GB, free: 121.9 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006884/4.473, allocations: 4.585 MB / 2.114 GB, free: 121.5 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001192/4.474, allocations: 339.4 kB / 2.114 GB, free: 121.5 MB / 458.7 MB Notification: Performance of SimCode: time 1.763e-06/4.474, allocations: 0 / 2.114 GB, free: 121.5 MB / 458.7 MB Notification: Performance of Templates: time 0.4051/4.879, allocations: 258.5 MB / 2.367 GB, free: 43.8 MB / 458.7 MB " [Timeout remaining time 655] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar1/Fourbar1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.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: 17.729083070531487]