Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.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.0009864/0.0009864, allocations: 77.36 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001516/0.002503, allocations: 445.8 kB / 10.44 MB, free: 256 kB / 10.45 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.0009347/0.0009347, allocations: 148.9 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001347/0.002282, allocations: 475.6 kB / 11.8 MB, free: 2.367 MB / 13.93 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.8536/0.8536, allocations: 173.4 MB / 186 MB, free: 7.535 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1498/1.003, allocations: 52.49 MB / 238.5 MB, free: 7.637 MB / 234.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.Fourbar2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.423e-06/1.423e-06, allocations: 0 / 239.7 MB, free: 6.375 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.174e-05/2.316e-05, allocations: 2.312 kB / 239.7 MB, free: 6.371 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.01582/0.01584, allocations: 14.27 MB / 254 MB, free: 8.047 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.011/0.02684, allocations: 4.939 MB / 258.9 MB, free: 3.121 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002951/0.02979, allocations: 107.5 kB / 259.1 MB, free: 3.016 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005992/0.03578, allocations: 3.238 MB / 262.3 MB, free: 15.77 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006448/0.04223, allocations: 2.718 MB / 265 MB, free: 13.04 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00161/0.04384, allocations: 1.01 MB / 266 MB, free: 12.02 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.006818/0.05065, allocations: 7.098 MB / 273.1 MB, free: 4.918 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003664/0.05432, allocations: 3.764 MB / 276.9 MB, free: 1.07 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005012/0.05933, allocations: 4.239 MB / 281.1 MB, free: 12.81 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00368/0.06301, allocations: 3.383 MB / 284.5 MB, free: 9.418 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009567/0.06397, allocations: 488 kB / 285 MB, free: 8.941 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002372/0.06634, allocations: 1.521 MB / 286.5 MB, free: 7.418 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001872/0.06821, allocations: 2.755 MB / 289.3 MB, free: 4.656 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001683/0.06989, allocations: 1.515 MB / 290.8 MB, free: 3.137 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006782/0.07668, allocations: 6.402 MB / 297.2 MB, free: 12.71 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.277e-05/0.07669, allocations: 0 / 297.2 MB, free: 12.71 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.473e-06/0.07669, allocations: 0 / 297.2 MB, free: 12.71 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0002511/0.07694, allocations: 3.938 kB / 297.2 MB, free: 12.7 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: 2242 * Number of variables: 2242 Notification: Performance of Generate backend data structure: time 0.008946/0.08589, allocations: 7.894 MB / 305.1 MB, free: 4.719 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.303e-05/0.08592, allocations: 12.03 kB / 305.1 MB, free: 4.707 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004916/0.09084, allocations: 1.815 MB / 306.9 MB, free: 2.891 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004286/0.09512, allocations: 2.815 MB / 309.7 MB, free: 16 kB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001888/0.09531, allocations: 316.5 kB / 310 MB, free: 15.7 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007047/0.09602, allocations: 436.2 kB / 310.4 MB, free: 15.28 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01047/0.1065, allocations: 7.321 MB / 317.8 MB, free: 7.004 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001424/0.1066, allocations: 51.56 kB / 317.8 MB, free: 6.953 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005814/0.1072, allocations: 207.8 kB / 318 MB, free: 6.75 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002344/0.1096, allocations: 2.697 MB / 320.7 MB, free: 4.047 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008086/0.1176, allocations: 3.936 MB / 324.7 MB, free: 76 kB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1438/0.2614, allocations: 43.36 MB / 368 MB, free: 30.25 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005182/0.2666, allocations: 2.538 MB / 370.6 MB, free: 29.29 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00103/0.2677, allocations: 0.7143 MB / 371.3 MB, free: 29.15 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00832/0.276, allocations: 6.553 MB / 377.8 MB, free: 22.77 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.395e-05/0.276, allocations: 63.69 kB / 377.9 MB, free: 22.7 MB / 314.7 MB Notification: Performance of pre-optimization done (n=269): time 4.879e-06/0.276, allocations: 0 / 377.9 MB, free: 22.7 MB / 314.7 MB Notification: Performance of matching and sorting (n=300): time 0.02086/0.2969, allocations: 9.462 MB / 387.3 MB, free: 13.49 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.843e-05/0.2969, allocations: 161.7 kB / 387.5 MB, free: 13.3 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003253/0.3002, allocations: 4.346 MB / 391.8 MB, free: 9.199 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002556/0.3004, allocations: 61.7 kB / 391.9 MB, free: 9.133 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001085/0.3015, allocations: 4.351 MB / 396.3 MB, free: 4.754 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006346/0.3021, allocations: 1.163 MB / 397.4 MB, free: 3.582 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001144/0.3033, allocations: 1.661 MB / 399.1 MB, free: 1.906 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 2.575e-05/0.3033, allocations: 305.1 kB / 399.4 MB, free: 1.605 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001658/0.305, allocations: 1.26 MB / 400.6 MB, free: 344 kB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004008/0.309, allocations: 6.265 MB / 406.9 MB, free: 7.605 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007561/0.3165, allocations: 8.83 MB / 415.7 MB, free: 12.3 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000128/0.3167, allocations: 52 kB / 415.8 MB, free: 12.25 MB / 346.7 MB Notification: Performance of matching and sorting (n=1174) (initialization): time 0.009798/0.3265, allocations: 6.449 MB / 422.2 MB, free: 5.758 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.207e-05/0.3265, allocations: 84 kB / 422.3 MB, free: 5.676 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001627/0.3267, allocations: 188 kB / 422.5 MB, free: 5.492 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00194/0.3287, allocations: 0.8336 MB / 423.3 MB, free: 4.656 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004229/0.3329, allocations: 2.215 MB / 425.5 MB, free: 2.438 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004159/0.337, allocations: 4.347 MB / 429.9 MB, free: 13.91 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004132/0.3412, allocations: 367.7 kB / 430.3 MB, free: 13.55 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007632/0.3419, allocations: 444 kB / 430.7 MB, free: 13.11 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 825 * Number of states: 0 () * Number of discrete variables: 45 (fixedFrame.color_x[3],fixedFrame.color_x[2],fixedFrame.color_x[1],b3.color[3],b3.color[2],b3.color[1],universalSpherical.cylinderColor[3],universalSpherical.cylinderColor[2],universalSpherical.cylinderColor[1],universalSpherical.sphereColor[3],universalSpherical.sphereColor[2],universalSpherical.sphereColor[1],universalSpherical.rodColor[3],universalSpherical.rodColor[2],universalSpherical.rodColor[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 (1107): * Single equations (assignments): 1099 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,18,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002149/0.3441, allocations: 0.8253 MB / 431.5 MB, free: 12.27 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006682/0.3448, allocations: 323.6 kB / 431.8 MB, free: 11.96 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003174/0.3479, allocations: 2.12 MB / 433.9 MB, free: 9.816 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.738e-05/0.348, allocations: 43.98 kB / 434 MB, free: 9.773 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.101e-05/0.348, allocations: 4 kB / 434 MB, free: 9.77 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.776e-05/0.348, allocations: 23.56 kB / 434 MB, free: 9.75 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01065/0.3586, allocations: 6.323 MB / 440.3 MB, free: 3.277 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.511e-05/0.3587, allocations: 16 kB / 440.4 MB, free: 3.262 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001688/0.3604, allocations: 0.701 MB / 441.1 MB, free: 2.559 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001087/0.3614, allocations: 440.6 kB / 441.5 MB, free: 2.125 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00148/0.3629, allocations: 0.5653 MB / 442.1 MB, free: 1.555 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001896/0.3631, allocations: 47.98 kB / 442.1 MB, free: 1.508 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00304/0.3662, allocations: 3.441 MB / 445.5 MB, free: 13.88 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.803e-06/0.3662, allocations: 7.938 kB / 445.5 MB, free: 13.87 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004273/0.3704, allocations: 3.101 MB / 448.7 MB, free: 10.63 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007992/0.3712, allocations: 48 kB / 448.7 MB, free: 10.58 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001167/0.3724, allocations: 55.92 kB / 448.8 MB, free: 10.53 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002968/0.3727, allocations: 177.5 kB / 448.9 MB, free: 10.36 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001214/0.3728, allocations: 59.98 kB / 449 MB, free: 10.3 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001733/0.3746, allocations: 1.587 MB / 450.6 MB, free: 8.715 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.7e-07/0.3746, allocations: 0 / 450.6 MB, free: 8.715 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.004761/0.3793, allocations: 1.59 MB / 452.2 MB, free: 7.125 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 29 * 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 (236): * Single equations (assignments): 228 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005099/0.3798, allocations: 215.8 kB / 452.4 MB, free: 6.902 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.005144/0.385, allocations: 4.05 MB / 456.4 MB, free: 2.961 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0003092/0.3853, allocations: 154.1 kB / 456.6 MB, free: 2.797 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002593/0.3879, allocations: 1.789 MB / 458.4 MB, free: 0.9727 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003747/0.3916, allocations: 3.457 MB / 461.8 MB, free: 13.05 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01812/0.4097, allocations: 11.57 MB / 473.4 MB, free: 1.305 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1058/0.5155, allocations: 1.813 MB / 475.2 MB, free: 126.3 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.002514/0.518, allocations: 0.7032 MB / 475.9 MB, free: 126.2 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001399/0.5194, allocations: 0.7255 MB / 476.6 MB, free: 126.2 MB / 394.7 MB Notification: Performance of SimCode: time 3.346e-06/0.5194, allocations: 1.281 kB / 476.6 MB, free: 126.2 MB / 394.7 MB Notification: Performance of Templates: time 0.06254/0.582, allocations: 49.86 MB / 0.5142 GB, free: 94.78 MB / 394.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2 -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar2/Fourbar2.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.4119613524526358]