Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.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.001024/0.001024, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001429/0.002453, allocations: 449.7 kB / 10.37 MB, free: 328 kB / 10.45 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.0009606/0.0009606, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.003706/0.004667, allocations: 455.6 kB / 11.71 MB, free: 2.461 MB / 13.93 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.9017/0.9017, allocations: 177.2 MB / 189.6 MB, free: 5.32 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08669/0.9884, allocations: 53.65 MB / 243.3 MB, free: 15.59 MB / 250.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.Fourbar2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_4.1.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.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.373e-06/1.373e-06, allocations: 0 / 244.5 MB, free: 14.33 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.116e-05/2.253e-05, allocations: 10.25 kB / 244.5 MB, free: 14.32 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.01567/0.01569, allocations: 14.21 MB / 258.7 MB, free: 44 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.01158/0.02727, allocations: 4.95 MB / 263.7 MB, free: 11.07 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003378/0.03065, allocations: 115.4 kB / 263.8 MB, free: 10.96 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004709/0.03536, allocations: 3.231 MB / 267 MB, free: 7.715 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005037/0.0404, allocations: 2.675 MB / 269.7 MB, free: 5.027 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001501/0.0419, allocations: 1.021 MB / 270.7 MB, free: 4.004 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1231/0.165, allocations: 7.281 MB / 278 MB, free: 2.289 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004346/0.1693, allocations: 3.775 MB / 281.8 MB, free: 1.988 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00606/0.1754, allocations: 4.216 MB / 286 MB, free: 1.668 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003806/0.1792, allocations: 3.382 MB / 289.4 MB, free: 1.453 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009514/0.1801, allocations: 489.6 kB / 289.9 MB, free: 1.453 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002129/0.1823, allocations: 1.502 MB / 291.4 MB, free: 1.375 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001787/0.184, allocations: 2.716 MB / 294.1 MB, free: 0.6602 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001681/0.1857, allocations: 1.49 MB / 295.6 MB, free: 380 kB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008208/0.1939, allocations: 6.347 MB / 301.9 MB, free: 12.62 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.524e-05/0.1939, allocations: 2.781 kB / 301.9 MB, free: 12.62 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.504e-06/0.1939, allocations: 0 / 301.9 MB, free: 12.62 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.00028/0.1942, allocations: 0 / 301.9 MB, free: 12.62 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: 2242 * Number of variables: 2242 Notification: Performance of Generate backend data structure: time 0.008869/0.2031, allocations: 7.838 MB / 309.7 MB, free: 5.293 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.168e-05/0.2031, allocations: 12.03 kB / 309.8 MB, free: 5.281 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00443/0.2076, allocations: 1.812 MB / 311.6 MB, free: 3.555 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003531/0.2111, allocations: 2.815 MB / 314.4 MB, free: 0.9258 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001472/0.2112, allocations: 315.8 kB / 314.7 MB, free: 0.6719 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005165/0.2118, allocations: 436.1 kB / 315.1 MB, free: 316 kB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007973/0.2197, allocations: 7.323 MB / 322.4 MB, free: 8.711 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001691/0.2199, allocations: 62.12 kB / 322.5 MB, free: 8.68 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004138/0.2203, allocations: 204.6 kB / 322.7 MB, free: 8.539 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002812/0.2231, allocations: 2.874 MB / 325.6 MB, free: 5.703 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008761/0.2319, allocations: 3.916 MB / 329.5 MB, free: 2.043 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0406/0.2725, allocations: 43.38 MB / 372.9 MB, free: 6.84 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005552/0.278, allocations: 2.531 MB / 375.4 MB, free: 4.352 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009812/0.279, allocations: 0.7147 MB / 376.1 MB, free: 3.645 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009557/0.2886, allocations: 6.557 MB / 382.7 MB, free: 13.19 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.883e-05/0.2886, allocations: 64.55 kB / 382.7 MB, free: 13.12 MB / 362.7 MB Notification: Performance of pre-optimization done (n=269): time 6.271e-06/0.2886, allocations: 0 / 382.7 MB, free: 13.12 MB / 362.7 MB Notification: Performance of matching and sorting (n=300): time 0.02106/0.3097, allocations: 9.159 MB / 391.9 MB, free: 4.16 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.642e-05/0.3098, allocations: 161.5 kB / 392.1 MB, free: 3.973 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004218/0.314, allocations: 4.326 MB / 396.4 MB, free: 440 kB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000272/0.3142, allocations: 65.7 kB / 396.4 MB, free: 368 kB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002237/0.3165, allocations: 4.342 MB / 400.8 MB, free: 12.23 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001009/0.3175, allocations: 1.166 MB / 402 MB, free: 11.12 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001595/0.3191, allocations: 1.668 MB / 403.6 MB, free: 9.465 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.289e-05/0.3192, allocations: 305.1 kB / 403.9 MB, free: 9.164 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002096/0.3213, allocations: 1.256 MB / 405.2 MB, free: 7.898 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004248/0.3255, allocations: 6.265 MB / 411.4 MB, free: 15.15 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006691/0.3322, allocations: 8.223 MB / 419.7 MB, free: 4.441 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001185/0.3323, allocations: 52 kB / 419.7 MB, free: 4.391 MB / 394.7 MB Notification: Performance of matching and sorting (n=1174) (initialization): time 0.1514/0.4837, allocations: 6.423 MB / 426.1 MB, free: 116.9 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001051/0.4838, allocations: 86.25 kB / 426.2 MB, free: 116.9 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002256/0.4841, allocations: 182.5 kB / 426.4 MB, free: 116.9 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002207/0.4863, allocations: 0.8349 MB / 427.2 MB, free: 116.9 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005295/0.4916, allocations: 2.209 MB / 429.4 MB, free: 116.9 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004349/0.4959, allocations: 4.358 MB / 433.8 MB, free: 114.2 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004462/0.5004, allocations: 368.2 kB / 434.2 MB, free: 114.2 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001113/0.5015, allocations: 443.6 kB / 434.6 MB, free: 114.2 MB / 394.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.002275/0.5038, allocations: 0.8247 MB / 435.4 MB, free: 113.9 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009244/0.5047, allocations: 334 kB / 435.7 MB, free: 113.9 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003144/0.5078, allocations: 2.103 MB / 437.8 MB, free: 113.8 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.538e-05/0.5079, allocations: 50.84 kB / 437.9 MB, free: 113.8 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.134e-05/0.5079, allocations: 4.438 kB / 437.9 MB, free: 113.8 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.476e-05/0.5079, allocations: 16.19 kB / 437.9 MB, free: 113.8 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009026/0.5169, allocations: 6.329 MB / 444.2 MB, free: 112.9 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.067e-06/0.5169, allocations: 6.281 kB / 444.3 MB, free: 112.9 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001458/0.5184, allocations: 0.6977 MB / 445 MB, free: 112.9 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005931/0.519, allocations: 439.2 kB / 445.4 MB, free: 112.9 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001364/0.5203, allocations: 0.5697 MB / 446 MB, free: 112.9 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001473/0.5205, allocations: 59.19 kB / 446 MB, free: 112.9 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002496/0.523, allocations: 3.441 MB / 449.4 MB, free: 110.1 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.811e-06/0.523, allocations: 11.31 kB / 449.5 MB, free: 110.1 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003243/0.5262, allocations: 3.078 MB / 452.5 MB, free: 109 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004616/0.5267, allocations: 54.31 kB / 452.6 MB, free: 109 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009341/0.5276, allocations: 58.14 kB / 452.6 MB, free: 108.9 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002436/0.5279, allocations: 170.7 kB / 452.8 MB, free: 108.9 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001125/0.528, allocations: 62.91 kB / 452.9 MB, free: 108.9 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.00125/0.5292, allocations: 1.586 MB / 454.5 MB, free: 108.7 MB / 394.7 MB Notification: Performance of sort global known variables: time 8e-08/0.5292, allocations: 0 / 454.5 MB, free: 108.7 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.004561/0.5338, allocations: 1.556 MB / 456 MB, free: 108.5 MB / 394.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.0004121/0.5342, allocations: 211.5 kB / 456.2 MB, free: 108.4 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.004495/0.5387, allocations: 3.888 MB / 460.1 MB, free: 106 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0002255/0.5389, allocations: 152.4 kB / 460.3 MB, free: 105.8 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009561/0.5399, allocations: 0.9645 MB / 461.2 MB, free: 105 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002533/0.5424, allocations: 1.203 MB / 462.4 MB, free: 103.9 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01663/0.5591, allocations: 11.59 MB / 474 MB, free: 93.18 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001523/0.5606, allocations: 1.821 MB / 475.8 MB, free: 91.69 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.002037/0.5626, allocations: 0.7065 MB / 476.5 MB, free: 90.98 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001135/0.5638, allocations: 0.7458 MB / 477.3 MB, free: 90.23 MB / 394.7 MB Notification: Performance of SimCode: time 2.384e-06/0.5638, allocations: 0 / 477.3 MB, free: 90.23 MB / 394.7 MB Notification: Performance of Templates: time 0.06345/0.6272, allocations: 51.59 MB / 0.5165 GB, free: 39.15 MB / 394.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2 -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar2/Fourbar2.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: 4.061655926518142]