Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001179/0.001179, allocations: 91.61 kB / 22.19 MB, free: 2.379 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.001254/0.001254, allocations: 161 kB / 25.45 MB, free: 9.348 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8851/0.8851, allocations: 158.6 MB / 187.2 MB, free: 3.035 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.603e-06/1.603e-06, allocations: 0 / 299.7 MB, free: 6.922 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.153e-05/2.313e-05, allocations: 2.281 kB / 299.7 MB, free: 6.918 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.01128/0.01131, allocations: 16.06 MB / 315.8 MB, free: 6.781 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01009/0.0214, allocations: 5.96 MB / 321.7 MB, free: 0.8047 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001898/0.0233, allocations: 171.1 kB / 321.9 MB, free: 0.6367 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005674/0.02897, allocations: 6.429 MB / 328.3 MB, free: 10.19 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0054/0.03437, allocations: 3.04 MB / 331.4 MB, free: 7.133 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00309/0.03746, allocations: 2.455 MB / 333.8 MB, free: 4.672 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.007853/0.04532, allocations: 10.13 MB / 343.9 MB, free: 10.52 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006264/0.05158, allocations: 7.257 MB / 351.2 MB, free: 3.156 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1772/0.2288, allocations: 4.981 MB / 356.2 MB, free: 24.24 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007882/0.2367, allocations: 4.677 MB / 360.9 MB, free: 24.24 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002251/0.2389, allocations: 0.7372 MB / 361.6 MB, free: 24.24 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003885/0.2428, allocations: 1.879 MB / 363.5 MB, free: 24.24 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003154/0.246, allocations: 4.115 MB / 367.6 MB, free: 24.24 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002806/0.2488, allocations: 2.593 MB / 370.2 MB, free: 24.24 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01115/0.2599, allocations: 13.59 MB / 383.8 MB, free: 20.12 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.027e-06/0.2599, allocations: 0 / 383.8 MB, free: 20.12 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.256e-06/0.2599, allocations: 0 / 383.8 MB, free: 20.12 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0003807/0.2603, allocations: 0 / 383.8 MB, free: 20.12 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2349 * Number of variables: 2349 Notification: Performance of Generate backend data structure: time 0.01461/0.2749, allocations: 9.233 MB / 393 MB, free: 14.02 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.138e-05/0.275, allocations: 18.39 kB / 393 MB, free: 14.01 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02002/0.295, allocations: 5.056 MB / 398.1 MB, free: 10.55 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01096/0.3059, allocations: 6.507 MB / 404.6 MB, free: 4.238 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001777/0.3061, allocations: 431.4 kB / 405 MB, free: 3.859 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001638/0.3077, allocations: 0.5913 MB / 405.6 MB, free: 3.312 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0215/0.3293, allocations: 17.3 MB / 422.9 MB, free: 1.254 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001616/0.3294, allocations: 83.81 kB / 423 MB, free: 1.199 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005202/0.3299, allocations: 272.8 kB / 423.2 MB, free: 0.9766 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002518/0.3325, allocations: 2.647 MB / 425.9 MB, free: 14.36 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02105/0.3535, allocations: 14.77 MB / 440.7 MB, free: 15.84 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05768/0.4112, allocations: 60.19 MB / 0.4891 GB, free: 3.129 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01316/0.4244, allocations: 8.28 MB / 0.4972 GB, free: 10.82 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004071/0.4284, allocations: 4.736 MB / 0.5018 GB, free: 6.078 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1723/0.6007, allocations: 17.52 MB / 0.5189 GB, free: 142.8 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.863e-05/0.6007, allocations: 63.88 kB / 0.519 GB, free: 142.7 MB / 442.7 MB Notification: Performance of pre-optimization done (n=281): time 5.5e-06/0.6007, allocations: 1.094 kB / 0.519 GB, free: 142.7 MB / 442.7 MB Notification: Performance of matching and sorting (n=374): time 0.1253/0.726, allocations: 76.84 MB / 0.594 GB, free: 84.64 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001068/0.7261, allocations: 373.9 kB / 0.5944 GB, free: 84.19 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005257/0.7313, allocations: 6.666 MB / 0.6009 GB, free: 77.55 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003296/0.7317, allocations: 81.7 kB / 0.601 GB, free: 77.46 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001197/0.7329, allocations: 4.929 MB / 0.6058 GB, free: 72.55 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008387/0.7337, allocations: 1.422 MB / 0.6072 GB, free: 71.15 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001688/0.7354, allocations: 1.96 MB / 0.6091 GB, free: 69.18 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 2.682e-05/0.7354, allocations: 301.1 kB / 0.6094 GB, free: 68.88 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004193/0.7396, allocations: 5.992 MB / 0.6152 GB, free: 62.88 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005337/0.745, allocations: 11.22 MB / 0.6262 GB, free: 49.17 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01099/0.756, allocations: 17.97 MB / 0.6437 GB, free: 28.76 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.132e-05/0.756, allocations: 52 kB / 0.6438 GB, free: 28.71 MB / 442.7 MB Notification: Performance of matching and sorting (n=1233) (initialization): time 0.02387/0.7799, allocations: 23.24 MB / 0.6665 GB, free: 5.414 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.54e-05/0.7799, allocations: 76 kB / 0.6666 GB, free: 5.34 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.674e-05/0.78, allocations: 176 kB / 0.6667 GB, free: 5.168 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.1674/0.9474, allocations: 7.439 MB / 0.674 GB, free: 127.6 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00559/0.953, allocations: 2.191 MB / 0.6761 GB, free: 127.6 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02972/0.9827, allocations: 37.46 MB / 0.7127 GB, free: 111.9 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006541/0.9893, allocations: 0.8841 MB / 0.7136 GB, free: 111.8 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009664/0.9902, allocations: 0.5338 MB / 0.7141 GB, free: 111.7 MB / 442.7 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.004458/0.9947, allocations: 3.438 MB / 0.7175 GB, free: 108.9 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001/0.9957, allocations: 0.5597 MB / 0.718 GB, free: 108.7 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01689/1.013, allocations: 16.84 MB / 0.7345 GB, free: 93.18 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.787e-05/1.013, allocations: 51.66 kB / 0.7345 GB, free: 93.14 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.756e-05/1.013, allocations: 23.73 kB / 0.7345 GB, free: 93.12 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.029e-05/1.013, allocations: 23.83 kB / 0.7345 GB, free: 93.1 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0288/1.041, allocations: 29.71 MB / 0.7636 GB, free: 63.21 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.174e-05/1.041, allocations: 4 kB / 0.7636 GB, free: 63.21 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001532/1.043, allocations: 0.6045 MB / 0.7642 GB, free: 62.61 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01/1.053, allocations: 7.006 MB / 0.771 GB, free: 55.62 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003099/1.053, allocations: 67.98 kB / 0.7711 GB, free: 55.56 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0263/1.08, allocations: 35.72 MB / 0.8059 GB, free: 19.76 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.208e-06/1.08, allocations: 4.562 kB / 0.8059 GB, free: 19.75 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02441/1.104, allocations: 24.5 MB / 0.8299 GB, free: 11.45 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.175/1.279, allocations: 1.671 MB / 0.8315 GB, free: 139.6 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002147/1.281, allocations: 66.03 kB / 0.8316 GB, free: 139.6 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003422/1.285, allocations: 0.561 MB / 0.8321 GB, free: 139.6 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009352/1.286, allocations: 260.9 kB / 0.8324 GB, free: 139.6 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000246/1.286, allocations: 94.58 kB / 0.8325 GB, free: 139.6 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.005056/1.291, allocations: 4.065 MB / 0.8364 GB, free: 139.4 MB / 458.7 MB Notification: Performance of sort global known variables: time 3.31e-07/1.291, allocations: 3.938 kB / 0.8364 GB, free: 139.4 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.007852/1.299, allocations: 2.629 MB / 0.839 GB, free: 139.4 MB / 458.7 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.0008166/1.299, allocations: 309.4 kB / 0.8393 GB, free: 139.4 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01466/1.314, allocations: 14.2 MB / 0.8532 GB, free: 135.6 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 5.481e-06/1.314, allocations: 3.969 kB / 0.8532 GB, free: 135.6 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005126/1.319, allocations: 6.154 MB / 0.8592 GB, free: 133.1 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003458/1.323, allocations: 0.8114 MB / 0.86 GB, free: 132.7 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01976/1.343, allocations: 20.97 MB / 0.8804 GB, free: 120.5 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003529/1.346, allocations: 4.742 MB / 0.8851 GB, free: 117 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001932/1.348, allocations: 441.5 kB / 0.8855 GB, free: 116.6 MB / 458.7 MB Notification: Performance of SimCode: time 2.104e-06/1.348, allocations: 0 / 0.8855 GB, free: 116.6 MB / 458.7 MB Notification: Performance of Templates: time 0.2925/1.64, allocations: 213.4 MB / 1.094 GB, free: 71.61 MB / 458.7 MB " [Timeout remaining time 658] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/PlanarFourbar/PlanarFourbar.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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: 14.09747226163745]