Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.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.001687/0.001687, allocations: 103.6 kB / 21.18 MB, free: 332 kB / 14.72 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.002438/0.002438, allocations: 212 kB / 24.47 MB, free: 3.547 MB / 14.72 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 1.521/1.521, allocations: 207.7 MB / 235.3 MB, free: 9.809 MB / 190.1 MB " [Timeout remaining time 178] 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.Fourbar_analytic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic") [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00192/0.00192, allocations: 51.92 kB / 347.7 MB, free: 9.383 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3088/0.3107, allocations: 49.15 MB / 396.8 MB, free: 9.395 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic): time 0.01549/0.3262, allocations: 11.82 MB / 408.7 MB, free: 1.711 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01357/0.3397, allocations: 4.643 MB / 413.3 MB, free: 14.73 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004722/0.3445, allocations: 102.7 kB / 413.4 MB, free: 14.7 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01006/0.3545, allocations: 4.079 MB / 417.5 MB, free: 12.1 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008456/0.363, allocations: 2.218 MB / 419.7 MB, free: 10.52 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003698/0.3667, allocations: 1.115 MB / 420.8 MB, free: 9.75 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01022/0.3769, allocations: 5.639 MB / 426.5 MB, free: 5.539 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007537/0.3844, allocations: 4.06 MB / 430.5 MB, free: 1.414 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005191/0.3896, allocations: 2.204 MB / 432.7 MB, free: 15.2 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006468/0.3961, allocations: 2.885 MB / 435.6 MB, free: 12.31 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001882/0.398, allocations: 0.4922 MB / 436.1 MB, free: 11.82 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004376/0.4024, allocations: 1.529 MB / 437.6 MB, free: 10.29 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004033/0.4064, allocations: 2.669 MB / 440.3 MB, free: 7.609 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005585/0.412, allocations: 2.187 MB / 442.5 MB, free: 5.41 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01511/0.4271, allocations: 9.617 MB / 452.1 MB, free: 11.76 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.432e-06/0.4271, allocations: 0 / 452.1 MB, free: 11.76 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.274e-06/0.4271, allocations: 0 / 452.1 MB, free: 11.76 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003943/0.4275, allocations: 0 / 452.1 MB, free: 11.76 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1743 * Number of variables: 1743 Notification: Performance of Generate backend data structure: time 0.01815/0.4456, allocations: 6.124 MB / 458.2 MB, free: 5.57 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.39e-05/0.4457, allocations: 11.98 kB / 458.2 MB, free: 5.559 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0115/0.4572, allocations: 2.575 MB / 460.8 MB, free: 2.977 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01013/0.4673, allocations: 3.855 MB / 464.7 MB, free: 15.07 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002756/0.4676, allocations: 308.3 kB / 465 MB, free: 14.76 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001221/0.4688, allocations: 443.7 kB / 465.4 MB, free: 14.33 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02475/0.4936, allocations: 12.48 MB / 477.9 MB, free: 1.09 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001846/0.4937, allocations: 55.58 kB / 477.9 MB, free: 1.035 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006211/0.4944, allocations: 187.9 kB / 478.1 MB, free: 0.8516 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003527/0.4979, allocations: 2.035 MB / 480.2 MB, free: 14.81 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02462/0.5225, allocations: 10.55 MB / 490.7 MB, free: 4.258 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06464/0.5871, allocations: 40.64 MB / 0.5189 GB, free: 10.46 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01395/0.6011, allocations: 4.241 MB / 0.523 GB, free: 6.188 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003013/0.6041, allocations: 1.882 MB / 0.5249 GB, free: 4.293 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01185/0.616, allocations: 5.699 MB / 0.5304 GB, free: 14.56 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.076e-05/0.616, allocations: 55.5 kB / 0.5305 GB, free: 14.5 MB / 462.1 MB Notification: Performance of pre-optimization done (n=179): time 6.743e-06/0.616, allocations: 0 / 0.5305 GB, free: 14.5 MB / 462.1 MB Notification: Performance of matching and sorting (n=223): time 0.07195/0.688, allocations: 19.82 MB / 0.5498 GB, free: 10.65 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001403/0.6881, allocations: 205.9 kB / 0.55 GB, free: 10.41 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00653/0.6947, allocations: 4.323 MB / 0.5543 GB, free: 6.059 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005558/0.6952, allocations: 61.7 kB / 0.5543 GB, free: 5.992 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003116/0.6983, allocations: 3.678 MB / 0.5579 GB, free: 2.281 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001282/0.6996, allocations: 0.876 MB / 0.5588 GB, free: 1.398 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001939/0.7016, allocations: 1.354 MB / 0.5601 GB, free: 36 kB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.2079/0.9094, allocations: 301.1 kB / 0.5604 GB, free: 143.8 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005179/0.9146, allocations: 2.361 MB / 0.5627 GB, free: 143.7 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006526/0.9211, allocations: 6.216 MB / 0.5688 GB, free: 137.8 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01275/0.9339, allocations: 9.177 MB / 0.5777 GB, free: 130.4 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002826/0.9341, allocations: 37.72 kB / 0.5778 GB, free: 130.4 MB / 478.1 MB Notification: Performance of matching and sorting (n=868) (initialization): time 0.02159/0.9557, allocations: 9.514 MB / 0.587 GB, free: 127.1 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000175/0.9559, allocations: 64.75 kB / 0.5871 GB, free: 127.1 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002819/0.9562, allocations: 136.9 kB / 0.5872 GB, free: 127.1 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004006/0.9602, allocations: 1.372 MB / 0.5886 GB, free: 126.8 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004621/0.9648, allocations: 1.479 MB / 0.59 GB, free: 126.6 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01012/0.9749, allocations: 8.223 MB / 0.5981 GB, free: 122 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005114/0.9801, allocations: 360.8 kB / 0.5984 GB, free: 121.7 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009403/0.981, allocations: 387.7 kB / 0.5988 GB, free: 121.3 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 605 * Number of states: 0 () * Number of discrete variables: 46 (jointSSP.prismatic.positiveBranch,b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],jointSSP.rod2Color[3],jointSSP.rod2Color[2],jointSSP.rod2Color[1],jointSSP.sphereColor[3],jointSSP.sphereColor[2],jointSSP.sphereColor[1],jointSSP.rod1Color[3],jointSSP.rod1Color[2],jointSSP.rod1Color[1],jointSSP.rod1.massColor[3],jointSSP.rod1.massColor[2],jointSSP.rod1.massColor[1],jointSSP.boxColor[3],jointSSP.boxColor[2],jointSSP.boxColor[1],b3.color[3],b3.color[2],b3.color[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.cylinderColor[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],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (804): * Single equations (assignments): 800 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,40,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00402/0.985, allocations: 2.491 MB / 0.6012 GB, free: 119.2 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000813/0.9858, allocations: 389.9 kB / 0.6016 GB, free: 119 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006997/0.9928, allocations: 4.08 MB / 0.6056 GB, free: 115.2 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.005e-05/0.9929, allocations: 24 kB / 0.6056 GB, free: 115.2 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.081e-05/0.9929, allocations: 11.61 kB / 0.6056 GB, free: 115.2 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.19e-05/0.9929, allocations: 13.45 kB / 0.6056 GB, free: 115.2 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0159/1.009, allocations: 8.613 MB / 0.614 GB, free: 106.6 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.19e-05/1.009, allocations: 8 kB / 0.614 GB, free: 106.6 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001366/1.01, allocations: 332.1 kB / 0.6143 GB, free: 106.3 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003329/1.014, allocations: 1.152 MB / 0.6155 GB, free: 105.1 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000214/1.014, allocations: 36 kB / 0.6155 GB, free: 105.1 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007959/1.022, allocations: 6.938 MB / 0.6223 GB, free: 98.11 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.569e-06/1.022, allocations: 7.938 kB / 0.6223 GB, free: 98.1 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009622/1.031, allocations: 6.875 MB / 0.629 GB, free: 91.37 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001894/1.033, allocations: 0.6367 MB / 0.6296 GB, free: 90.76 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004654/1.034, allocations: 40 kB / 0.6297 GB, free: 90.72 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001513/1.035, allocations: 111.9 kB / 0.6298 GB, free: 90.61 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003259/1.035, allocations: 152.9 kB / 0.6299 GB, free: 90.46 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001388/1.036, allocations: 67.98 kB / 0.63 GB, free: 90.4 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.002997/1.039, allocations: 2.535 MB / 0.6324 GB, free: 87.85 MB / 478.1 MB Notification: Performance of sort global known variables: time 9.1e-08/1.039, allocations: 0 / 0.6324 GB, free: 87.85 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.005477/1.044, allocations: 1.21 MB / 0.6336 GB, free: 86.65 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * 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 (173): * Single equations (assignments): 169 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,30,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000544/1.045, allocations: 234.3 kB / 0.6339 GB, free: 86.43 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.007465/1.052, allocations: 5.524 MB / 0.6392 GB, free: 80.92 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.031e-05/1.052, allocations: 4.312 kB / 0.6393 GB, free: 80.91 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002093/1.054, allocations: 1.738 MB / 0.6409 GB, free: 79.16 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002833/1.057, allocations: 491.1 kB / 0.6414 GB, free: 78.69 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01638/1.073, allocations: 11.32 MB / 0.6525 GB, free: 67.27 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003438/1.077, allocations: 3.357 MB / 0.6557 GB, free: 63.88 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.004019/1.081, allocations: 1.896 MB / 0.6576 GB, free: 61.97 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007679/1.082, allocations: 259.4 kB / 0.6578 GB, free: 61.72 MB / 478.1 MB Notification: Performance of SimCode: time 1.383e-06/1.082, allocations: 0 / 0.6578 GB, free: 61.72 MB / 478.1 MB Notification: Performance of Templates: time 0.0709/1.153, allocations: 43.91 MB / 0.7007 GB, free: 17.76 MB / 478.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar_analytic/Fourbar_analytic.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.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: 7.323758693411946]