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.000909/0.000909, allocations: 78.66 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.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.0009368/0.0009368, allocations: 171.6 kB / 24.82 MB, free: 8.363 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.922/0.922, allocations: 177.1 MB / 205.3 MB, free: 4.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.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.372e-06/1.372e-06, allocations: 0 / 273.4 MB, free: 4.418 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.308e-05/1.446e-05, allocations: 2.312 kB / 273.4 MB, free: 4.414 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.01053/0.01054, allocations: 14.05 MB / 287.5 MB, free: 6.312 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.007671/0.01821, allocations: 4.721 MB / 292.2 MB, free: 1.59 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001659/0.01987, allocations: 107.5 kB / 292.3 MB, free: 1.484 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003609/0.02348, allocations: 3.332 MB / 295.6 MB, free: 14.14 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003814/0.02729, allocations: 2.702 MB / 298.3 MB, free: 11.43 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001753/0.02905, allocations: 1.111 MB / 299.4 MB, free: 10.31 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.006884/0.03593, allocations: 7.817 MB / 307.2 MB, free: 2.48 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004304/0.04023, allocations: 4.239 MB / 311.5 MB, free: 14.16 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005054/0.04529, allocations: 4.436 MB / 315.9 MB, free: 9.719 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002895/0.04818, allocations: 3.566 MB / 319.5 MB, free: 6.145 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005403/0.04872, allocations: 488 kB / 320 MB, free: 5.668 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001973/0.0507, allocations: 1.467 MB / 321.4 MB, free: 4.199 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001662/0.05236, allocations: 3.046 MB / 324.5 MB, free: 1.145 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001398/0.05376, allocations: 1.846 MB / 326.3 MB, free: 15.29 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005802/0.05956, allocations: 6.862 MB / 333.2 MB, free: 8.406 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.977e-06/0.05956, allocations: 0 / 333.2 MB, free: 8.406 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.262e-06/0.05956, allocations: 0 / 333.2 MB, free: 8.406 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001125/0.05968, allocations: 0 / 333.2 MB, free: 8.406 MB / 314.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.008285/0.06796, allocations: 7.386 MB / 340.6 MB, free: 0.9336 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.12e-05/0.068, allocations: 12.03 kB / 340.6 MB, free: 0.9219 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1258/0.1938, allocations: 2.776 MB / 343.4 MB, free: 64.72 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004994/0.1988, allocations: 3.061 MB / 346.4 MB, free: 64.37 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001829/0.199, allocations: 316.5 kB / 346.7 MB, free: 64.36 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006921/0.1997, allocations: 434.4 kB / 347.2 MB, free: 64.35 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008384/0.2081, allocations: 8.078 MB / 355.2 MB, free: 60.64 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001258/0.2082, allocations: 55.41 kB / 355.3 MB, free: 60.63 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003972/0.2086, allocations: 201 kB / 355.5 MB, free: 60.55 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002022/0.2106, allocations: 2.865 MB / 358.3 MB, free: 57.9 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006193/0.2168, allocations: 3.943 MB / 362.3 MB, free: 54 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03049/0.2473, allocations: 59.26 MB / 421.5 MB, free: 9.898 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005331/0.2526, allocations: 2.582 MB / 424.1 MB, free: 7.277 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009937/0.2536, allocations: 0.8501 MB / 425 MB, free: 6.418 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008719/0.2623, allocations: 6.932 MB / 431.9 MB, free: 15.63 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.801e-05/0.2624, allocations: 67.33 kB / 432 MB, free: 15.56 MB / 346.7 MB Notification: Performance of pre-optimization done (n=269): time 3.787e-06/0.2624, allocations: 0 / 432 MB, free: 15.56 MB / 346.7 MB Notification: Performance of matching and sorting (n=300): time 0.02767/0.2901, allocations: 10.3 MB / 442.3 MB, free: 5.402 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.409e-05/0.2901, allocations: 225.8 kB / 442.5 MB, free: 5.137 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005091/0.2952, allocations: 4.81 MB / 447.3 MB, free: 324 kB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001543/0.2954, allocations: 65.7 kB / 447.4 MB, free: 252 kB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002852/0.2982, allocations: 4.864 MB / 452.2 MB, free: 11.35 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009752/0.2992, allocations: 1.229 MB / 453.5 MB, free: 10.11 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002259/0.3015, allocations: 1.938 MB / 455.4 MB, free: 8.152 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001041/0.3016, allocations: 476.8 kB / 455.9 MB, free: 7.684 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001984/0.3036, allocations: 1.021 MB / 456.9 MB, free: 6.656 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006245/0.3098, allocations: 8.774 MB / 465.7 MB, free: 10.39 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009293/0.3191, allocations: 10.61 MB / 476.3 MB, free: 12.32 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.945e-05/0.3192, allocations: 48 kB / 476.3 MB, free: 12.27 MB / 394.7 MB Notification: Performance of matching and sorting (n=1174) (initialization): time 0.01231/0.3315, allocations: 7.554 MB / 483.9 MB, free: 4.672 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.408e-05/0.3316, allocations: 90.59 kB / 484 MB, free: 4.586 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000425/0.332, allocations: 180 kB / 484.1 MB, free: 4.41 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002338/0.3344, allocations: 0.8347 MB / 485 MB, free: 3.57 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003279/0.3377, allocations: 1.973 MB / 487 MB, free: 1.594 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1275/0.4651, allocations: 5.558 MB / 492.5 MB, free: 111.3 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004/0.4691, allocations: 373 kB / 492.9 MB, free: 111.3 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005491/0.4697, allocations: 450.1 kB / 493.3 MB, free: 111.3 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.001746/0.4714, allocations: 0.8667 MB / 494.2 MB, free: 111.1 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005862/0.472, allocations: 0.551 MB / 494.7 MB, free: 111.1 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003324/0.4753, allocations: 2.416 MB / 497.1 MB, free: 110.9 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.508e-05/0.4754, allocations: 55.23 kB / 497.2 MB, free: 110.9 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.244e-06/0.4754, allocations: 4.844 kB / 497.2 MB, free: 110.9 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.454e-05/0.4754, allocations: 15.64 kB / 497.2 MB, free: 110.9 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008724/0.4841, allocations: 7.129 MB / 0.4925 GB, free: 109.9 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.576e-06/0.4841, allocations: 11.47 kB / 0.4925 GB, free: 109.9 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009725/0.4851, allocations: 396.5 kB / 0.4929 GB, free: 109.9 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001433/0.4865, allocations: 0.5706 MB / 0.4935 GB, free: 109.9 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000132/0.4867, allocations: 57.91 kB / 0.4935 GB, free: 109.9 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002604/0.4893, allocations: 4.596 MB / 0.498 GB, free: 106.4 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.94e-06/0.4893, allocations: 12.62 kB / 0.498 GB, free: 106.4 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00383/0.4931, allocations: 3.685 MB / 0.5016 GB, free: 105.2 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003702/0.4935, allocations: 452.2 kB / 0.5021 GB, free: 105 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003002/0.4938, allocations: 58.59 kB / 0.5021 GB, free: 104.9 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008434/0.4946, allocations: 51.56 kB / 0.5022 GB, free: 104.9 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002161/0.4948, allocations: 173.2 kB / 0.5023 GB, free: 104.9 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001003/0.4949, allocations: 61.27 kB / 0.5024 GB, free: 104.8 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001305/0.4962, allocations: 1.907 MB / 0.5043 GB, free: 104.4 MB / 394.7 MB Notification: Performance of sort global known variables: time 8e-08/0.4962, allocations: 0 / 0.5043 GB, free: 104.4 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.00363/0.4999, allocations: 1.559 MB / 0.5058 GB, free: 104.3 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.000351/0.5002, allocations: 219.6 kB / 0.506 GB, free: 104.1 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003853/0.5041, allocations: 4.321 MB / 0.5102 GB, free: 102.4 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.138e-06/0.5041, allocations: 0 / 0.5102 GB, free: 102.4 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009812/0.5051, allocations: 1.175 MB / 0.5114 GB, free: 101.4 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0015/0.5066, allocations: 0.5341 MB / 0.5119 GB, free: 100.9 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01081/0.5174, allocations: 11.49 MB / 0.5231 GB, free: 90.28 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001285/0.5187, allocations: 1.836 MB / 0.5249 GB, free: 88.49 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001563/0.5202, allocations: 0.7035 MB / 0.5256 GB, free: 87.8 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001094/0.5213, allocations: 0.7871 MB / 0.5263 GB, free: 87.01 MB / 394.7 MB Notification: Performance of SimCode: time 1.673e-06/0.5213, allocations: 0 / 0.5263 GB, free: 87.01 MB / 394.7 MB Notification: Performance of Templates: time 0.05987/0.5812, allocations: 50.89 MB / 0.576 GB, free: 36.62 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 -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.096302079036832]