Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.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.0009557/0.0009557, allocations: 71.77 kB / 21.69 MB, free: 2.855 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.0009323/0.0009323, allocations: 167.3 kB / 24.99 MB, free: 8.746 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.9568/0.9568, allocations: 177.1 MB / 205.3 MB, free: 5.645 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.PlanarFourbar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|revolute1.phi|revolute1.w",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|revolute1.phi|revolute1.w",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.593e-06/1.593e-06, allocations: 0 / 273.1 MB, free: 1.855 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.863e-05/2.022e-05, allocations: 2.312 kB / 273.1 MB, free: 1.852 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.01797/0.01799, allocations: 17.47 MB / 290.5 MB, free: 316 kB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1389/0.1569, allocations: 5.967 MB / 296.5 MB, free: 13.67 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001514/0.1584, allocations: 169.5 kB / 296.7 MB, free: 13.67 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006363/0.1648, allocations: 6.732 MB / 303.4 MB, free: 11.91 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003744/0.1685, allocations: 2.992 MB / 306.4 MB, free: 10.2 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002583/0.1711, allocations: 2.531 MB / 308.9 MB, free: 8.746 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.006387/0.1775, allocations: 11.12 MB / 320 MB, free: 1.879 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005333/0.1828, allocations: 7.46 MB / 327.5 MB, free: 10.74 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004539/0.1874, allocations: 4.956 MB / 332.5 MB, free: 6.066 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004154/0.1915, allocations: 4.814 MB / 337.3 MB, free: 1.543 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008256/0.1923, allocations: 0.7383 MB / 338 MB, free: 0.8047 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002405/0.1948, allocations: 1.869 MB / 339.9 MB, free: 14.93 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00245/0.1972, allocations: 4.107 MB / 344 MB, free: 10.82 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002389/0.1996, allocations: 2.583 MB / 346.6 MB, free: 8.227 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008577/0.2082, allocations: 8.402 MB / 355 MB, free: 15.79 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.524e-06/0.2082, allocations: 7.938 kB / 355 MB, free: 15.79 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.106e-06/0.2082, allocations: 0 / 355 MB, free: 15.79 MB / 314.7 MB Notification: Performance of Transformations before backend: time 8.554e-05/0.2083, allocations: 0 / 355 MB, free: 15.79 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: 2348 * Number of variables: 2348 Notification: Performance of Generate backend data structure: time 0.01058/0.2188, allocations: 9.717 MB / 364.7 MB, free: 5.984 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.716e-05/0.2189, allocations: 8.031 kB / 364.7 MB, free: 5.977 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02191/0.2408, allocations: 5.747 MB / 370.4 MB, free: 224 kB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008408/0.2492, allocations: 5.747 MB / 376.2 MB, free: 10.38 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002265/0.2494, allocations: 439.7 kB / 376.6 MB, free: 9.953 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007701/0.2502, allocations: 0.5859 MB / 377.2 MB, free: 9.367 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01303/0.2633, allocations: 10.55 MB / 387.8 MB, free: 13.48 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001357/0.2634, allocations: 67.47 kB / 387.8 MB, free: 13.41 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004637/0.2639, allocations: 267.8 kB / 388.1 MB, free: 13.15 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002534/0.2664, allocations: 2.659 MB / 390.7 MB, free: 10.49 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01062/0.277, allocations: 5.976 MB / 396.7 MB, free: 4.5 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2634/0.5404, allocations: 65.01 MB / 461.7 MB, free: 70.61 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01174/0.5522, allocations: 5.485 MB / 467.2 MB, free: 70.43 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001699/0.5539, allocations: 1.517 MB / 468.7 MB, free: 70.39 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01419/0.568, allocations: 11.19 MB / 479.9 MB, free: 66.32 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.985e-05/0.5681, allocations: 64.48 kB / 480 MB, free: 66.26 MB / 378.8 MB Notification: Performance of pre-optimization done (n=281): time 5.892e-06/0.5681, allocations: 0 / 480 MB, free: 66.26 MB / 378.8 MB Notification: Performance of matching and sorting (n=374): time 0.1173/0.6854, allocations: 57.39 MB / 0.5248 GB, free: 14.61 MB / 378.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.698e-05/0.6855, allocations: 368.6 kB / 0.5251 GB, free: 14.17 MB / 378.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004294/0.6898, allocations: 5.488 MB / 0.5305 GB, free: 8.895 MB / 378.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0003524/0.6901, allocations: 85.7 kB / 0.5306 GB, free: 8.805 MB / 378.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.001535/0.6916, allocations: 5.155 MB / 0.5356 GB, free: 3.945 MB / 378.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008545/0.6925, allocations: 1.496 MB / 0.5371 GB, free: 2.469 MB / 378.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001713/0.6942, allocations: 2.035 MB / 0.5391 GB, free: 428 kB / 378.8 MB Notification: Performance of setup shared object (initialization): time 5.885e-05/0.6943, allocations: 480.7 kB / 0.5395 GB, free: 15.95 MB / 394.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002729/0.697, allocations: 1.936 MB / 0.5414 GB, free: 14 MB / 394.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00587/0.7029, allocations: 9.551 MB / 0.5507 GB, free: 1.07 MB / 394.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01066/0.7135, allocations: 12.34 MB / 0.5628 GB, free: 1.395 MB / 410.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001606/0.7137, allocations: 52 kB / 0.5628 GB, free: 1.344 MB / 410.8 MB Notification: Performance of matching and sorting (n=1233) (initialization): time 0.02582/0.7395, allocations: 13.84 MB / 0.5763 GB, free: 3.449 MB / 426.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001155/0.7396, allocations: 83.94 kB / 0.5764 GB, free: 3.367 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000153/0.7398, allocations: 175.9 kB / 0.5766 GB, free: 3.195 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.1396/0.8794, allocations: 5.946 MB / 0.5824 GB, free: 140.1 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005423/0.8848, allocations: 2.19 MB / 0.5845 GB, free: 140.1 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01964/0.9045, allocations: 15.81 MB / 0.6 GB, free: 134.3 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005794/0.9103, allocations: 0.8676 MB / 0.6008 GB, free: 134.3 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001029/0.9113, allocations: 0.5236 MB / 0.6013 GB, free: 134.3 MB / 426.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 785 * Number of states: 0 () * Number of discrete variables: 51 (sensorJoint4.arrowColor[3],sensorJoint4.arrowColor[2],sensorJoint4.arrowColor[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],body4.color[3],body4.color[2],body4.color[1],body4.body.sphereColor[3],body4.body.sphereColor[2],body4.body.sphereColor[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],revolute4cut.cylinderColor[3],revolute4cut.cylinderColor[2],revolute4cut.cylinderColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1091): * Single equations (assignments): 1084 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(5,68,84.0%), (2,18,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,24)} Notification: Performance of prepare postOptimizeDAE: time 0.002944/0.9142, allocations: 0.891 MB / 0.6022 GB, free: 134.1 MB / 426.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001365/0.9156, allocations: 0.6625 MB / 0.6029 GB, free: 134.1 MB / 426.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01518/0.9308, allocations: 9.041 MB / 0.6117 GB, free: 133.4 MB / 426.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.388e-05/0.9308, allocations: 63.67 kB / 0.6117 GB, free: 133.4 MB / 426.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.079e-05/0.9309, allocations: 17.62 kB / 0.6118 GB, free: 133.4 MB / 426.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.347e-05/0.9309, allocations: 16.45 kB / 0.6118 GB, free: 133.4 MB / 426.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02739/0.9583, allocations: 19.1 MB / 0.6304 GB, free: 119.2 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.847e-05/0.9583, allocations: 7.984 kB / 0.6304 GB, free: 119.2 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001701/0.96, allocations: 0.6023 MB / 0.631 GB, free: 118.6 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01134/0.9713, allocations: 5.534 MB / 0.6364 GB, free: 113.1 MB / 426.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000402/0.9717, allocations: 64.55 kB / 0.6365 GB, free: 113.1 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01664/0.9884, allocations: 14.58 MB / 0.6507 GB, free: 98.36 MB / 426.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.557e-06/0.9884, allocations: 15.92 kB / 0.6507 GB, free: 98.34 MB / 426.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0175/1.006, allocations: 10.84 MB / 0.6613 GB, free: 87.64 MB / 426.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00173/1.008, allocations: 0.6029 MB / 0.6619 GB, free: 87.04 MB / 426.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007476/1.008, allocations: 71.92 kB / 0.662 GB, free: 86.97 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002437/1.011, allocations: 0.5378 MB / 0.6625 GB, free: 86.44 MB / 426.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008578/1.012, allocations: 262.5 kB / 0.6628 GB, free: 86.18 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002332/1.012, allocations: 92 kB / 0.6629 GB, free: 86.09 MB / 426.8 MB Notification: Performance of sorting global known variables: time 0.003025/1.015, allocations: 2.512 MB / 0.6653 GB, free: 83.61 MB / 426.8 MB Notification: Performance of sort global known variables: time 3.61e-07/1.015, allocations: 0 / 0.6653 GB, free: 83.61 MB / 426.8 MB Notification: Performance of remove unused functions: time 0.00669/1.022, allocations: 2.605 MB / 0.6679 GB, free: 81.02 MB / 426.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 2 (revolute1.phi,revolute1.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 (243): * Single equations (assignments): 236 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(5,62,84.0%), (2,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,28)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007908/1.022, allocations: 319.2 kB / 0.6682 GB, free: 80.72 MB / 426.8 MB Notification: Performance of simCode: created initialization part: time 0.009928/1.032, allocations: 7.845 MB / 0.6758 GB, free: 72.83 MB / 426.8 MB Notification: Performance of simCode: created event and clocks part: time 5.771e-06/1.032, allocations: 4 kB / 0.6758 GB, free: 72.82 MB / 426.8 MB Notification: Performance of simCode: created simulation system equations: time 0.004215/1.037, allocations: 3.518 MB / 0.6793 GB, free: 69.24 MB / 426.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003275/1.04, allocations: 0.8408 MB / 0.6801 GB, free: 68.44 MB / 426.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01867/1.058, allocations: 14.96 MB / 0.6947 GB, free: 53.35 MB / 426.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002237/1.061, allocations: 2.231 MB / 0.6969 GB, free: 51.09 MB / 426.8 MB Notification: Performance of simCode: alias equations: time 0.00517/1.066, allocations: 2.306 MB / 0.6991 GB, free: 48.77 MB / 426.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001612/1.067, allocations: 376.4 kB / 0.6995 GB, free: 48.4 MB / 426.8 MB Notification: Performance of SimCode: time 2.896e-06/1.068, allocations: 1.969 kB / 0.6995 GB, free: 48.4 MB / 426.8 MB Notification: Performance of Templates: time 0.2246/1.292, allocations: 109.9 MB / 0.8068 GB, free: 81.79 MB / 426.8 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Loops/PlanarFourbar/PlanarFourbar.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.65209810086526]