Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.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.001282/0.001282, allocations: 80.8 kB / 22.28 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.001443/0.001443, allocations: 165.6 kB / 25.69 MB, free: 8.449 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.9952/0.9952, allocations: 158.6 MB / 187.6 MB, free: 2.801 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.Fourbar1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.064e-06/2.064e-06, allocations: 0 / 251.6 MB, free: 7.223 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.417e-05/2.623e-05, allocations: 2.312 kB / 251.6 MB, free: 7.219 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.01204/0.01206, allocations: 15.16 MB / 266.7 MB, free: 7.992 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.01106/0.02312, allocations: 5.263 MB / 272 MB, free: 2.711 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003122/0.02624, allocations: 139.2 kB / 272.1 MB, free: 2.574 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005781/0.03203, allocations: 4.695 MB / 276.8 MB, free: 13.86 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006287/0.03831, allocations: 2.721 MB / 279.5 MB, free: 11.13 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002226/0.04054, allocations: 1.306 MB / 280.9 MB, free: 9.82 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.009365/0.0499, allocations: 8.462 MB / 289.3 MB, free: 1.344 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006265/0.05617, allocations: 5.041 MB / 294.4 MB, free: 12.2 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006711/0.06288, allocations: 4.776 MB / 299.1 MB, free: 7.414 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004591/0.06747, allocations: 3.519 MB / 302.6 MB, free: 3.887 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00132/0.06879, allocations: 0.5117 MB / 303.2 MB, free: 3.375 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003408/0.0722, allocations: 1.498 MB / 304.7 MB, free: 1.875 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003562/0.07576, allocations: 3.218 MB / 307.9 MB, free: 14.65 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004164/0.07992, allocations: 2.021 MB / 309.9 MB, free: 12.62 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01019/0.09011, allocations: 6.839 MB / 316.7 MB, free: 5.758 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.041e-06/0.09011, allocations: 0 / 316.7 MB, free: 5.758 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.844e-06/0.09012, allocations: 0 / 316.7 MB, free: 5.758 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0002741/0.09039, allocations: 0 / 316.7 MB, free: 5.758 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: 2058 * Number of variables: 2058 Notification: Performance of Generate backend data structure: time 0.01257/0.103, allocations: 7.025 MB / 323.8 MB, free: 14.66 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.905e-05/0.103, allocations: 11.98 kB / 323.8 MB, free: 14.64 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00603/0.109, allocations: 1.569 MB / 325.3 MB, free: 13.07 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006689/0.1157, allocations: 3.349 MB / 328.7 MB, free: 9.625 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003131/0.116, allocations: 337.1 kB / 329 MB, free: 9.293 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000927/0.117, allocations: 472 kB / 329.5 MB, free: 8.832 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01283/0.1298, allocations: 7.044 MB / 336.5 MB, free: 0.8359 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002239/0.13, allocations: 79.39 kB / 336.6 MB, free: 0.7578 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000442/0.1305, allocations: 215.8 kB / 336.8 MB, free: 0.5469 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002075/0.1325, allocations: 2.317 MB / 339.1 MB, free: 14.22 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008602/0.1411, allocations: 3.622 MB / 342.8 MB, free: 10.55 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1785/0.3197, allocations: 43.04 MB / 385.8 MB, free: 42.46 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00695/0.3266, allocations: 2.839 MB / 388.6 MB, free: 42.25 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001198/0.3278, allocations: 0.6415 MB / 389.3 MB, free: 42.2 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008715/0.3365, allocations: 6.306 MB / 395.6 MB, free: 41.36 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.077e-05/0.3366, allocations: 64.5 kB / 395.6 MB, free: 41.32 MB / 330.7 MB Notification: Performance of pre-optimization done (n=237): time 4.158e-06/0.3366, allocations: 0 / 395.6 MB, free: 41.32 MB / 330.7 MB Notification: Performance of matching and sorting (n=347): time 0.1003/0.4369, allocations: 27.91 MB / 423.5 MB, free: 21.84 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.589e-05/0.4369, allocations: 247.7 kB / 423.8 MB, free: 21.55 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004117/0.441, allocations: 4.405 MB / 428.2 MB, free: 17.96 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007438/0.4418, allocations: 80.2 kB / 428.3 MB, free: 17.88 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001467/0.4433, allocations: 4.005 MB / 432.3 MB, free: 14.11 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001306/0.4446, allocations: 1.316 MB / 433.6 MB, free: 12.86 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001628/0.4462, allocations: 1.61 MB / 435.2 MB, free: 11.43 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 3.207e-05/0.4462, allocations: 305.1 kB / 435.5 MB, free: 11.13 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002644/0.4489, allocations: 1.775 MB / 437.3 MB, free: 9.344 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004081/0.4529, allocations: 6.312 MB / 443.6 MB, free: 1.043 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009381/0.4623, allocations: 8.637 MB / 452.2 MB, free: 6.961 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001287/0.4625, allocations: 51.47 kB / 452.3 MB, free: 6.914 MB / 346.7 MB Notification: Performance of matching and sorting (n=1133) (initialization): time 0.03289/0.4954, allocations: 10.62 MB / 462.9 MB, free: 12.86 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.215e-05/0.4954, allocations: 76 kB / 463 MB, free: 12.79 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001445/0.4956, allocations: 164.2 kB / 463.1 MB, free: 12.63 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02019/0.5158, allocations: 9.504 MB / 472.6 MB, free: 3.137 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003921/0.5197, allocations: 1.77 MB / 474.4 MB, free: 1.363 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1739/0.6936, allocations: 18.4 MB / 492.8 MB, free: 97.38 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004377/0.698, allocations: 357.3 kB / 493.2 MB, free: 97.38 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005183/0.6985, allocations: 422.1 kB / 493.6 MB, free: 97.38 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 734 * Number of states: 0 () * Number of discrete variables: 54 (b0.color[3],b0.color[2],b0.color[1],j5.cylinderColor[3],j5.cylinderColor[2],j5.cylinderColor[1],j4.cylinderColor[3],j4.cylinderColor[2],j4.cylinderColor[1],j3.cylinderColor[3],j3.cylinderColor[2],j3.cylinderColor[1],rev1.cylinderColor[3],rev1.cylinderColor[2],rev1.cylinderColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[1],b3.color[3],b3.color[2],b3.color[1],b3.body.sphereColor[3],b3.body.sphereColor[2],b3.body.sphereColor[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.cylinderColor[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]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (934): * Single equations (assignments): 927 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(11,77,47.9%), (5,46,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(5,33)} Notification: Performance of prepare postOptimizeDAE: time 0.001824/0.7003, allocations: 0.7793 MB / 494.3 MB, free: 97.26 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006813/0.701, allocations: 383.5 kB / 494.7 MB, free: 97.26 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02333/0.7244, allocations: 7.172 MB / 0.4901 GB, free: 96.95 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.033e-05/0.7244, allocations: 35.75 kB / 0.4902 GB, free: 96.95 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.286e-05/0.7244, allocations: 23.59 kB / 0.4902 GB, free: 96.95 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.645e-05/0.7245, allocations: 17.69 kB / 0.4902 GB, free: 96.95 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03524/0.7597, allocations: 16.01 MB / 0.5058 GB, free: 95.92 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.819e-05/0.7597, allocations: 7.781 kB / 0.5058 GB, free: 95.92 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001356/0.7611, allocations: 0.5433 MB / 0.5064 GB, free: 95.9 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01589/0.777, allocations: 9.011 MB / 0.5152 GB, free: 95.62 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004842/0.7775, allocations: 71.08 kB / 0.5152 GB, free: 95.57 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02399/0.8014, allocations: 15.1 MB / 0.53 GB, free: 80.77 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.292e-06/0.8015, allocations: 19.59 kB / 0.53 GB, free: 80.76 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02584/0.8273, allocations: 8.727 MB / 0.5385 GB, free: 72 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002132/0.8294, allocations: 1.156 MB / 0.5397 GB, free: 71.12 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005069/0.8299, allocations: 74.95 kB / 0.5397 GB, free: 71.05 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001495/0.8314, allocations: 71.98 kB / 0.5398 GB, free: 70.98 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001161/0.8326, allocations: 306.1 kB / 0.5401 GB, free: 70.69 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002177/0.8328, allocations: 75.98 kB / 0.5402 GB, free: 70.61 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001557/0.8344, allocations: 1.727 MB / 0.5418 GB, free: 69.11 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.8344, allocations: 0 / 0.5418 GB, free: 69.11 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00564/0.84, allocations: 2.473 MB / 0.5443 GB, free: 66.64 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 41 * Number of states: 2 (j1.phi,j1.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 (167): * Single equations (assignments): 160 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(13,68,39.6%), (7,42,69.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(5,33)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004959/0.8405, allocations: 226.3 kB / 0.5445 GB, free: 66.45 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.008043/0.8485, allocations: 6.42 MB / 0.5507 GB, free: 60.56 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 0.000151/0.8487, allocations: 114 kB / 0.5509 GB, free: 60.45 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004753/0.8534, allocations: 3.117 MB / 0.5539 GB, free: 57.4 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002861/0.8563, allocations: 0.9613 MB / 0.5548 GB, free: 56.47 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01202/0.8683, allocations: 13.27 MB / 0.5678 GB, free: 43.09 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001343/0.8697, allocations: 1.952 MB / 0.5697 GB, free: 41.11 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001286/0.871, allocations: 0.6596 MB / 0.5703 GB, free: 40.45 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009493/0.8719, allocations: 0.7276 MB / 0.5711 GB, free: 39.72 MB / 378.7 MB Notification: Performance of SimCode: time 1.513e-06/0.8719, allocations: 0 / 0.5711 GB, free: 39.72 MB / 378.7 MB Notification: Performance of Templates: time 0.2367/1.109, allocations: 137.5 MB / 0.7053 GB, free: 53.04 MB / 394.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1 -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar1/Fourbar1.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: 5.526491661090404]