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.001037/0.001037, allocations: 80.92 kB / 22.29 MB, free: 2.207 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.001032/0.001032, allocations: 166.4 kB / 25.7 MB, free: 8.406 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.8052/0.8052, allocations: 158.6 MB / 187.6 MB, free: 2.777 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.293e-06/1.293e-06, allocations: 0 / 251.5 MB, free: 7.277 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.726e-05/1.856e-05, allocations: 6.25 kB / 251.5 MB, free: 7.27 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.01721/0.01723, allocations: 17.44 MB / 269 MB, free: 5.75 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.01358/0.03081, allocations: 6.331 MB / 275.3 MB, free: 15.39 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002987/0.0338, allocations: 171.1 kB / 275.5 MB, free: 15.22 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008801/0.0426, allocations: 6.744 MB / 282.2 MB, free: 8.457 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006/0.0486, allocations: 3.126 MB / 285.3 MB, free: 5.316 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003786/0.05238, allocations: 2.526 MB / 287.9 MB, free: 2.785 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.01084/0.06322, allocations: 10.1 MB / 298 MB, free: 8.68 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008819/0.07204, allocations: 7.628 MB / 305.6 MB, free: 0.9258 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008655/0.0807, allocations: 6.153 MB / 311.7 MB, free: 10.76 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006294/0.08699, allocations: 4.607 MB / 316.4 MB, free: 6.145 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001678/0.08867, allocations: 0.7383 MB / 317.1 MB, free: 5.406 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003314/0.09198, allocations: 1.869 MB / 319 MB, free: 3.535 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003678/0.09566, allocations: 4.154 MB / 323.1 MB, free: 15.37 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003261/0.09892, allocations: 2.614 MB / 325.7 MB, free: 12.75 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00901/0.1079, allocations: 8.48 MB / 334.2 MB, free: 4.242 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.1079, allocations: 4 kB / 334.2 MB, free: 4.238 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.183e-06/0.1079, allocations: 0 / 334.2 MB, free: 4.238 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001002/0.108, allocations: 0 / 334.2 MB, free: 4.238 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: 2349 * Number of variables: 2349 Notification: Performance of Generate backend data structure: time 0.0083/0.1163, allocations: 8.247 MB / 342.5 MB, free: 11.91 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.057e-05/0.1164, allocations: 11.98 kB / 342.5 MB, free: 11.9 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005839/0.1222, allocations: 2.034 MB / 344.5 MB, free: 9.867 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00474/0.1269, allocations: 4.227 MB / 348.7 MB, free: 5.547 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001924/0.1271, allocations: 439.7 kB / 349.2 MB, free: 5.117 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006312/0.1278, allocations: 0.5821 MB / 349.7 MB, free: 4.535 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1745/0.3023, allocations: 8.297 MB / 358 MB, free: 90.34 MB / 330.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001598/0.3025, allocations: 77.81 kB / 358.1 MB, free: 90.34 MB / 330.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004205/0.3029, allocations: 268.1 kB / 358.4 MB, free: 90.34 MB / 330.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001603/0.3045, allocations: 2.321 MB / 360.7 MB, free: 90.33 MB / 330.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006831/0.3113, allocations: 4.071 MB / 364.8 MB, free: 90.12 MB / 330.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0274/0.3387, allocations: 47.95 MB / 412.7 MB, free: 45.1 MB / 330.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006222/0.345, allocations: 3.042 MB / 415.8 MB, free: 42.1 MB / 330.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007116/0.3457, allocations: 0.6652 MB / 416.4 MB, free: 41.42 MB / 330.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007294/0.353, allocations: 6.82 MB / 423.2 MB, free: 34.73 MB / 330.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.735e-05/0.353, allocations: 56.5 kB / 423.3 MB, free: 34.67 MB / 330.8 MB Notification: Performance of pre-optimization done (n=227): time 3.607e-06/0.353, allocations: 0 / 423.3 MB, free: 34.67 MB / 330.8 MB Notification: Performance of matching and sorting (n=276): time 0.04017/0.3932, allocations: 17.7 MB / 441 MB, free: 17.68 MB / 330.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.169e-05/0.3932, allocations: 360.1 kB / 441.4 MB, free: 17.25 MB / 330.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002945/0.3962, allocations: 5.123 MB / 446.5 MB, free: 12.15 MB / 330.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0001385/0.3963, allocations: 61.7 kB / 446.5 MB, free: 12.09 MB / 330.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.001016/0.3973, allocations: 4.642 MB / 451.2 MB, free: 7.414 MB / 330.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004139/0.3977, allocations: 1.089 MB / 452.3 MB, free: 6.316 MB / 330.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001128/0.3989, allocations: 1.73 MB / 454 MB, free: 4.574 MB / 330.8 MB Notification: Performance of setup shared object (initialization): time 2.051e-05/0.3989, allocations: 305.1 kB / 454.3 MB, free: 4.273 MB / 330.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001573/0.4004, allocations: 1.19 MB / 455.5 MB, free: 3.074 MB / 330.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003443/0.4039, allocations: 6.503 MB / 462 MB, free: 9.91 MB / 346.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005646/0.4095, allocations: 8.262 MB / 470.3 MB, free: 15.05 MB / 362.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.877e-05/0.4096, allocations: 52 kB / 470.3 MB, free: 15 MB / 362.8 MB Notification: Performance of matching and sorting (n=1180) (initialization): time 0.007868/0.4174, allocations: 6.747 MB / 477.1 MB, free: 8.199 MB / 362.8 MB Notification: Performance of prepare postOptimizeDAE: time 6.517e-05/0.4175, allocations: 80.97 kB / 477.1 MB, free: 8.121 MB / 362.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001025/0.4176, allocations: 188 kB / 477.3 MB, free: 7.938 MB / 362.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00302/0.4206, allocations: 1.447 MB / 478.8 MB, free: 6.48 MB / 362.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003371/0.424, allocations: 1.996 MB / 480.8 MB, free: 4.48 MB / 362.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006818/0.4308, allocations: 6.728 MB / 487.5 MB, free: 13.45 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00328/0.4341, allocations: 391.6 kB / 487.9 MB, free: 13.07 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003959/0.4345, allocations: 452 kB / 488.3 MB, free: 12.63 MB / 378.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.001514/0.436, allocations: 0.8487 MB / 489.2 MB, free: 11.77 MB / 378.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005482/0.4366, allocations: 375.5 kB / 489.5 MB, free: 11.4 MB / 378.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003399/0.44, allocations: 2.27 MB / 491.8 MB, free: 9.098 MB / 378.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.399e-05/0.44, allocations: 35.94 kB / 491.8 MB, free: 9.062 MB / 378.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.298e-06/0.44, allocations: 7.984 kB / 491.8 MB, free: 9.055 MB / 378.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.5e-05/0.44, allocations: 11.95 kB / 491.8 MB, free: 9.043 MB / 378.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009709/0.4497, allocations: 8.334 MB / 0.4885 GB, free: 328 kB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.492e-05/0.4497, allocations: 27.88 kB / 0.4885 GB, free: 300 kB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.1137/0.5634, allocations: 382.5 kB / 0.4889 GB, free: 115.6 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003773/0.5672, allocations: 1.419 MB / 0.4902 GB, free: 115.6 MB / 378.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002679/0.5675, allocations: 67.92 kB / 0.4903 GB, free: 115.6 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005134/0.5726, allocations: 6.595 MB / 0.4967 GB, free: 111.6 MB / 378.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-05/0.5726, allocations: 30.38 kB / 0.4968 GB, free: 111.6 MB / 378.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004819/0.5775, allocations: 3.776 MB / 0.5005 GB, free: 109.8 MB / 378.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0018/0.5793, allocations: 0.7892 MB / 0.5012 GB, free: 109.8 MB / 378.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005713/0.5798, allocations: 75.58 kB / 0.5013 GB, free: 109.8 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00145/0.5813, allocations: 82.03 kB / 0.5014 GB, free: 109.8 MB / 378.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003186/0.5816, allocations: 241.5 kB / 0.5016 GB, free: 109.8 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000119/0.5817, allocations: 83.3 kB / 0.5017 GB, free: 109.8 MB / 378.8 MB Notification: Performance of sorting global known variables: time 0.002042/0.5838, allocations: 2.033 MB / 0.5037 GB, free: 109.7 MB / 378.8 MB Notification: Performance of sort global known variables: time 3e-07/0.5838, allocations: 0 / 0.5037 GB, free: 109.7 MB / 378.8 MB Notification: Performance of remove unused functions: time 0.005528/0.5893, allocations: 1.906 MB / 0.5055 GB, free: 109.7 MB / 378.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.0006409/0.5899, allocations: 305.8 kB / 0.5058 GB, free: 109.6 MB / 378.8 MB Notification: Performance of simCode: created initialization part: time 0.004876/0.5948, allocations: 4.259 MB / 0.51 GB, free: 108.9 MB / 378.8 MB Notification: Performance of simCode: created event and clocks part: time 0.0001866/0.595, allocations: 124.7 kB / 0.5101 GB, free: 108.9 MB / 378.8 MB Notification: Performance of simCode: created simulation system equations: time 0.001359/0.5963, allocations: 1.36 MB / 0.5114 GB, free: 108.4 MB / 378.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003473/0.5998, allocations: 1.18 MB / 0.5126 GB, free: 108.3 MB / 378.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0141/0.6139, allocations: 13.05 MB / 0.5253 GB, free: 98.95 MB / 378.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001863/0.6158, allocations: 2.139 MB / 0.5274 GB, free: 97.41 MB / 378.8 MB Notification: Performance of simCode: alias equations: time 0.002086/0.6179, allocations: 0.7777 MB / 0.5282 GB, free: 96.88 MB / 378.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001373/0.6192, allocations: 0.9091 MB / 0.5291 GB, free: 96.04 MB / 378.8 MB Notification: Performance of SimCode: time 1.513e-06/0.6192, allocations: 0 / 0.5291 GB, free: 96.04 MB / 378.8 MB Notification: Performance of Templates: time 0.07843/0.6977, allocations: 69.91 MB / 0.5973 GB, free: 27.34 MB / 378.8 MB " [Timeout remaining time 659] 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=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe 2>&1) [Timeout 240] 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","",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.712379677221179]