Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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.Fourbar_analytic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001106/0.001106, allocations: 110.8 kB / 17.06 MB, free: 6.02 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001267/0.001267, allocations: 191 kB / 18 MB, free: 5.102 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.412/1.412, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009351/0.0009351, allocations: 51.91 kB / 351.3 MB, free: 3.23 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.286/0.2869, allocations: 49.43 MB / 400.7 MB, free: 8.746 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic): time 0.01338/0.3003, allocations: 13.5 MB / 414.2 MB, free: 11.32 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.009604/0.31, allocations: 4.849 MB / 419.1 MB, free: 6.457 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002248/0.3123, allocations: 91.75 kB / 419.2 MB, free: 6.367 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007191/0.3195, allocations: 4.19 MB / 423.3 MB, free: 2.164 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006352/0.3259, allocations: 2.144 MB / 425.5 MB, free: 12 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002767/0.3287, allocations: 1.107 MB / 426.6 MB, free: 14.9 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.008414/0.3371, allocations: 5.975 MB / 432.6 MB, free: 8.922 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006495/0.3437, allocations: 5.305 MB / 437.9 MB, free: 3.551 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004368/0.3481, allocations: 2.154 MB / 440 MB, free: 1.391 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004663/0.3528, allocations: 2.863 MB / 442.9 MB, free: 14.52 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00142/0.3542, allocations: 500 kB / 443.4 MB, free: 14.03 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003478/0.3577, allocations: 1.643 MB / 445 MB, free: 12.39 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002469/0.3602, allocations: 2.572 MB / 447.6 MB, free: 9.809 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003063/0.3633, allocations: 2.902 MB / 450.5 MB, free: 6.891 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009754/0.373, allocations: 9.558 MB / 460.1 MB, free: 13.3 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.901e-06/0.3731, allocations: 0 / 460.1 MB, free: 13.3 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.3731, allocations: 0 / 460.1 MB, free: 13.3 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002088/0.3733, allocations: 0 / 460.1 MB, free: 13.3 MB / 382.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.01242/0.3857, allocations: 6.191 MB / 466.2 MB, free: 7.02 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.155e-05/0.3858, allocations: 8.031 kB / 466.3 MB, free: 7.012 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01072/0.3965, allocations: 2.571 MB / 468.8 MB, free: 4.434 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008065/0.4046, allocations: 3.829 MB / 472.7 MB, free: 0.5469 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002173/0.4048, allocations: 308.3 kB / 473 MB, free: 248 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001159/0.406, allocations: 451.6 kB / 473.4 MB, free: 15.8 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02137/0.4274, allocations: 12.41 MB / 485.8 MB, free: 2.648 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001423/0.4276, allocations: 43.64 kB / 485.8 MB, free: 2.605 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004824/0.4281, allocations: 187.9 kB / 486 MB, free: 2.422 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003051/0.4311, allocations: 2.035 MB / 488.1 MB, free: 392 kB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02186/0.453, allocations: 10.57 MB / 498.6 MB, free: 5.793 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05108/0.5041, allocations: 44.21 MB / 0.5301 GB, free: 8.316 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01253/0.5167, allocations: 4.846 MB / 0.5349 GB, free: 3.328 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002899/0.5196, allocations: 2.014 MB / 0.5368 GB, free: 1.305 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2693/0.7889, allocations: 7.116 MB / 0.5438 GB, free: 127.4 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.546e-05/0.789, allocations: 53.75 kB / 0.5438 GB, free: 127.3 MB / 462.1 MB Notification: Performance of pre-optimization done (n=179): time 4.749e-06/0.789, allocations: 0 / 0.5438 GB, free: 127.3 MB / 462.1 MB Notification: Performance of matching and sorting (n=223): time 0.05916/0.8482, allocations: 19.9 MB / 0.5633 GB, free: 116.7 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.948e-05/0.8483, allocations: 205.9 kB / 0.5634 GB, free: 116.5 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004665/0.853, allocations: 4.474 MB / 0.5678 GB, free: 112.1 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003371/0.8533, allocations: 57.7 kB / 0.5679 GB, free: 112 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001416/0.8547, allocations: 3.654 MB / 0.5714 GB, free: 108.6 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006383/0.8554, allocations: 0.873 MB / 0.5723 GB, free: 107.8 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001359/0.8567, allocations: 1.357 MB / 0.5736 GB, free: 106.4 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.153e-05/0.8568, allocations: 305.1 kB / 0.5739 GB, free: 106.1 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002692/0.8595, allocations: 2.359 MB / 0.5762 GB, free: 103.7 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004208/0.8637, allocations: 6.159 MB / 0.5822 GB, free: 95.71 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00796/0.8717, allocations: 9.169 MB / 0.5912 GB, free: 84.69 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.933e-05/0.8718, allocations: 40 kB / 0.5912 GB, free: 84.65 MB / 462.1 MB Notification: Performance of matching and sorting (n=868) (initialization): time 0.01458/0.8864, allocations: 9.566 MB / 0.6006 GB, free: 75.07 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.174e-05/0.8865, allocations: 64.19 kB / 0.6006 GB, free: 75.01 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.934e-05/0.8866, allocations: 136 kB / 0.6008 GB, free: 74.88 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003528/0.8901, allocations: 1.377 MB / 0.6021 GB, free: 73.5 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004029/0.8942, allocations: 1.474 MB / 0.6035 GB, free: 72.02 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009543/0.9037, allocations: 8.479 MB / 0.6118 GB, free: 63.41 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006051/0.9098, allocations: 355.5 kB / 0.6122 GB, free: 63.06 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009438/0.9108, allocations: 392 kB / 0.6125 GB, free: 62.68 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.004044/0.9149, allocations: 2.488 MB / 0.615 GB, free: 60.18 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007956/0.9157, allocations: 421.3 kB / 0.6154 GB, free: 59.77 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007274/0.9229, allocations: 4.134 MB / 0.6194 GB, free: 55.62 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.446e-05/0.923, allocations: 24 kB / 0.6194 GB, free: 55.6 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.761e-05/0.923, allocations: 7.938 kB / 0.6194 GB, free: 55.59 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.206e-05/0.9231, allocations: 13.56 kB / 0.6194 GB, free: 55.58 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0167/0.9398, allocations: 10.13 MB / 0.6293 GB, free: 45.34 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.592e-05/0.9398, allocations: 8.578 kB / 0.6293 GB, free: 45.34 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001324/0.9411, allocations: 327.5 kB / 0.6297 GB, free: 45.02 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003323/0.9445, allocations: 1.144 MB / 0.6308 GB, free: 43.87 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001781/0.9447, allocations: 40 kB / 0.6308 GB, free: 43.83 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008107/0.9528, allocations: 7.164 MB / 0.6378 GB, free: 36.52 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.019e-06/0.9528, allocations: 4 kB / 0.6378 GB, free: 36.52 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01014/0.963, allocations: 6.918 MB / 0.6446 GB, free: 29.52 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001198/0.9642, allocations: 482.1 kB / 0.645 GB, free: 29.02 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004372/0.9646, allocations: 40.06 kB / 0.6451 GB, free: 28.98 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001559/0.9662, allocations: 115.8 kB / 0.6452 GB, free: 28.88 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003366/0.9665, allocations: 148.9 kB / 0.6453 GB, free: 28.73 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001508/0.9667, allocations: 56 kB / 0.6454 GB, free: 28.67 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003748/0.9705, allocations: 2.81 MB / 0.6481 GB, free: 25.86 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.9705, allocations: 0 / 0.6481 GB, free: 25.86 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004771/0.9752, allocations: 1.219 MB / 0.6493 GB, free: 24.64 MB / 462.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.0005167/0.9758, allocations: 234.9 kB / 0.6495 GB, free: 24.41 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.007496/0.9833, allocations: 5.771 MB / 0.6552 GB, free: 18.65 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.038e-05/0.9833, allocations: 0.9375 kB / 0.6552 GB, free: 18.65 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002315/0.9856, allocations: 1.87 MB / 0.657 GB, free: 16.77 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003121/0.9888, allocations: 0.5396 MB / 0.6575 GB, free: 16.23 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01667/1.005, allocations: 11.21 MB / 0.6685 GB, free: 4.922 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0038/1.009, allocations: 3.871 MB / 0.6722 GB, free: 1.016 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.004157/1.014, allocations: 1.926 MB / 0.6741 GB, free: 15.08 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008659/1.014, allocations: 271.4 kB / 0.6744 GB, free: 14.82 MB / 478.1 MB Notification: Performance of SimCode: time 8.72e-07/1.014, allocations: 0 / 0.6744 GB, free: 14.82 MB / 478.1 MB Notification: Performance of Templates: time 0.07878/1.093, allocations: 42.13 MB / 0.7155 GB, free: 4.957 MB / 0.4981 GB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar_analytic/Fourbar_analytic.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches