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.001036/0.001036, allocations: 78.97 kB / 21.42 MB, free: 3.078 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.0009389/0.0009389, allocations: 149 kB / 24.81 MB, free: 9.27 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.9276/0.9276, allocations: 173.3 MB / 201.4 MB, free: 9.227 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 2.495e-06/2.495e-06, allocations: 0 / 268.4 MB, free: 6.215 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.209e-05/2.459e-05, allocations: 6.25 kB / 268.4 MB, free: 6.207 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.01353/0.01356, allocations: 15 MB / 283.4 MB, free: 7.137 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.009595/0.02315, allocations: 5.03 MB / 288.4 MB, free: 2.09 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001433/0.02458, allocations: 131.3 kB / 288.6 MB, free: 1.961 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.1621/0.1867, allocations: 4.7 MB / 293.3 MB, free: 14.77 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006214/0.1929, allocations: 2.711 MB / 296 MB, free: 14.48 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002151/0.1951, allocations: 1.298 MB / 297.3 MB, free: 14.45 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.009299/0.2044, allocations: 8.968 MB / 306.2 MB, free: 12.52 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00485/0.2092, allocations: 5.223 MB / 311.5 MB, free: 9.242 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00589/0.2151, allocations: 5.413 MB / 316.9 MB, free: 5.578 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00329/0.2184, allocations: 3.674 MB / 320.6 MB, free: 2.188 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006925/0.2191, allocations: 0.5078 MB / 321.1 MB, free: 1.68 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001613/0.2207, allocations: 1.458 MB / 322.5 MB, free: 292 kB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001914/0.2226, allocations: 3.206 MB / 325.7 MB, free: 13.19 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00219/0.2248, allocations: 2.013 MB / 327.7 MB, free: 11.26 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009605/0.2344, allocations: 6.829 MB / 334.6 MB, free: 4.855 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.189e-06/0.2344, allocations: 0 / 334.6 MB, free: 4.855 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.443e-06/0.2344, allocations: 4 kB / 334.6 MB, free: 4.852 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0003057/0.2347, allocations: 0 / 334.6 MB, free: 4.852 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.009745/0.2445, allocations: 7.78 MB / 342.4 MB, free: 13.54 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.154e-05/0.2445, allocations: 12.92 kB / 342.4 MB, free: 13.53 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006637/0.2511, allocations: 2.678 MB / 345 MB, free: 10.89 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0048/0.2559, allocations: 3.525 MB / 348.6 MB, free: 7.52 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001605/0.2561, allocations: 340.2 kB / 348.9 MB, free: 7.23 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005573/0.2567, allocations: 470.8 kB / 349.4 MB, free: 6.824 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009334/0.266, allocations: 7.764 MB / 357.1 MB, free: 14.38 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001487/0.2661, allocations: 75.02 kB / 357.2 MB, free: 14.34 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003671/0.2665, allocations: 215.4 kB / 357.4 MB, free: 14.18 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002043/0.2686, allocations: 2.308 MB / 359.7 MB, free: 11.9 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007118/0.2757, allocations: 3.597 MB / 363.3 MB, free: 8.52 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04811/0.3238, allocations: 58.71 MB / 422 MB, free: 12.73 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009778/0.3336, allocations: 2.788 MB / 424.8 MB, free: 9.898 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001221/0.3348, allocations: 0.7982 MB / 425.6 MB, free: 9.094 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009395/0.3442, allocations: 6.711 MB / 432.3 MB, free: 2.344 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.739e-05/0.3442, allocations: 63.33 kB / 432.4 MB, free: 2.273 MB / 378.7 MB Notification: Performance of pre-optimization done (n=237): time 6.603e-06/0.3442, allocations: 0 / 432.4 MB, free: 2.273 MB / 378.7 MB Notification: Performance of matching and sorting (n=349): time 0.2327/0.5769, allocations: 32.43 MB / 464.8 MB, free: 110.7 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.198e-05/0.577, allocations: 243.9 kB / 465 MB, free: 110.4 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004511/0.5815, allocations: 4.824 MB / 469.9 MB, free: 107.1 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006228/0.5821, allocations: 77.02 kB / 469.9 MB, free: 107 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001748/0.5839, allocations: 4.644 MB / 474.6 MB, free: 103.5 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009892/0.5849, allocations: 1.403 MB / 476 MB, free: 102.2 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001638/0.5865, allocations: 1.88 MB / 477.9 MB, free: 100.5 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 3.897e-05/0.5866, allocations: 482.9 kB / 478.3 MB, free: 100 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001903/0.5885, allocations: 1.676 MB / 480 MB, free: 98.32 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004011/0.5925, allocations: 8.677 MB / 488.7 MB, free: 86.8 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007282/0.5997, allocations: 11.01 MB / 499.7 MB, free: 72.72 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001233/0.5999, allocations: 47.94 kB / 499.8 MB, free: 72.68 MB / 378.7 MB Notification: Performance of matching and sorting (n=1135) (initialization): time 0.03077/0.6306, allocations: 12.15 MB / 0.4999 GB, free: 60.46 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.739e-05/0.6307, allocations: 72 kB / 0.5 GB, free: 60.39 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.777e-05/0.6308, allocations: 164 kB / 0.5001 GB, free: 60.23 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01778/0.6486, allocations: 9.735 MB / 0.5096 GB, free: 50.47 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003193/0.6518, allocations: 1.684 MB / 0.5113 GB, free: 48.79 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03138/0.6832, allocations: 21.5 MB / 0.5323 GB, free: 26.93 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00545/0.6886, allocations: 359.7 kB / 0.5326 GB, free: 26.58 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00114/0.6898, allocations: 420 kB / 0.533 GB, free: 26.17 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.00255/0.6923, allocations: 0.8336 MB / 0.5338 GB, free: 25.32 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001328/0.6936, allocations: 0.606 MB / 0.5344 GB, free: 24.71 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02518/0.7188, allocations: 7.985 MB / 0.5422 GB, free: 16.65 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.845e-05/0.7189, allocations: 36 kB / 0.5423 GB, free: 16.61 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.367e-05/0.719, allocations: 27.5 kB / 0.5423 GB, free: 16.59 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.246e-05/0.7191, allocations: 19.94 kB / 0.5423 GB, free: 16.57 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1803/0.8994, allocations: 24.53 MB / 0.5663 GB, free: 107.2 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.13e-05/0.8994, allocations: 10.59 kB / 0.5663 GB, free: 107.2 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000757/0.9002, allocations: 293.5 kB / 0.5666 GB, free: 107.2 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01806/0.9182, allocations: 9.167 MB / 0.5755 GB, free: 107 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003351/0.9186, allocations: 73.66 kB / 0.5756 GB, free: 107 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02585/0.9444, allocations: 18.06 MB / 0.5932 GB, free: 100.8 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5e-06/0.9444, allocations: 11.12 kB / 0.5932 GB, free: 100.8 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02701/0.9714, allocations: 9.868 MB / 0.6029 GB, free: 98.23 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001261/0.9727, allocations: 0.4976 MB / 0.6033 GB, free: 97.88 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005207/0.9732, allocations: 75.92 kB / 0.6034 GB, free: 97.8 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001572/0.9748, allocations: 77.52 kB / 0.6035 GB, free: 97.73 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009925/0.9758, allocations: 311 kB / 0.6038 GB, free: 97.43 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002114/0.976, allocations: 75.98 kB / 0.6039 GB, free: 97.36 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001836/0.9778, allocations: 2.013 MB / 0.6058 GB, free: 95.56 MB / 394.7 MB Notification: Performance of sort global known variables: time 8e-08/0.9778, allocations: 0 / 0.6058 GB, free: 95.56 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.006139/0.984, allocations: 2.486 MB / 0.6083 GB, free: 93.08 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.0005223/0.9845, allocations: 242.5 kB / 0.6085 GB, free: 92.86 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.009866/0.9944, allocations: 7.836 MB / 0.6161 GB, free: 85.14 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.921e-06/0.9944, allocations: 0 / 0.6161 GB, free: 85.14 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006789/1.001, allocations: 4.156 MB / 0.6202 GB, free: 81.01 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002452/1.004, allocations: 0.67 MB / 0.6209 GB, free: 80.36 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01321/1.017, allocations: 13.69 MB / 0.6342 GB, free: 66.5 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001491/1.018, allocations: 1.958 MB / 0.6361 GB, free: 64.52 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001276/1.02, allocations: 0.6595 MB / 0.6368 GB, free: 63.85 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008775/1.02, allocations: 0.787 MB / 0.6375 GB, free: 63.06 MB / 394.7 MB Notification: Performance of SimCode: time 1.452e-06/1.02, allocations: 0 / 0.6375 GB, free: 63.06 MB / 394.7 MB Notification: Performance of Templates: time 0.2339/1.254, allocations: 140.6 MB / 0.7748 GB, free: 78.12 MB / 410.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.55040600290522]