Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.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.001861/0.001861, allocations: 95.86 kB / 20.96 MB, free: 3.465 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.001853/0.001853, allocations: 153.5 kB / 24.27 MB, free: 168 kB / 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 1.608/1.608, allocations: 173.3 MB / 200.8 MB, free: 9.309 MB / 186.7 MB " [Timeout remaining time 178] 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.PlanarFourbar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|revolute1.phi|revolute1.w",fileNamePrefix="Modelica_4.0.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.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.843e-06/1.843e-06, allocations: 3.938 kB / 267.3 MB, free: 6.727 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.791e-05/2.976e-05, allocations: 2.312 kB / 267.3 MB, free: 6.723 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.0247/0.02473, allocations: 17.57 MB / 284.9 MB, free: 5.07 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1478/0.1725, allocations: 5.97 MB / 290.9 MB, free: 14.02 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004096/0.1766, allocations: 171 kB / 291 MB, free: 14.02 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01394/0.1906, allocations: 6.751 MB / 297.8 MB, free: 13.95 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.009715/0.2003, allocations: 3.037 MB / 300.8 MB, free: 13.55 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005855/0.2061, allocations: 2.528 MB / 303.3 MB, free: 12.71 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.01409/0.2202, allocations: 10.78 MB / 314.1 MB, free: 7.715 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009316/0.2296, allocations: 7.46 MB / 321.6 MB, free: 0.7852 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01214/0.2417, allocations: 4.974 MB / 326.6 MB, free: 12.11 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009894/0.2516, allocations: 4.822 MB / 331.4 MB, free: 7.664 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003715/0.2553, allocations: 0.7422 MB / 332.1 MB, free: 6.922 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005537/0.2608, allocations: 1.874 MB / 334 MB, free: 5.129 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.007255/0.2681, allocations: 4.134 MB / 338.1 MB, free: 1.121 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.007179/0.2753, allocations: 2.598 MB / 340.7 MB, free: 14.65 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02235/0.2976, allocations: 13.61 MB / 354.3 MB, free: 1.512 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.843e-06/0.2976, allocations: 0 / 354.3 MB, free: 1.512 MB / 298.7 MB Notification: Performance of FrontEnd: time 4.248e-06/0.2976, allocations: 4 kB / 354.3 MB, free: 1.508 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0005353/0.2982, allocations: 4 kB / 354.3 MB, free: 1.504 MB / 298.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.03128/0.3295, allocations: 10.49 MB / 364.8 MB, free: 7.055 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.181e-05/0.3295, allocations: 12.91 kB / 364.9 MB, free: 7.043 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05736/0.3869, allocations: 5.746 MB / 370.6 MB, free: 1.332 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02065/0.4075, allocations: 5.928 MB / 376.5 MB, free: 11.48 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005393/0.4081, allocations: 430.8 kB / 376.9 MB, free: 11.1 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003304/0.4114, allocations: 0.5855 MB / 377.5 MB, free: 10.55 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03919/0.4506, allocations: 11.29 MB / 388.8 MB, free: 14.07 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005401/0.4511, allocations: 71.41 kB / 388.9 MB, free: 14 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002391/0.4535, allocations: 271.4 kB / 389.2 MB, free: 13.78 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005701/0.4592, allocations: 2.652 MB / 391.8 MB, free: 11.13 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02845/0.4876, allocations: 6.37 MB / 398.2 MB, free: 4.762 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3902/0.8779, allocations: 73.42 MB / 471.6 MB, free: 40.97 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02025/0.8981, allocations: 5.571 MB / 477.2 MB, free: 40.8 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003245/0.9014, allocations: 1.526 MB / 478.7 MB, free: 40.73 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0266/0.928, allocations: 11.32 MB / 490 MB, free: 37.95 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.594e-05/0.928, allocations: 61.92 kB / 490.1 MB, free: 37.89 MB / 378.8 MB Notification: Performance of pre-optimization done (n=281): time 9.778e-06/0.928, allocations: 0 / 490.1 MB, free: 37.89 MB / 378.8 MB Notification: Performance of matching and sorting (n=374): time 0.2271/1.155, allocations: 57.66 MB / 0.5349 GB, free: 8.758 MB / 394.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002936/1.155, allocations: 379.5 kB / 0.5353 GB, free: 8.309 MB / 394.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01521/1.171, allocations: 6.979 MB / 0.5421 GB, free: 1.551 MB / 394.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001097/1.172, allocations: 81.7 kB / 0.5422 GB, free: 1.465 MB / 394.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.005904/1.178, allocations: 5.511 MB / 0.5475 GB, free: 12.29 MB / 410.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.00355/1.181, allocations: 1.593 MB / 0.5491 GB, free: 10.72 MB / 410.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.007111/1.188, allocations: 2.435 MB / 0.5515 GB, free: 8.27 MB / 410.8 MB Notification: Performance of setup shared object (initialization): time 0.0002416/1.189, allocations: 481.6 kB / 0.5519 GB, free: 7.797 MB / 410.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005026/1.194, allocations: 2.041 MB / 0.5539 GB, free: 5.75 MB / 410.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01472/1.208, allocations: 10 MB / 0.5637 GB, free: 8.43 MB / 426.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02247/1.231, allocations: 13.17 MB / 0.5766 GB, free: 8.621 MB / 442.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003128/1.231, allocations: 48 kB / 0.5766 GB, free: 8.574 MB / 442.8 MB Notification: Performance of matching and sorting (n=1233) (initialization): time 0.2086/1.44, allocations: 14.1 MB / 0.5904 GB, free: 149.1 MB / 442.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001657/1.44, allocations: 77.94 kB / 0.5904 GB, free: 149.1 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002679/1.44, allocations: 171.8 kB / 0.5906 GB, free: 149.1 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02487/1.465, allocations: 6.003 MB / 0.5965 GB, free: 149 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007697/1.473, allocations: 2.184 MB / 0.5986 GB, free: 148.8 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03245/1.505, allocations: 16.55 MB / 0.6148 GB, free: 142.9 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01091/1.516, allocations: 0.8572 MB / 0.6156 GB, free: 142.9 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002101/1.518, allocations: 0.5332 MB / 0.6161 GB, free: 142.9 MB / 442.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.004818/1.523, allocations: 1.006 MB / 0.6171 GB, free: 142.6 MB / 442.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002107/1.525, allocations: 0.6663 MB / 0.6178 GB, free: 142.6 MB / 442.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02755/1.553, allocations: 9.181 MB / 0.6267 GB, free: 139.7 MB / 442.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.591e-05/1.553, allocations: 54.31 kB / 0.6268 GB, free: 139.7 MB / 442.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.233e-05/1.553, allocations: 17.25 kB / 0.6268 GB, free: 139.7 MB / 442.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.482e-05/1.553, allocations: 15.94 kB / 0.6268 GB, free: 139.7 MB / 442.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05214/1.605, allocations: 21.06 MB / 0.6474 GB, free: 121.3 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.417e-05/1.605, allocations: 4 kB / 0.6474 GB, free: 121.3 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003325/1.608, allocations: 0.6045 MB / 0.648 GB, free: 120.7 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02242/1.631, allocations: 5.597 MB / 0.6534 GB, free: 115.1 MB / 442.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001034/1.632, allocations: 56 kB / 0.6535 GB, free: 115.1 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03066/1.662, allocations: 15.22 MB / 0.6684 GB, free: 99.71 MB / 442.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.861e-06/1.662, allocations: 4 kB / 0.6684 GB, free: 99.71 MB / 442.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0338/1.696, allocations: 11.19 MB / 0.6793 GB, free: 88.57 MB / 442.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002381/1.699, allocations: 0.6015 MB / 0.6799 GB, free: 87.97 MB / 442.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002345/1.701, allocations: 71.5 kB / 0.6799 GB, free: 87.9 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006158/1.707, allocations: 0.5381 MB / 0.6805 GB, free: 87.36 MB / 442.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001664/1.709, allocations: 254.6 kB / 0.6807 GB, free: 87.11 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007751/1.71, allocations: 100.8 kB / 0.6808 GB, free: 87.01 MB / 442.8 MB Notification: Performance of sorting global known variables: time 0.006228/1.716, allocations: 3.028 MB / 0.6838 GB, free: 84.01 MB / 442.8 MB Notification: Performance of sort global known variables: time 1.9e-07/1.716, allocations: 3.5 kB / 0.6838 GB, free: 84.01 MB / 442.8 MB Notification: Performance of remove unused functions: time 0.01168/1.727, allocations: 2.632 MB / 0.6863 GB, free: 81.4 MB / 442.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.001715/1.729, allocations: 295.2 kB / 0.6866 GB, free: 81.12 MB / 442.8 MB Notification: Performance of simCode: created initialization part: time 0.01798/1.747, allocations: 8.385 MB / 0.6948 GB, free: 72.69 MB / 442.8 MB Notification: Performance of simCode: created event and clocks part: time 1.033e-05/1.747, allocations: 3.938 kB / 0.6948 GB, free: 72.68 MB / 442.8 MB Notification: Performance of simCode: created simulation system equations: time 0.008278/1.755, allocations: 3.703 MB / 0.6984 GB, free: 68.92 MB / 442.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008094/1.764, allocations: 0.8311 MB / 0.6992 GB, free: 68.13 MB / 442.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03124/1.795, allocations: 15.13 MB / 0.714 GB, free: 52.86 MB / 442.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007373/1.802, allocations: 4.371 MB / 0.7183 GB, free: 48.44 MB / 442.8 MB Notification: Performance of simCode: alias equations: time 0.006188/1.808, allocations: 2.304 MB / 0.7205 GB, free: 46.13 MB / 442.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002165/1.811, allocations: 382.5 kB / 0.7209 GB, free: 45.76 MB / 442.8 MB Notification: Performance of SimCode: time 1.503e-06/1.811, allocations: 0 / 0.7209 GB, free: 45.76 MB / 442.8 MB Notification: Performance of Templates: time 0.2812/2.092, allocations: 109.8 MB / 0.8281 GB, free: 85.9 MB / 442.8 MB " [Timeout remaining time 658] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/PlanarFourbar/PlanarFourbar.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.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.50764117995277]