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.001603/0.001603, allocations: 77.88 kB / 21.42 MB, free: 3.066 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.001926/0.001926, allocations: 170 kB / 24.82 MB, free: 9.266 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.9908/0.9908, allocations: 177.1 MB / 205.3 MB, free: 5.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.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.463e-06/1.463e-06, allocations: 0 / 273.4 MB, free: 1.312 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.242e-05/1.389e-05, allocations: 2.312 kB / 273.4 MB, free: 1.309 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.01221/0.01222, allocations: 16.93 MB / 290.3 MB, free: 312 kB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1265/0.1387, allocations: 5.942 MB / 296.3 MB, free: 13.71 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003556/0.1422, allocations: 171.9 kB / 296.4 MB, free: 13.71 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00716/0.1494, allocations: 6.62 MB / 303.1 MB, free: 12.09 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005418/0.1548, allocations: 3.005 MB / 306.1 MB, free: 10.4 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002922/0.1577, allocations: 2.507 MB / 308.6 MB, free: 8.949 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.007577/0.1653, allocations: 11.14 MB / 319.7 MB, free: 1.746 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007343/0.1727, allocations: 7.459 MB / 327.2 MB, free: 10.61 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008343/0.181, allocations: 6.881 MB / 334.1 MB, free: 4.277 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005502/0.1865, allocations: 4.778 MB / 338.8 MB, free: 15.52 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001455/0.188, allocations: 0.7422 MB / 339.6 MB, free: 14.77 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00277/0.1907, allocations: 1.869 MB / 341.4 MB, free: 12.9 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003181/0.1939, allocations: 4.111 MB / 345.6 MB, free: 8.781 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002512/0.1964, allocations: 2.591 MB / 348.1 MB, free: 6.184 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006944/0.2034, allocations: 8.418 MB / 356.6 MB, free: 13.73 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.559e-06/0.2034, allocations: 0 / 356.6 MB, free: 13.73 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.092e-06/0.2034, allocations: 0 / 356.6 MB, free: 13.73 MB / 314.7 MB Notification: Performance of Transformations before backend: time 9.112e-05/0.2035, allocations: 4 kB / 356.6 MB, free: 13.73 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.009787/0.2132, allocations: 9.127 MB / 365.7 MB, free: 4.52 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.47e-05/0.2133, allocations: 8.031 kB / 365.7 MB, free: 4.512 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01946/0.2328, allocations: 4.671 MB / 370.4 MB, free: 15.83 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0058/0.2386, allocations: 4.424 MB / 374.8 MB, free: 11.32 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002257/0.2388, allocations: 439.7 kB / 375.2 MB, free: 10.89 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000758/0.2395, allocations: 0.5898 MB / 375.8 MB, free: 10.3 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01046/0.25, allocations: 9.172 MB / 385 MB, free: 15.79 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001308/0.2501, allocations: 71.39 kB / 385.1 MB, free: 15.72 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000429/0.2506, allocations: 267.8 kB / 385.3 MB, free: 15.46 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001803/0.2524, allocations: 2.324 MB / 387.6 MB, free: 13.13 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007103/0.2595, allocations: 4.165 MB / 391.8 MB, free: 8.938 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2664/0.5258, allocations: 65.08 MB / 456.9 MB, free: 65.76 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00816/0.534, allocations: 3.289 MB / 460.2 MB, free: 65.59 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001021/0.535, allocations: 0.8486 MB / 461 MB, free: 65.54 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008501/0.5435, allocations: 7.342 MB / 468.4 MB, free: 64.29 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.084e-05/0.5435, allocations: 64.52 kB / 468.4 MB, free: 64.24 MB / 378.8 MB Notification: Performance of pre-optimization done (n=227): time 3.997e-06/0.5435, allocations: 0 / 468.4 MB, free: 64.24 MB / 378.8 MB Notification: Performance of matching and sorting (n=276): time 0.04892/0.5925, allocations: 21.21 MB / 489.6 MB, free: 55.17 MB / 378.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.151e-05/0.5925, allocations: 367.7 kB / 490 MB, free: 54.73 MB / 378.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003798/0.5963, allocations: 5.618 MB / 495.6 MB, free: 50.28 MB / 378.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0001316/0.5965, allocations: 69.7 kB / 495.7 MB, free: 50.2 MB / 378.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.001534/0.598, allocations: 5.37 MB / 0.4893 GB, free: 45.2 MB / 378.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005553/0.5985, allocations: 1.14 MB / 0.4904 GB, free: 44.05 MB / 378.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001332/0.5999, allocations: 1.989 MB / 0.4924 GB, free: 42.04 MB / 378.8 MB Notification: Performance of setup shared object (initialization): time 3.181e-05/0.5999, allocations: 480.8 kB / 0.4928 GB, free: 41.57 MB / 378.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001165/0.6011, allocations: 0.9702 MB / 0.4938 GB, free: 40.59 MB / 378.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002795/0.6039, allocations: 9.041 MB / 0.5026 GB, free: 28.01 MB / 378.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004572/0.6084, allocations: 10.64 MB / 0.513 GB, free: 14.4 MB / 378.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.578e-05/0.6085, allocations: 56 kB / 0.5131 GB, free: 14.35 MB / 378.8 MB Notification: Performance of matching and sorting (n=1180) (initialization): time 0.007928/0.6164, allocations: 7.875 MB / 0.5207 GB, free: 6.461 MB / 378.8 MB Notification: Performance of prepare postOptimizeDAE: time 5.86e-05/0.6165, allocations: 84 kB / 0.5208 GB, free: 6.379 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.985e-05/0.6166, allocations: 184 kB / 0.521 GB, free: 6.199 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002871/0.6194, allocations: 1.454 MB / 0.5224 GB, free: 4.734 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002872/0.6223, allocations: 1.992 MB / 0.5244 GB, free: 2.738 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006699/0.629, allocations: 8.572 MB / 0.5327 GB, free: 9.836 MB / 394.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003809/0.6328, allocations: 395.6 kB / 0.5331 GB, free: 9.449 MB / 394.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004185/0.6332, allocations: 464 kB / 0.5336 GB, free: 8.996 MB / 394.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 840 * 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 (1111): * Single equations (assignments): 1104 * 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,21,76.0%), (2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,12)} Notification: Performance of prepare postOptimizeDAE: time 0.00172/0.6349, allocations: 0.8832 MB / 0.5344 GB, free: 8.102 MB / 394.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000689/0.6356, allocations: 0.6175 MB / 0.535 GB, free: 7.48 MB / 394.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003809/0.6394, allocations: 2.571 MB / 0.5375 GB, free: 4.879 MB / 394.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.437e-05/0.6395, allocations: 35.94 kB / 0.5376 GB, free: 4.844 MB / 394.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.768e-06/0.6395, allocations: 8 kB / 0.5376 GB, free: 4.836 MB / 394.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.512e-05/0.6395, allocations: 11.95 kB / 0.5376 GB, free: 4.824 MB / 394.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01228/0.6518, allocations: 9.599 MB / 0.547 GB, free: 10.82 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.63e-05/0.6518, allocations: 20 kB / 0.547 GB, free: 10.8 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007836/0.6526, allocations: 388.1 kB / 0.5473 GB, free: 10.42 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002569/0.6551, allocations: 1.181 MB / 0.5485 GB, free: 9.223 MB / 410.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001089/0.6552, allocations: 64 kB / 0.5486 GB, free: 9.16 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006501/0.6617, allocations: 8.404 MB / 0.5568 GB, free: 432 kB / 410.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.297e-05/0.6618, allocations: 27.88 kB / 0.5568 GB, free: 404 kB / 410.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005281/0.667, allocations: 4.355 MB / 0.561 GB, free: 11.59 MB / 426.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008465/0.6679, allocations: 0.5781 MB / 0.5616 GB, free: 11.01 MB / 426.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003752/0.6683, allocations: 80.02 kB / 0.5617 GB, free: 10.93 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001146/0.6694, allocations: 75.97 kB / 0.5618 GB, free: 10.86 MB / 426.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002836/0.6697, allocations: 240.5 kB / 0.562 GB, free: 10.62 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001148/0.6698, allocations: 87.98 kB / 0.5621 GB, free: 10.54 MB / 426.8 MB Notification: Performance of sorting global known variables: time 0.002131/0.6719, allocations: 2.366 MB / 0.5644 GB, free: 8.199 MB / 426.8 MB Notification: Performance of sort global known variables: time 8e-08/0.6719, allocations: 0 / 0.5644 GB, free: 8.199 MB / 426.8 MB Notification: Performance of remove unused functions: time 0.005182/0.6771, allocations: 1.882 MB / 0.5662 GB, free: 6.316 MB / 426.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 84 * 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 (219): * Single equations (assignments): 212 * 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,21,76.0%), (2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005357/0.6777, allocations: 318.3 kB / 0.5665 GB, free: 5.996 MB / 426.8 MB Notification: Performance of simCode: created initialization part: time 0.0053/0.683, allocations: 4.778 MB / 0.5712 GB, free: 1.18 MB / 426.8 MB Notification: Performance of simCode: created event and clocks part: time 6.923e-06/0.683, allocations: 4 kB / 0.5712 GB, free: 1.176 MB / 426.8 MB Notification: Performance of simCode: created simulation system equations: time 0.001508/0.6845, allocations: 1.64 MB / 0.5728 GB, free: 15.48 MB / 442.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002508/0.687, allocations: 0.8352 MB / 0.5736 GB, free: 14.68 MB / 442.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.015/0.702, allocations: 13.2 MB / 0.5865 GB, free: 1.031 MB / 442.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1118/0.8138, allocations: 2.137 MB / 0.5886 GB, free: 153.8 MB / 442.8 MB Notification: Performance of simCode: alias equations: time 0.002694/0.8165, allocations: 0.7764 MB / 0.5894 GB, free: 153.7 MB / 442.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001605/0.8181, allocations: 0.9671 MB / 0.5903 GB, free: 153.6 MB / 442.8 MB Notification: Performance of SimCode: time 1.723e-06/0.8181, allocations: 1 kB / 0.5903 GB, free: 153.6 MB / 442.8 MB Notification: Performance of Templates: time 0.08011/0.8982, allocations: 69.19 MB / 0.6579 GB, free: 107.5 MB / 442.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: 4.868776154704392]