Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar_analytic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar_analytic",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001558/0.001558, allocations: 104.4 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001733/0.001733, allocations: 216.5 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.33/1.33, allocations: 227.4 MB / 246.8 MB, free: 10.56 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001381/0.001381, allocations: 65.2 kB / 307.1 MB, free: 0.543 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08978/0.09118, allocations: 50.52 MB / 357.6 MB, free: 14.01 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic): time 0.01419/0.1054, allocations: 13.46 MB / 371 MB, free: 496 kB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1904/0.2958, allocations: 4.871 MB / 375.9 MB, free: 9.059 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002823/0.2987, allocations: 87.22 kB / 376 MB, free: 9.059 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007756/0.3065, allocations: 4.169 MB / 380.2 MB, free: 8.254 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006714/0.3133, allocations: 2.106 MB / 382.3 MB, free: 7.5 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003124/0.3164, allocations: 1.103 MB / 383.4 MB, free: 7.094 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01011/0.3265, allocations: 6.058 MB / 389.4 MB, free: 4.992 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006201/0.3328, allocations: 5.313 MB / 394.8 MB, free: 2.09 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005299/0.3381, allocations: 2.148 MB / 396.9 MB, free: 1.004 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004538/0.3427, allocations: 2.856 MB / 399.8 MB, free: 15.42 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001398/0.3441, allocations: 0.4962 MB / 400.3 MB, free: 15.15 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003561/0.3477, allocations: 1.614 MB / 401.9 MB, free: 13.59 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002333/0.35, allocations: 2.562 MB / 404.4 MB, free: 11.04 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003727/0.3537, allocations: 2.94 MB / 407.4 MB, free: 8.094 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009753/0.3635, allocations: 9.382 MB / 416.7 MB, free: 14.91 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.091e-06/0.3636, allocations: 0 / 416.7 MB, free: 14.91 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.3636, allocations: 4 kB / 416.8 MB, free: 14.91 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002494/0.3638, allocations: 0 / 416.8 MB, free: 14.91 MB / 334.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.01248/0.3763, allocations: 6.176 MB / 422.9 MB, free: 8.754 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.394e-05/0.3764, allocations: 16.03 kB / 422.9 MB, free: 8.738 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001232/0.3776, allocations: 0.9351 MB / 423.9 MB, free: 7.824 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03705/0.4147, allocations: 6.018 MB / 429.9 MB, free: 1.793 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00875/0.4235, allocations: 4.171 MB / 434.1 MB, free: 13.61 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002275/0.4237, allocations: 314.4 kB / 434.4 MB, free: 13.33 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001271/0.425, allocations: 445.9 kB / 434.8 MB, free: 12.93 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02135/0.4464, allocations: 12.32 MB / 447.1 MB, free: 15.98 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001303/0.4465, allocations: 47.58 kB / 447.2 MB, free: 15.93 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004556/0.447, allocations: 194.2 kB / 447.4 MB, free: 15.78 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002969/0.45, allocations: 2.029 MB / 449.4 MB, free: 13.76 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01954/0.4695, allocations: 10.37 MB / 459.8 MB, free: 3.375 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05483/0.5244, allocations: 44.13 MB / 0.4921 GB, free: 6.219 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0134/0.5378, allocations: 4.802 MB / 0.4968 GB, free: 1.27 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003151/0.541, allocations: 1.964 MB / 0.4987 GB, free: 15.29 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01172/0.5528, allocations: 7.088 MB / 0.5056 GB, free: 7.957 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.445e-05/0.5528, allocations: 51.5 kB / 0.5057 GB, free: 7.895 MB / 430.1 MB Notification: Performance of pre-optimization done (n=179): time 3.997e-06/0.5528, allocations: 0 / 0.5057 GB, free: 7.895 MB / 430.1 MB Notification: Performance of matching and sorting (n=223): time 0.06763/0.6205, allocations: 18.98 MB / 0.5242 GB, free: 4.875 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001248/0.6206, allocations: 209.8 kB / 0.5244 GB, free: 4.625 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006582/0.6272, allocations: 4.48 MB / 0.5288 GB, free: 132 kB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004402/0.6277, allocations: 57.7 kB / 0.5288 GB, free: 68 kB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.2353/0.863, allocations: 3.559 MB / 0.5323 GB, free: 140.6 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001115/0.8641, allocations: 0.8382 MB / 0.5331 GB, free: 140 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002148/0.8663, allocations: 1.271 MB / 0.5344 GB, free: 139.4 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.496e-05/0.8664, allocations: 301.7 kB / 0.5346 GB, free: 139.1 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003741/0.8701, allocations: 2.233 MB / 0.5368 GB, free: 138.3 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00538/0.8755, allocations: 5.98 MB / 0.5427 GB, free: 132.6 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01078/0.8863, allocations: 8.923 MB / 0.5514 GB, free: 125.1 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002189/0.8866, allocations: 37.97 kB / 0.5514 GB, free: 125.1 MB / 446.1 MB Notification: Performance of matching and sorting (n=830) (initialization): time 0.02018/0.9068, allocations: 9.047 MB / 0.5603 GB, free: 121.7 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002376/0.9071, allocations: 59.69 kB / 0.5603 GB, free: 121.7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002825/0.9074, allocations: 132.3 kB / 0.5604 GB, free: 121.7 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003652/0.911, allocations: 1.205 MB / 0.5616 GB, free: 121.5 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004303/0.9154, allocations: 1.418 MB / 0.563 GB, free: 121.3 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009808/0.9252, allocations: 8.038 MB / 0.5708 GB, free: 117.1 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004964/0.9302, allocations: 344.4 kB / 0.5712 GB, free: 117 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009877/0.9312, allocations: 378.8 kB / 0.5715 GB, free: 116.9 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 599 * 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 (766): * Single equations (assignments): 762 * 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.004147/0.9354, allocations: 2.487 MB / 0.574 GB, free: 115.1 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008839/0.9363, allocations: 406.7 kB / 0.5744 GB, free: 114.7 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007066/0.9433, allocations: 3.891 MB / 0.5782 GB, free: 111.3 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.02e-05/0.9434, allocations: 27.67 kB / 0.5782 GB, free: 111.3 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.18e-05/0.9434, allocations: 8 kB / 0.5782 GB, free: 111.3 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.588e-05/0.9434, allocations: 7.969 kB / 0.5782 GB, free: 111.3 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01618/0.9596, allocations: 10.18 MB / 0.5881 GB, free: 101 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.778e-05/0.9596, allocations: 8 kB / 0.5881 GB, free: 101 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001487/0.9611, allocations: 347.5 kB / 0.5885 GB, free: 100.7 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002969/0.9641, allocations: 0.9816 MB / 0.5894 GB, free: 99.68 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001861/0.9643, allocations: 47.92 kB / 0.5895 GB, free: 99.63 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00757/0.9719, allocations: 6.655 MB / 0.596 GB, free: 92.83 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.671e-06/0.9719, allocations: 11.06 kB / 0.596 GB, free: 92.82 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009071/0.981, allocations: 6.621 MB / 0.6025 GB, free: 86.13 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001094/0.9821, allocations: 455.7 kB / 0.6029 GB, free: 85.66 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004263/0.9826, allocations: 43.98 kB / 0.6029 GB, free: 85.62 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00148/0.9841, allocations: 103.9 kB / 0.603 GB, free: 85.52 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003251/0.9844, allocations: 145 kB / 0.6032 GB, free: 85.37 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001251/0.9845, allocations: 60 kB / 0.6032 GB, free: 85.31 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00346/0.988, allocations: 2.824 MB / 0.606 GB, free: 82.49 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.988, allocations: 0 / 0.606 GB, free: 82.49 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005645/0.9937, allocations: 1.163 MB / 0.6071 GB, free: 81.34 MB / 446.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.009379/1.003, allocations: 7.332 MB / 0.6143 GB, free: 73.92 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.009974/1.013, allocations: 6.63 MB / 0.6208 GB, free: 67.33 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.144e-05/1.013, allocations: 0 / 0.6208 GB, free: 67.33 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002321/1.015, allocations: 1.838 MB / 0.6225 GB, free: 65.48 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003013/1.018, allocations: 0.5711 MB / 0.6231 GB, free: 64.93 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06709/1.086, allocations: 59.5 MB / 0.6812 GB, free: 13.1 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004626/1.09, allocations: 3.859 MB / 0.685 GB, free: 9.203 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.004831/1.095, allocations: 1.93 MB / 0.6869 GB, free: 7.266 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003029/1.098, allocations: 2.292 MB / 0.6891 GB, free: 4.973 MB / 462.1 MB Notification: Performance of SimCode: time 2.354e-06/1.098, allocations: 0 / 0.6891 GB, free: 4.973 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3333/1.431, allocations: 87.79 MB / 0.7748 GB, free: 88.37 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.71/14.14, allocations: 14.62 kB / 0.7748 GB, free: 88.36 MB / 462.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar_analytic_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar_analytic.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar_analytic/Fourbar_analytic.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches