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.0008226/0.0008226, allocations: 84 kB / 21.43 MB, free: 3.129 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.003511/0.003511, allocations: 142.9 kB / 24.68 MB, free: 8.902 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.8747/0.8747, allocations: 173.4 MB / 201.2 MB, free: 9.426 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.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.673e-06/1.673e-06, allocations: 0 / 319.7 MB, free: 5.855 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.323e-05/2.491e-05, allocations: 6.219 kB / 319.7 MB, free: 5.848 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.009374/0.009399, allocations: 13.07 MB / 332.8 MB, free: 8.707 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.007292/0.01669, allocations: 4.62 MB / 337.4 MB, free: 4.074 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001242/0.01793, allocations: 107.5 kB / 337.5 MB, free: 3.969 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00297/0.0209, allocations: 3.258 MB / 340.7 MB, free: 0.6953 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003489/0.02439, allocations: 2.718 MB / 343.5 MB, free: 13.96 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001317/0.02571, allocations: 1.099 MB / 344.6 MB, free: 12.86 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.005803/0.03151, allocations: 7.665 MB / 352.2 MB, free: 5.188 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003222/0.03473, allocations: 4.112 MB / 356.3 MB, free: 1.008 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003126/0.03786, allocations: 3.391 MB / 359.7 MB, free: 13.61 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002912/0.04077, allocations: 3.585 MB / 363.3 MB, free: 10.02 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005464/0.04132, allocations: 496 kB / 363.8 MB, free: 9.531 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001644/0.04296, allocations: 1.478 MB / 365.3 MB, free: 8.051 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001653/0.04462, allocations: 3.081 MB / 368.4 MB, free: 4.961 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001485/0.0461, allocations: 1.869 MB / 370.2 MB, free: 3.086 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007081/0.05318, allocations: 10.62 MB / 380.8 MB, free: 8.43 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.121e-06/0.05319, allocations: 4 kB / 380.8 MB, free: 8.426 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.05319, allocations: 0 / 380.8 MB, free: 8.426 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0001217/0.05331, allocations: 0 / 380.8 MB, free: 8.426 MB / 346.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.009531/0.06284, allocations: 7.431 MB / 388.3 MB, free: 0.918 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.108e-05/0.06288, allocations: 8.922 kB / 388.3 MB, free: 0.9102 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008012/0.07089, allocations: 4.088 MB / 392.4 MB, free: 12.81 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005243/0.07614, allocations: 4.047 MB / 396.4 MB, free: 8.711 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001561/0.07629, allocations: 316.4 kB / 396.7 MB, free: 8.398 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005668/0.07686, allocations: 424.2 kB / 397.1 MB, free: 7.984 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01475/0.09161, allocations: 15.81 MB / 413 MB, free: 7.23 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.54e-05/0.0917, allocations: 71.45 kB / 413 MB, free: 7.16 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003935/0.0921, allocations: 199.8 kB / 413.2 MB, free: 6.965 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002868/0.09496, allocations: 3.212 MB / 416.4 MB, free: 3.75 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01638/0.1113, allocations: 14.11 MB / 430.5 MB, free: 5.613 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1833/0.2947, allocations: 53.78 MB / 484.3 MB, free: 79.4 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006881/0.3016, allocations: 5.53 MB / 489.8 MB, free: 77.86 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002343/0.3039, allocations: 3.347 MB / 493.2 MB, free: 76.63 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01106/0.315, allocations: 12.23 MB / 0.4936 GB, free: 67.45 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.052e-05/0.315, allocations: 60.56 kB / 0.4936 GB, free: 67.38 MB / 410.7 MB Notification: Performance of pre-optimization done (n=289): time 5.179e-06/0.315, allocations: 0.9062 kB / 0.4936 GB, free: 67.38 MB / 410.7 MB Notification: Performance of matching and sorting (n=339): time 0.07307/0.3881, allocations: 43.52 MB / 0.5361 GB, free: 24.39 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.444e-05/0.3881, allocations: 217.9 kB / 0.5363 GB, free: 24.13 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004643/0.3928, allocations: 5.385 MB / 0.5416 GB, free: 18.95 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003914/0.3932, allocations: 73.7 kB / 0.5417 GB, free: 18.88 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001198/0.3944, allocations: 4.512 MB / 0.5461 GB, free: 14.54 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007732/0.3951, allocations: 1.298 MB / 0.5473 GB, free: 13.25 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00149/0.3966, allocations: 1.829 MB / 0.5491 GB, free: 11.41 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.8e-05/0.3967, allocations: 301.1 kB / 0.5494 GB, free: 11.12 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00369/0.4003, allocations: 4.796 MB / 0.5541 GB, free: 6.312 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005814/0.4062, allocations: 9.847 MB / 0.5637 GB, free: 10.01 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01276/0.4189, allocations: 15.56 MB / 0.5789 GB, free: 7.977 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.906e-05/0.419, allocations: 48 kB / 0.579 GB, free: 7.93 MB / 442.7 MB Notification: Performance of matching and sorting (n=1185) (initialization): time 0.02686/0.4459, allocations: 19.5 MB / 0.598 GB, free: 4.391 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.863e-05/0.446, allocations: 78.34 kB / 0.5981 GB, free: 4.316 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000141/0.4461, allocations: 176 kB / 0.5982 GB, free: 4.145 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01235/0.4585, allocations: 5.937 MB / 0.604 GB, free: 14.2 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005009/0.4635, allocations: 2.105 MB / 0.6061 GB, free: 12.09 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2038/0.6673, allocations: 25.73 MB / 0.6312 GB, free: 154.5 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004656/0.672, allocations: 0.6166 MB / 0.6318 GB, free: 154.3 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000534/0.6725, allocations: 0.5064 MB / 0.6323 GB, free: 154.3 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 791 * 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 (1094): * Single equations (assignments): 1086 * 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,42,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003627/0.6761, allocations: 3.099 MB / 0.6354 GB, free: 153.1 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006811/0.6768, allocations: 481.8 kB / 0.6358 GB, free: 153.1 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01573/0.6926, allocations: 12.86 MB / 0.6484 GB, free: 148 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.801e-05/0.6926, allocations: 58.88 kB / 0.6484 GB, free: 147.9 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.436e-05/0.6926, allocations: 11.94 kB / 0.6484 GB, free: 147.9 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.114e-05/0.6926, allocations: 15.94 kB / 0.6484 GB, free: 147.9 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02573/0.7184, allocations: 22.29 MB / 0.6702 GB, free: 125.4 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.522e-05/0.7184, allocations: 4 kB / 0.6702 GB, free: 125.4 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001513/0.7199, allocations: 0.5796 MB / 0.6708 GB, free: 124.9 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009516/0.7294, allocations: 4.961 MB / 0.6756 GB, free: 119.9 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002444/0.7297, allocations: 63.92 kB / 0.6757 GB, free: 119.9 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01456/0.7442, allocations: 20.96 MB / 0.6962 GB, free: 98.84 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.386e-06/0.7442, allocations: 9.688 kB / 0.6962 GB, free: 98.83 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01798/0.7622, allocations: 17.39 MB / 0.7131 GB, free: 81.56 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001151/0.7634, allocations: 482 kB / 0.7136 GB, free: 81.3 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004129/0.7638, allocations: 52 kB / 0.7137 GB, free: 81.25 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001502/0.7653, allocations: 311.4 kB / 0.714 GB, free: 80.95 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004408/0.7657, allocations: 205.4 kB / 0.7142 GB, free: 80.75 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001596/0.7659, allocations: 87.98 kB / 0.7142 GB, free: 80.66 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.002636/0.7685, allocations: 3.13 MB / 0.7173 GB, free: 77.54 MB / 474.7 MB Notification: Performance of sort global known variables: time 2.5e-07/0.7685, allocations: 2 kB / 0.7173 GB, free: 77.54 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.004523/0.773, allocations: 1.893 MB / 0.7191 GB, free: 75.65 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * 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 (254): * Single equations (assignments): 246 * 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,38,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004417/0.7735, allocations: 231.2 kB / 0.7194 GB, free: 75.44 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.008413/0.7819, allocations: 10.48 MB / 0.7296 GB, free: 65 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 5.25e-06/0.7819, allocations: 0 / 0.7296 GB, free: 65 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002891/0.7848, allocations: 3.797 MB / 0.7333 GB, free: 61.2 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001924/0.7867, allocations: 0.5126 MB / 0.7338 GB, free: 60.69 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01412/0.8008, allocations: 16.83 MB / 0.7502 GB, free: 43.77 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002725/0.8035, allocations: 4.094 MB / 0.7542 GB, free: 39.63 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001273/0.8048, allocations: 408.4 kB / 0.7546 GB, free: 39.23 MB / 474.7 MB Notification: Performance of SimCode: time 2.705e-06/0.8048, allocations: 0 / 0.7546 GB, free: 39.23 MB / 474.7 MB Notification: Performance of Templates: time 0.2527/1.058, allocations: 151.6 MB / 0.9027 GB, free: 55.81 MB / 474.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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.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: 9.917880944907665]