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.001947/0.001947, allocations: 92.31 kB / 20.96 MB, free: 3.473 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.002338/0.002338, allocations: 161.7 kB / 24.27 MB, free: 172 kB / 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 1.512/1.512, allocations: 177.1 MB / 204.6 MB, free: 5.594 MB / 186.7 MB " [Timeout remaining time 178] 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.493e-06/1.493e-06, allocations: 0 / 272.3 MB, free: 1.816 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.618e-05/2.767e-05, allocations: 2.312 kB / 272.3 MB, free: 1.812 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.02117/0.0212, allocations: 15.62 MB / 287.9 MB, free: 2.121 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.143/0.1642, allocations: 5.832 MB / 293.8 MB, free: 14 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00279/0.167, allocations: 173.4 kB / 293.9 MB, free: 14 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01115/0.1781, allocations: 6.502 MB / 300.4 MB, free: 13.05 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007499/0.1856, allocations: 2.996 MB / 303.4 MB, free: 11.64 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004882/0.1905, allocations: 2.482 MB / 305.9 MB, free: 10.2 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.01235/0.2028, allocations: 11.14 MB / 317.1 MB, free: 3.48 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01115/0.214, allocations: 7.439 MB / 324.5 MB, free: 12.36 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01222/0.2262, allocations: 4.926 MB / 329.4 MB, free: 7.723 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01005/0.2363, allocations: 4.679 MB / 334.1 MB, free: 3.176 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002526/0.2388, allocations: 0.7422 MB / 334.8 MB, free: 2.434 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005373/0.2442, allocations: 1.884 MB / 336.7 MB, free: 0.5469 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.006088/0.2502, allocations: 4.087 MB / 340.8 MB, free: 12.45 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.006312/0.2566, allocations: 2.587 MB / 343.4 MB, free: 9.855 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0202/0.2768, allocations: 13.58 MB / 357 MB, free: 12.23 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.763e-06/0.2768, allocations: 0 / 357 MB, free: 12.23 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.894e-06/0.2768, allocations: 4 kB / 357 MB, free: 12.23 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0004333/0.2772, allocations: 0 / 357 MB, free: 12.23 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.02837/0.3056, allocations: 9.277 MB / 366.3 MB, free: 2.871 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.791e-05/0.3056, allocations: 8.031 kB / 366.3 MB, free: 2.863 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04646/0.3521, allocations: 5.774 MB / 372.1 MB, free: 13.08 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01854/0.3706, allocations: 6.299 MB / 378.4 MB, free: 6.691 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004884/0.3711, allocations: 435.7 kB / 378.8 MB, free: 6.266 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002178/0.3733, allocations: 0.5898 MB / 379.4 MB, free: 5.676 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03767/0.4109, allocations: 17.44 MB / 396.8 MB, free: 3.23 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002685/0.4112, allocations: 83.34 kB / 396.9 MB, free: 3.148 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008779/0.4121, allocations: 267.8 kB / 397.2 MB, free: 2.887 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005138/0.4172, allocations: 2.675 MB / 399.8 MB, free: 212 kB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03389/0.4511, allocations: 14.91 MB / 414.7 MB, free: 1.285 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3108/0.7619, allocations: 60.59 MB / 475.3 MB, free: 76.55 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02091/0.7828, allocations: 8.386 MB / 483.7 MB, free: 71.59 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004601/0.7874, allocations: 4.839 MB / 488.5 MB, free: 66.75 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008464/0.7883, allocations: 453.4 kB / 489 MB, free: 66.32 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.199e-05/0.7883, allocations: 68.53 kB / 489.1 MB, free: 66.25 MB / 378.8 MB Notification: Performance of pre-optimization done (n=301): time 5.64e-06/0.7883, allocations: 0 / 489.1 MB, free: 66.25 MB / 378.8 MB Notification: Performance of matching and sorting (n=400): time 0.4658/1.254, allocations: 104.6 MB / 0.5798 GB, free: 140.1 MB / 410.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001148/1.254, allocations: 379.9 kB / 0.5801 GB, free: 139.7 MB / 410.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008896/1.263, allocations: 6.358 MB / 0.5864 GB, free: 138.3 MB / 410.8 MB Notification: Performance of collectPreVariables (initialization): time 0.00107/1.264, allocations: 85.61 kB / 0.5864 GB, free: 138.2 MB / 410.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002448/1.267, allocations: 4.861 MB / 0.5912 GB, free: 135.4 MB / 410.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002122/1.269, allocations: 1.497 MB / 0.5926 GB, free: 134.3 MB / 410.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003202/1.272, allocations: 1.975 MB / 0.5946 GB, free: 133.4 MB / 410.8 MB Notification: Performance of setup shared object (initialization): time 4.012e-05/1.272, allocations: 309.1 kB / 0.5949 GB, free: 133.1 MB / 410.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007264/1.279, allocations: 6.623 MB / 0.6013 GB, free: 130.6 MB / 410.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009593/1.289, allocations: 11.73 MB / 0.6128 GB, free: 120.6 MB / 410.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01785/1.307, allocations: 19.13 MB / 0.6315 GB, free: 101.7 MB / 410.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001387/1.307, allocations: 51.94 kB / 0.6315 GB, free: 101.6 MB / 410.8 MB Notification: Performance of matching and sorting (n=1236) (initialization): time 0.04741/1.354, allocations: 27.28 MB / 0.6582 GB, free: 74.27 MB / 410.8 MB Notification: Performance of prepare postOptimizeDAE: time 9.187e-05/1.354, allocations: 79.94 kB / 0.6582 GB, free: 74.2 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001506/1.354, allocations: 176.1 kB / 0.6584 GB, free: 74.02 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03133/1.386, allocations: 12.05 MB / 0.6702 GB, free: 61.97 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007223/1.393, allocations: 2.156 MB / 0.6723 GB, free: 59.81 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1969/1.59, allocations: 47.45 MB / 0.7186 GB, free: 123 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01048/1.6, allocations: 0.9606 MB / 0.7196 GB, free: 123 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002978/1.603, allocations: 0.5183 MB / 0.7201 GB, free: 123 MB / 410.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 762 * 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 (1079): * Single equations (assignments): 1072 * 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,74,68.0%), (2,18,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,33)} Notification: Performance of prepare postOptimizeDAE: time 0.009859/1.613, allocations: 3.434 MB / 0.7234 GB, free: 122.9 MB / 410.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003458/1.617, allocations: 0.6783 MB / 0.7241 GB, free: 122.9 MB / 410.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04017/1.657, allocations: 20.63 MB / 0.7442 GB, free: 117 MB / 410.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.424e-05/1.657, allocations: 54.08 kB / 0.7443 GB, free: 117 MB / 410.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.768e-05/1.657, allocations: 19.12 kB / 0.7443 GB, free: 117 MB / 410.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.966e-05/1.657, allocations: 17.3 kB / 0.7443 GB, free: 117 MB / 410.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06644/1.724, allocations: 35.75 MB / 0.7792 GB, free: 88.62 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.443e-05/1.724, allocations: 4 kB / 0.7792 GB, free: 88.62 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003206/1.727, allocations: 0.6279 MB / 0.7799 GB, free: 88 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03088/1.758, allocations: 11.52 MB / 0.7911 GB, free: 76.58 MB / 410.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001216/1.759, allocations: 71.98 kB / 0.7912 GB, free: 76.51 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05513/1.814, allocations: 45.17 MB / 0.8353 GB, free: 31.31 MB / 410.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.374e-06/1.814, allocations: 8 kB / 0.8353 GB, free: 31.3 MB / 410.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2216/2.036, allocations: 29.41 MB / 0.864 GB, free: 119.2 MB / 410.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002522/2.038, allocations: 0.6249 MB / 0.8646 GB, free: 119.2 MB / 410.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002521/2.041, allocations: 70.28 kB / 0.8647 GB, free: 119.2 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006272/2.047, allocations: 0.6518 MB / 0.8653 GB, free: 119.2 MB / 410.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001823/2.049, allocations: 298 kB / 0.8656 GB, free: 119.2 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005081/2.049, allocations: 101.7 kB / 0.8657 GB, free: 119.2 MB / 410.8 MB Notification: Performance of sorting global known variables: time 0.007625/2.057, allocations: 3.872 MB / 0.8695 GB, free: 119.1 MB / 410.8 MB Notification: Performance of sort global known variables: time 9e-08/2.057, allocations: 2.969 kB / 0.8695 GB, free: 119.1 MB / 410.8 MB Notification: Performance of remove unused functions: time 0.01256/2.069, allocations: 2.765 MB / 0.8722 GB, free: 119.1 MB / 410.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * 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 (254): * Single equations (assignments): 247 * 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 {(7,66,63.3%), (2,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,37)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001513/2.071, allocations: 327.9 kB / 0.8725 GB, free: 119 MB / 410.8 MB Notification: Performance of simCode: created initialization part: time 0.02139/2.092, allocations: 15.57 MB / 0.8877 GB, free: 114.6 MB / 410.8 MB Notification: Performance of simCode: created event and clocks part: time 1.27e-05/2.092, allocations: 0 / 0.8877 GB, free: 114.6 MB / 410.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01013/2.102, allocations: 6.948 MB / 0.8945 GB, free: 111.8 MB / 410.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006139/2.109, allocations: 0.8556 MB / 0.8953 GB, free: 111.5 MB / 410.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02864/2.137, allocations: 20.88 MB / 0.9157 GB, free: 95.3 MB / 410.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00711/2.144, allocations: 4.82 MB / 0.9204 GB, free: 91.75 MB / 410.8 MB Notification: Performance of simCode: alias equations: time 0.007644/2.152, allocations: 2.974 MB / 0.9233 GB, free: 89.89 MB / 410.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001862/2.154, allocations: 376.8 kB / 0.9237 GB, free: 89.55 MB / 410.8 MB Notification: Performance of SimCode: time 8.61e-07/2.154, allocations: 1.859 kB / 0.9237 GB, free: 89.55 MB / 410.8 MB Notification: Performance of Templates: time 0.2812/2.435, allocations: 123.6 MB / 1.044 GB, free: 104.8 MB / 410.8 MB " [Timeout remaining time 658] 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=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.953124905005097]