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: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar_analytic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.0009824/0.0009821, allocations: 91.36 kB / 16.65 MB, free: 6.234 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.001005/0.001005, allocations: 177.5 kB / 17.56 MB, free: 5.848 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.451/1.451, allocations: 223.3 MB / 241.6 MB, free: 212 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003347/0.000335, allocations: 4.688 kB / 301.5 MB, free: 6.035 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1152/0.1156, allocations: 50.42 MB / 351.9 MB, free: 3.605 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic): time 0.3023/0.4179, allocations: 53.99 MB / 405.9 MB, free: 10.22 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.03452/0.4525, allocations: 11.86 MB / 417.8 MB, free: 1.645 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01517/0.4677, allocations: 235.8 kB / 418 MB, free: 1.609 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002383/0.4701, allocations: 497.8 kB / 418.5 MB, free: 1.23 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007176/0.4773, allocations: 2.029 MB / 420.5 MB, free: 15.55 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002741/0.4801, allocations: 1.006 MB / 421.6 MB, free: 14.54 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01255/0.4926, allocations: 8.694 MB / 430.2 MB, free: 5.828 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01237/0.505, allocations: 7.359 MB / 437.6 MB, free: 14.39 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004147/0.5092, allocations: 1.537 MB / 439.1 MB, free: 12.84 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005101/0.5144, allocations: 2.562 MB / 441.7 MB, free: 10.27 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00134/0.5157, allocations: 188 kB / 441.9 MB, free: 10.09 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003778/0.5195, allocations: 1.416 MB / 443.3 MB, free: 8.672 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002999/0.5225, allocations: 2.224 MB / 445.5 MB, free: 6.441 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002945/0.5255, allocations: 2.533 MB / 448.1 MB, free: 3.887 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01066/0.5362, allocations: 9.02 MB / 457.1 MB, free: 10.84 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.676e-06/0.5362, allocations: 4 kB / 457.1 MB, free: 10.83 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.096e-06/0.5362, allocations: 0 / 457.1 MB, free: 10.83 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003127/0.5366, allocations: 4 kB / 457.1 MB, free: 10.83 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.01219/0.5488, allocations: 5.081 MB / 462.2 MB, free: 5.672 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.923e-05/0.5488, allocations: 8.031 kB / 462.2 MB, free: 5.664 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002236/0.5511, allocations: 0.9286 MB / 463.1 MB, free: 4.723 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03874/0.5898, allocations: 6.102 MB / 469.2 MB, free: 14.61 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009387/0.5993, allocations: 4.39 MB / 473.6 MB, free: 10.16 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002903/0.5996, allocations: 307.9 kB / 473.9 MB, free: 9.852 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001682/0.6013, allocations: 439.6 kB / 474.3 MB, free: 9.422 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02299/0.6243, allocations: 12.34 MB / 486.7 MB, free: 12.34 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001377/0.6245, allocations: 51.53 kB / 486.7 MB, free: 12.29 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000484/0.625, allocations: 187.9 kB / 486.9 MB, free: 12.11 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003139/0.6281, allocations: 2.035 MB / 488.9 MB, free: 10.07 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02155/0.6497, allocations: 10.38 MB / 499.3 MB, free: 15.67 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05861/0.7083, allocations: 44.15 MB / 0.5307 GB, free: 2.246 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2369/0.9452, allocations: 4.831 MB / 0.5354 GB, free: 149.4 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002808/0.9481, allocations: 1.974 MB / 0.5374 GB, free: 149.3 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01086/0.959, allocations: 6.995 MB / 0.5442 GB, free: 145.9 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.711e-05/0.959, allocations: 47.22 kB / 0.5443 GB, free: 145.8 MB / 446.1 MB Notification: Performance of pre-optimization done (n=179): time 4.819e-06/0.959, allocations: 1.125 kB / 0.5443 GB, free: 145.8 MB / 446.1 MB Notification: Performance of matching and sorting (n=223): time 0.06438/1.023, allocations: 19.21 MB / 0.563 GB, free: 139.7 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.143e-05/1.024, allocations: 202.2 kB / 0.5632 GB, free: 139.5 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006324/1.03, allocations: 4.487 MB / 0.5676 GB, free: 135.5 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003804/1.03, allocations: 61.7 kB / 0.5676 GB, free: 135.5 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001611/1.032, allocations: 3.564 MB / 0.5711 GB, free: 131.9 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000658/1.033, allocations: 0.8309 MB / 0.5719 GB, free: 131.1 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005264/1.033, allocations: 0.5403 MB / 0.5725 GB, free: 130.5 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.323e-05/1.033, allocations: 305.1 kB / 0.5728 GB, free: 130.2 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002555/1.036, allocations: 2.226 MB / 0.5749 GB, free: 128 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00375/1.039, allocations: 5.981 MB / 0.5808 GB, free: 120.2 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007536/1.047, allocations: 8.905 MB / 0.5895 GB, free: 109.4 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.374e-05/1.047, allocations: 44 kB / 0.5895 GB, free: 109.4 MB / 446.1 MB Notification: Performance of matching and sorting (n=830) (initialization): time 0.01467/1.062, allocations: 9.042 MB / 0.5983 GB, free: 100.3 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001059/1.062, allocations: 60 kB / 0.5984 GB, free: 100.3 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001875/1.062, allocations: 136 kB / 0.5985 GB, free: 100.1 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003496/1.066, allocations: 1.205 MB / 0.5997 GB, free: 98.93 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004415/1.07, allocations: 1.419 MB / 0.6011 GB, free: 97.51 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009732/1.08, allocations: 7.524 MB / 0.6084 GB, free: 89.86 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00519/1.085, allocations: 345 kB / 0.6088 GB, free: 89.52 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008866/1.086, allocations: 381 kB / 0.6091 GB, free: 89.15 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.003878/1.09, allocations: 2.48 MB / 0.6115 GB, free: 86.66 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007956/1.091, allocations: 406.7 kB / 0.6119 GB, free: 86.26 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007135/1.098, allocations: 3.889 MB / 0.6157 GB, free: 82.36 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.078e-05/1.098, allocations: 24.7 kB / 0.6158 GB, free: 82.33 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.661e-05/1.098, allocations: 8 kB / 0.6158 GB, free: 82.32 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.909e-05/1.098, allocations: 11.95 kB / 0.6158 GB, free: 82.31 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01727/1.115, allocations: 10.18 MB / 0.6257 GB, free: 72.02 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.9e-05/1.115, allocations: 5.188 kB / 0.6257 GB, free: 72.02 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001501/1.117, allocations: 343.4 kB / 0.6261 GB, free: 71.68 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003126/1.12, allocations: 0.9965 MB / 0.627 GB, free: 70.68 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001824/1.12, allocations: 51.92 kB / 0.6271 GB, free: 70.63 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007556/1.128, allocations: 6.215 MB / 0.6331 GB, free: 64.28 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.15e-06/1.128, allocations: 11.94 kB / 0.6332 GB, free: 64.27 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008906/1.137, allocations: 6.612 MB / 0.6396 GB, free: 57.57 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001052/1.138, allocations: 463.6 kB / 0.6401 GB, free: 57.1 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007673/1.138, allocations: 41.47 kB / 0.6401 GB, free: 57.06 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001853/1.14, allocations: 107.9 kB / 0.6402 GB, free: 56.95 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003099/1.141, allocations: 149 kB / 0.6403 GB, free: 56.8 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001292/1.141, allocations: 63.09 kB / 0.6404 GB, free: 56.75 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00416/1.145, allocations: 2.828 MB / 0.6432 GB, free: 53.92 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.7e-07/1.145, allocations: 0 / 0.6432 GB, free: 53.92 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004913/1.15, allocations: 1.177 MB / 0.6443 GB, free: 52.75 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.009724/1.16, allocations: 7.334 MB / 0.6515 GB, free: 45.34 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007058/1.167, allocations: 5.514 MB / 0.6569 GB, free: 39.84 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.108e-05/1.167, allocations: 0 / 0.6569 GB, free: 39.84 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00205/1.169, allocations: 1.836 MB / 0.6586 GB, free: 37.99 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006146/1.175, allocations: 0.5439 MB / 0.6592 GB, free: 37.45 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2645/1.439, allocations: 61.84 MB / 0.7196 GB, free: 138.3 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004885/1.444, allocations: 3.873 MB / 0.7234 GB, free: 137.5 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.005524/1.45, allocations: 1.935 MB / 0.7252 GB, free: 137.4 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002815/1.453, allocations: 2.287 MB / 0.7275 GB, free: 135.7 MB / 462.1 MB Notification: Performance of SimCode: time 9.52e-07/1.453, allocations: 0 / 0.7275 GB, free: 135.7 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1081/1.561, allocations: 85.16 MB / 0.8106 GB, free: 60.55 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001473/1.561, allocations: 237.6 kB / 0.8109 GB, free: 60.3 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.284/5.845, allocations: 6.953 kB / 0.8109 GB, free: 60.29 MB / 462.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar_analytic_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar_analytic.fmu > 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/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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches