Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001401/0.001401, allocations: 111.1 kB / 20.44 MB, free: 1.176 MB / 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.001787/0.001787, allocations: 202.9 kB / 23.73 MB, free: 4.379 MB / 14.72 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.493/1.493, allocations: 230.6 MB / 257.5 MB, free: 7.785 MB / 206.1 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.Fourbar_analytic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_4.1.0_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_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001582/0.001582, allocations: 55.92 kB / 378.2 MB, free: 2.461 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2961/0.2977, allocations: 53.35 MB / 431.6 MB, free: 6.738 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic): time 0.01604/0.3137, allocations: 11.75 MB / 443.3 MB, free: 10.94 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01151/0.3252, allocations: 4.655 MB / 448 MB, free: 6.27 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002788/0.328, allocations: 107.4 kB / 448.1 MB, free: 6.164 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008343/0.3363, allocations: 4.058 MB / 452.1 MB, free: 2.094 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006201/0.3425, allocations: 2.183 MB / 454.3 MB, free: 15.9 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002807/0.3453, allocations: 1.111 MB / 455.4 MB, free: 14.79 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.009459/0.3548, allocations: 6.067 MB / 461.5 MB, free: 8.715 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005869/0.3607, allocations: 4.065 MB / 465.6 MB, free: 4.582 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004367/0.365, allocations: 2.185 MB / 467.8 MB, free: 2.391 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005437/0.3705, allocations: 3.085 MB / 470.8 MB, free: 15.3 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001689/0.3722, allocations: 0.4922 MB / 471.3 MB, free: 14.8 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004046/0.3762, allocations: 1.529 MB / 472.9 MB, free: 13.27 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004333/0.3805, allocations: 2.649 MB / 475.5 MB, free: 10.62 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005291/0.3858, allocations: 2.164 MB / 477.7 MB, free: 8.441 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01352/0.3994, allocations: 9.574 MB / 487.2 MB, free: 14.83 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.865e-06/0.3994, allocations: 0 / 487.2 MB, free: 14.83 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.565e-06/0.3994, allocations: 0 / 487.2 MB, free: 14.83 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003144/0.3997, allocations: 0 / 487.2 MB, free: 14.83 MB / 398.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.01464/0.4143, allocations: 6.093 MB / 493.3 MB, free: 8.672 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.239e-05/0.4144, allocations: 12.03 kB / 493.4 MB, free: 8.66 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0118/0.4262, allocations: 2.575 MB / 495.9 MB, free: 6.078 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01077/0.4369, allocations: 3.69 MB / 499.6 MB, free: 2.336 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003422/0.4373, allocations: 308.2 kB / 499.9 MB, free: 2.031 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001941/0.4392, allocations: 439.7 kB / 0.4886 GB, free: 1.602 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02737/0.4666, allocations: 12.49 MB / 0.5008 GB, free: 4.348 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000179/0.4668, allocations: 55.52 kB / 0.5009 GB, free: 4.293 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000588/0.4674, allocations: 187.9 kB / 0.5011 GB, free: 4.109 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003433/0.4708, allocations: 2.027 MB / 0.503 GB, free: 2.078 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02369/0.4945, allocations: 10.55 MB / 0.5133 GB, free: 7.508 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.323/0.8175, allocations: 40.64 MB / 0.553 GB, free: 71.81 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01185/0.8293, allocations: 4.245 MB / 0.5572 GB, free: 71.32 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002286/0.8316, allocations: 1.88 MB / 0.559 GB, free: 70.55 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01149/0.8431, allocations: 5.697 MB / 0.5646 GB, free: 68.16 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.173e-05/0.8432, allocations: 61.38 kB / 0.5646 GB, free: 68.11 MB / 446.1 MB Notification: Performance of pre-optimization done (n=179): time 5.01e-06/0.8432, allocations: 0 / 0.5646 GB, free: 68.11 MB / 446.1 MB Notification: Performance of matching and sorting (n=223): time 0.06073/0.9039, allocations: 19.67 MB / 0.5838 GB, free: 52.84 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.477e-05/0.904, allocations: 205.2 kB / 0.584 GB, free: 52.6 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004828/0.9088, allocations: 4.287 MB / 0.5882 GB, free: 48.44 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004192/0.9092, allocations: 57.7 kB / 0.5883 GB, free: 48.38 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001715/0.9109, allocations: 3.681 MB / 0.5919 GB, free: 44.92 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007417/0.9117, allocations: 0.8789 MB / 0.5927 GB, free: 44.05 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001365/0.913, allocations: 1.346 MB / 0.594 GB, free: 42.7 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.157e-05/0.9131, allocations: 301.1 kB / 0.5943 GB, free: 42.4 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002685/0.9158, allocations: 2.367 MB / 0.5966 GB, free: 40.03 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004035/0.9198, allocations: 6.219 MB / 0.6027 GB, free: 31.98 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007548/0.9273, allocations: 9.171 MB / 0.6117 GB, free: 20.98 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.718e-05/0.9274, allocations: 36 kB / 0.6117 GB, free: 20.95 MB / 446.1 MB Notification: Performance of matching and sorting (n=868) (initialization): time 0.01546/0.9429, allocations: 9.532 MB / 0.621 GB, free: 11.41 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.854e-05/0.943, allocations: 64.88 kB / 0.6211 GB, free: 11.34 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000162/0.9431, allocations: 132 kB / 0.6212 GB, free: 11.21 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003919/0.9471, allocations: 1.37 MB / 0.6225 GB, free: 9.84 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004305/0.9514, allocations: 1.477 MB / 0.624 GB, free: 8.363 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009839/0.9612, allocations: 8.243 MB / 0.632 GB, free: 28 kB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005239/0.9664, allocations: 357.4 kB / 0.6324 GB, free: 15.7 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009068/0.9673, allocations: 388 kB / 0.6327 GB, free: 15.32 MB / 462.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.004262/0.9716, allocations: 2.485 MB / 0.6352 GB, free: 12.82 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007959/0.9724, allocations: 397.3 kB / 0.6356 GB, free: 12.43 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00879/0.9812, allocations: 4.079 MB / 0.6395 GB, free: 8.336 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.508e-05/0.9812, allocations: 20 kB / 0.6396 GB, free: 8.316 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.699e-05/0.9812, allocations: 11.98 kB / 0.6396 GB, free: 8.305 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.207e-05/0.9813, allocations: 11.97 kB / 0.6396 GB, free: 8.293 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01966/1.001, allocations: 8.614 MB / 0.648 GB, free: 15.61 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.561e-05/1.001, allocations: 4 kB / 0.648 GB, free: 15.6 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001577/1.003, allocations: 329.1 kB / 0.6483 GB, free: 15.28 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004123/1.007, allocations: 1.162 MB / 0.6494 GB, free: 14.12 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002417/1.007, allocations: 44 kB / 0.6495 GB, free: 14.07 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0112/1.018, allocations: 6.94 MB / 0.6563 GB, free: 7.031 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.524e-06/1.018, allocations: 8 kB / 0.6563 GB, free: 7.023 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01299/1.031, allocations: 6.888 MB / 0.663 GB, free: 56 kB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001439/1.033, allocations: 357.4 kB / 0.6633 GB, free: 15.7 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004807/1.033, allocations: 40 kB / 0.6634 GB, free: 15.66 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001702/1.035, allocations: 111.9 kB / 0.6635 GB, free: 15.55 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004414/1.035, allocations: 156.7 kB / 0.6636 GB, free: 15.4 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001776/1.035, allocations: 62.72 kB / 0.6637 GB, free: 15.34 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.004337/1.04, allocations: 2.515 MB / 0.6661 GB, free: 12.82 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.11e-07/1.04, allocations: 0 / 0.6661 GB, free: 12.82 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.00593/1.046, allocations: 1.187 MB / 0.6673 GB, free: 11.63 MB / 494.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.000648/1.046, allocations: 234 kB / 0.6675 GB, free: 11.4 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.00992/1.056, allocations: 5.529 MB / 0.6729 GB, free: 5.879 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.436e-05/1.056, allocations: 0 / 0.6729 GB, free: 5.879 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003397/1.06, allocations: 1.746 MB / 0.6746 GB, free: 4.121 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00378/1.063, allocations: 494.4 kB / 0.6751 GB, free: 3.645 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02121/1.085, allocations: 11.29 MB / 0.6861 GB, free: 8.246 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004872/1.089, allocations: 3.345 MB / 0.6894 GB, free: 4.859 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.004573/1.094, allocations: 1.892 MB / 0.6912 GB, free: 2.961 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008204/1.095, allocations: 259.4 kB / 0.6915 GB, free: 2.707 MB / 0.4981 GB Notification: Performance of SimCode: time 1.353e-06/1.095, allocations: 0 / 0.6915 GB, free: 2.707 MB / 0.4981 GB Notification: Performance of Templates: time 0.09143/1.186, allocations: 46.25 MB / 0.7367 GB, free: 5.004 MB / 0.545 GB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar_analytic/Fourbar_analytic.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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.291279358789325]