Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.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.002082/0.002082, allocations: 81.58 kB / 20.68 MB, free: 1.023 MB / 14.72 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.002374/0.002374, allocations: 151.1 kB / 23.94 MB, free: 4.164 MB / 14.72 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.417/1.417, allocations: 173.3 MB / 200.4 MB, free: 12.89 MB / 190.1 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.Fourbar1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.373e-06/1.373e-06, allocations: 3.938 kB / 318.9 MB, free: 3.562 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.32e-05/2.458e-05, allocations: 2.281 kB / 318.9 MB, free: 3.559 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.0159/0.01593, allocations: 13.79 MB / 332.7 MB, free: 10.59 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01279/0.02872, allocations: 4.942 MB / 337.7 MB, free: 7.152 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003442/0.03216, allocations: 136.2 kB / 337.8 MB, free: 7.105 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009812/0.04197, allocations: 4.557 MB / 342.4 MB, free: 4.109 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008457/0.05043, allocations: 2.701 MB / 345.1 MB, free: 1.5 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003047/0.05348, allocations: 1.271 MB / 346.3 MB, free: 232 kB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01295/0.06643, allocations: 8.964 MB / 355.3 MB, free: 7.242 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006856/0.07328, allocations: 5.062 MB / 360.4 MB, free: 2.098 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006643/0.07992, allocations: 3.812 MB / 364.2 MB, free: 14.28 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006344/0.08627, allocations: 3.753 MB / 367.9 MB, free: 10.52 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001071/0.08734, allocations: 0.5195 MB / 368.4 MB, free: 9.996 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002947/0.09029, allocations: 1.467 MB / 369.9 MB, free: 8.527 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003608/0.09389, allocations: 3.202 MB / 373.1 MB, free: 5.316 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003615/0.09751, allocations: 2.014 MB / 375.1 MB, free: 3.297 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01276/0.1103, allocations: 10.58 MB / 385.7 MB, free: 8.684 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.101e-06/0.1103, allocations: 0 / 385.7 MB, free: 8.684 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.1103, allocations: 4 kB / 385.7 MB, free: 8.68 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002517/0.1105, allocations: 0 / 385.7 MB, free: 8.68 MB / 350.1 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.01871/0.1292, allocations: 7.82 MB / 393.5 MB, free: 0.7812 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.909e-05/0.1293, allocations: 12.86 kB / 393.5 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01575/0.145, allocations: 3.343 MB / 396.9 MB, free: 13.42 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01077/0.1558, allocations: 4.665 MB / 401.5 MB, free: 8.668 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003053/0.1561, allocations: 337.1 kB / 401.9 MB, free: 8.336 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001104/0.1572, allocations: 464 kB / 402.3 MB, free: 7.883 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02906/0.1863, allocations: 14.65 MB / 417 MB, free: 8.281 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002152/0.1865, allocations: 83.41 kB / 417.1 MB, free: 8.199 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007172/0.1872, allocations: 215.8 kB / 417.3 MB, free: 7.988 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006042/0.1933, allocations: 2.832 MB / 420.1 MB, free: 5.148 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02828/0.2215, allocations: 13.17 MB / 433.3 MB, free: 7.957 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.227/0.4486, allocations: 54.41 MB / 487.7 MB, free: 93.6 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01716/0.4657, allocations: 7.106 MB / 494.8 MB, free: 92.82 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004928/0.4707, allocations: 4.588 MB / 499.4 MB, free: 91.16 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01546/0.4861, allocations: 11.84 MB / 0.4992 GB, free: 86.48 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.994e-05/0.4862, allocations: 64.67 kB / 0.4993 GB, free: 86.41 MB / 430.1 MB Notification: Performance of pre-optimization done (n=326): time 7.404e-06/0.4862, allocations: 1.312 kB / 0.4993 GB, free: 86.41 MB / 430.1 MB Notification: Performance of matching and sorting (n=572): time 1.994/2.48, allocations: 413.7 MB / 0.9033 GB, free: 93.34 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.124e-05/2.48, allocations: 265.7 kB / 0.9035 GB, free: 93.03 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005611/2.485, allocations: 5.229 MB / 0.9086 GB, free: 88.2 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001668/2.487, allocations: 113.7 kB / 0.9088 GB, free: 88.09 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00155/2.489, allocations: 4.09 MB / 0.9127 GB, free: 84.93 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002039/2.491, allocations: 2.066 MB / 0.9148 GB, free: 82.9 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003644/2.494, allocations: 2.168 MB / 0.9169 GB, free: 80.72 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 4.366e-05/2.494, allocations: 301.1 kB / 0.9172 GB, free: 80.42 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01208/2.506, allocations: 11.07 MB / 0.928 GB, free: 69.34 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01434/2.521, allocations: 15.31 MB / 0.9429 GB, free: 52.05 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02885/2.55, allocations: 27.46 MB / 0.9697 GB, free: 22.77 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001084/2.55, allocations: 40 kB / 0.9698 GB, free: 22.73 MB / 478.1 MB Notification: Performance of matching and sorting (n=1259) (initialization): time 0.5048/3.054, allocations: 140.7 MB / 1.107 GB, free: 48.34 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.456e-05/3.055, allocations: 64 kB / 1.107 GB, free: 48.28 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001126/3.055, allocations: 140 kB / 1.107 GB, free: 48.14 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0802/3.135, allocations: 34.67 MB / 1.141 GB, free: 13.52 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.1705/3.305, allocations: 1.565 MB / 1.143 GB, free: 144.4 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4258/3.731, allocations: 201 MB / 1.339 GB, free: 125.3 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01301/3.744, allocations: 1.807 MB / 1.341 GB, free: 125.2 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001841/3.746, allocations: 0.5375 MB / 1.341 GB, free: 125.1 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 632 * 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 (840): * Single equations (assignments): 833 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(20,164,40.5%), (16,102,51.6%), (2,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(12,76)} Notification: Performance of prepare postOptimizeDAE: time 0.005737/3.752, allocations: 3.094 MB / 1.344 GB, free: 123.9 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001842/3.754, allocations: 0.5434 MB / 1.345 GB, free: 123.9 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3083/4.062, allocations: 136.3 MB / 1.478 GB, free: 11.52 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.494e-05/4.062, allocations: 57.33 kB / 1.478 GB, free: 11.47 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001454/4.062, allocations: 60 kB / 1.478 GB, free: 11.41 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001064/4.062, allocations: 23.91 kB / 1.478 GB, free: 11.39 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.7265/4.789, allocations: 201.7 MB / 1.675 GB, free: 142.8 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.844e-05/4.789, allocations: 6.5 kB / 1.675 GB, free: 142.8 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001539/4.79, allocations: 335.8 kB / 1.675 GB, free: 142.8 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.07461/4.865, allocations: 33.41 MB / 1.708 GB, free: 141.6 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001522/4.867, allocations: 95.12 kB / 1.708 GB, free: 141.5 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4274/5.294, allocations: 183.8 MB / 1.888 GB, free: 136.9 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.253e-06/5.294, allocations: 9.422 kB / 1.888 GB, free: 136.9 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5059/5.8, allocations: 152.2 MB / 2.036 GB, free: 141 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002194/5.802, allocations: 0.575 MB / 2.037 GB, free: 141 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003122/5.805, allocations: 103.5 kB / 2.037 GB, free: 140.9 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009987/5.815, allocations: 1.556 MB / 2.038 GB, free: 140.9 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004032/5.819, allocations: 0.5207 MB / 2.039 GB, free: 140.8 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008749/5.82, allocations: 149.2 kB / 2.039 GB, free: 140.7 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.004066/5.824, allocations: 3.158 MB / 2.042 GB, free: 139.7 MB / 494.1 MB Notification: Performance of sort global known variables: time 6e-08/5.824, allocations: 0 / 2.042 GB, free: 139.7 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.01391/5.838, allocations: 4.117 MB / 2.046 GB, free: 139.4 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * 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 (165): * Single equations (assignments): 158 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(20,157,40.5%), (16,99,51.6%), (2,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(12,86)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001552/5.84, allocations: 264.7 kB / 2.046 GB, free: 139.2 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.05197/5.892, allocations: 32.74 MB / 2.078 GB, free: 124.8 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.485e-05/5.892, allocations: 4 kB / 2.078 GB, free: 124.8 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0379/5.929, allocations: 19.56 MB / 2.097 GB, free: 109.4 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006188/5.936, allocations: 0.6963 MB / 2.098 GB, free: 108.8 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03602/5.972, allocations: 27.32 MB / 2.125 GB, free: 81.41 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00599/5.978, allocations: 4.61 MB / 2.129 GB, free: 76.78 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004166/5.982, allocations: 1.995 MB / 2.131 GB, free: 74.81 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009464/5.983, allocations: 292.4 kB / 2.132 GB, free: 74.53 MB / 494.1 MB Notification: Performance of SimCode: time 1.102e-06/5.983, allocations: 0 / 2.132 GB, free: 74.53 MB / 494.1 MB Notification: Performance of Templates: time 0.6184/6.601, allocations: 282.7 MB / 2.408 GB, free: 129.4 MB / 494.1 MB " [Timeout remaining time 653] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar1/Fourbar1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.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: 16.01516928896308]