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.002056/0.002056, allocations: 112.7 kB / 17.07 MB, free: 5.988 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.002241/0.002241, allocations: 193.4 kB / 18 MB, free: 5.074 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.395/1.395, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001463/0.001463, allocations: 51.92 kB / 350.8 MB, free: 3.73 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2637/0.2652, allocations: 49.43 MB / 400.2 MB, free: 8.398 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic): time 0.01561/0.2808, allocations: 13.49 MB / 413.7 MB, free: 11.26 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01063/0.2915, allocations: 4.861 MB / 418.6 MB, free: 6.387 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002777/0.2943, allocations: 87.75 kB / 418.7 MB, free: 6.301 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007575/0.302, allocations: 4.182 MB / 422.8 MB, free: 2.105 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005604/0.3076, allocations: 2.147 MB / 425 MB, free: 15.95 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002529/0.3102, allocations: 1.104 MB / 426.1 MB, free: 14.85 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.008218/0.3184, allocations: 5.98 MB / 432.1 MB, free: 8.859 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006202/0.3246, allocations: 5.313 MB / 437.4 MB, free: 3.48 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003186/0.3278, allocations: 2.154 MB / 439.5 MB, free: 1.32 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0042/0.3321, allocations: 2.863 MB / 442.4 MB, free: 14.45 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009734/0.333, allocations: 500 kB / 442.9 MB, free: 13.96 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002948/0.336, allocations: 1.646 MB / 444.5 MB, free: 12.31 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00258/0.3386, allocations: 2.576 MB / 447.1 MB, free: 9.73 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003461/0.3421, allocations: 2.961 MB / 450.1 MB, free: 6.754 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01159/0.3537, allocations: 9.691 MB / 459.8 MB, free: 13.03 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.544e-06/0.3537, allocations: 0 / 459.8 MB, free: 13.03 MB / 382.1 MB Notification: Performance of FrontEnd: time 4.098e-06/0.3537, allocations: 4 kB / 459.8 MB, free: 13.02 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002926/0.354, allocations: 0 / 459.8 MB, free: 13.02 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.01444/0.3685, allocations: 6.371 MB / 466.1 MB, free: 6.566 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.829e-05/0.3685, allocations: 8.031 kB / 466.1 MB, free: 6.559 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001703/0.3702, allocations: 0.9286 MB / 467.1 MB, free: 5.617 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03784/0.4081, allocations: 6.055 MB / 473.1 MB, free: 15.54 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009775/0.4179, allocations: 4.477 MB / 477.6 MB, free: 11 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002827/0.4182, allocations: 308.1 kB / 477.9 MB, free: 10.7 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001367/0.4196, allocations: 443.7 kB / 478.3 MB, free: 10.27 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02299/0.4426, allocations: 12.31 MB / 490.7 MB, free: 13.21 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001449/0.4428, allocations: 47.64 kB / 490.7 MB, free: 13.17 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004807/0.4433, allocations: 187.9 kB / 490.9 MB, free: 12.98 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003175/0.4465, allocations: 2.035 MB / 492.9 MB, free: 10.95 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02118/0.4677, allocations: 10.36 MB / 0.4915 GB, free: 0.5664 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05576/0.5235, allocations: 43.99 MB / 0.5344 GB, free: 3.309 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.214/0.7375, allocations: 4.799 MB / 0.5391 GB, free: 128.6 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002345/0.7399, allocations: 1.972 MB / 0.5411 GB, free: 128 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008374/0.7483, allocations: 7.006 MB / 0.5479 GB, free: 124.4 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.699e-05/0.7483, allocations: 55.31 kB / 0.5479 GB, free: 124.3 MB / 462.1 MB Notification: Performance of pre-optimization done (n=179): time 4.068e-06/0.7483, allocations: 0 / 0.5479 GB, free: 124.3 MB / 462.1 MB Notification: Performance of matching and sorting (n=223): time 0.0582/0.8065, allocations: 19.37 MB / 0.5669 GB, free: 112.2 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.779e-05/0.8066, allocations: 201.9 kB / 0.5671 GB, free: 112 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004286/0.8109, allocations: 4.497 MB / 0.5714 GB, free: 107.6 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002612/0.8112, allocations: 57.7 kB / 0.5715 GB, free: 107.5 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001384/0.8126, allocations: 3.705 MB / 0.5751 GB, free: 104.1 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005199/0.8131, allocations: 0.8711 MB / 0.576 GB, free: 103.2 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001159/0.8143, allocations: 1.282 MB / 0.5772 GB, free: 102 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.286e-05/0.8143, allocations: 301.1 kB / 0.5775 GB, free: 101.7 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002343/0.8167, allocations: 2.23 MB / 0.5797 GB, free: 99.43 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003446/0.8201, allocations: 5.975 MB / 0.5855 GB, free: 91.61 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006708/0.8269, allocations: 8.917 MB / 0.5942 GB, free: 80.85 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.776e-05/0.8269, allocations: 36 kB / 0.5943 GB, free: 80.82 MB / 462.1 MB Notification: Performance of matching and sorting (n=830) (initialization): time 0.01249/0.8394, allocations: 9.062 MB / 0.6031 GB, free: 71.75 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.065e-05/0.8395, allocations: 64 kB / 0.6032 GB, free: 71.68 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001518/0.8397, allocations: 128 kB / 0.6033 GB, free: 71.56 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00323/0.8429, allocations: 1.213 MB / 0.6045 GB, free: 70.34 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003787/0.8467, allocations: 1.408 MB / 0.6059 GB, free: 68.93 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009397/0.8562, allocations: 8.018 MB / 0.6137 GB, free: 60.79 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005326/0.8615, allocations: 347.6 kB / 0.614 GB, free: 60.45 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001114/0.8626, allocations: 372 kB / 0.6144 GB, free: 60.09 MB / 462.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.00458/0.8672, allocations: 2.486 MB / 0.6168 GB, free: 57.59 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000963/0.8682, allocations: 433.1 kB / 0.6172 GB, free: 57.16 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007304/0.8755, allocations: 3.877 MB / 0.621 GB, free: 53.27 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.223e-05/0.8756, allocations: 31.77 kB / 0.621 GB, free: 53.24 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.985e-05/0.8756, allocations: 8 kB / 0.621 GB, free: 53.23 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.244e-05/0.8756, allocations: 17.64 kB / 0.6211 GB, free: 53.21 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0176/0.8932, allocations: 9.96 MB / 0.6308 GB, free: 43.15 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.888e-05/0.8933, allocations: 8 kB / 0.6308 GB, free: 43.14 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001328/0.8946, allocations: 323.5 kB / 0.6311 GB, free: 42.83 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0029/0.8976, allocations: 0.9882 MB / 0.6321 GB, free: 41.84 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000201/0.8978, allocations: 43.98 kB / 0.6321 GB, free: 41.79 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007716/0.9055, allocations: 6.687 MB / 0.6386 GB, free: 34.97 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.645e-06/0.9055, allocations: 11.94 kB / 0.6386 GB, free: 34.96 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009268/0.9148, allocations: 6.624 MB / 0.6451 GB, free: 28.25 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001388/0.9162, allocations: 470.1 kB / 0.6456 GB, free: 27.77 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009749/0.9172, allocations: 43.91 kB / 0.6456 GB, free: 27.73 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002093/0.9193, allocations: 111.9 kB / 0.6457 GB, free: 27.62 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000373/0.9197, allocations: 141.1 kB / 0.6458 GB, free: 27.48 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001692/0.9199, allocations: 60 kB / 0.6459 GB, free: 27.43 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004474/0.9244, allocations: 2.832 MB / 0.6487 GB, free: 24.59 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.71e-07/0.9244, allocations: 0 / 0.6487 GB, free: 24.59 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.005398/0.9298, allocations: 1.179 MB / 0.6498 GB, free: 23.41 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.009881/0.9397, allocations: 7.335 MB / 0.657 GB, free: 15.99 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.007567/0.9473, allocations: 5.537 MB / 0.6624 GB, free: 10.46 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.747e-06/0.9473, allocations: 7.938 kB / 0.6624 GB, free: 10.46 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002167/0.9495, allocations: 1.835 MB / 0.6642 GB, free: 8.605 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004244/0.9538, allocations: 0.5646 MB / 0.6647 GB, free: 8.043 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09393/1.048, allocations: 51.5 MB / 0.715 GB, free: 14.58 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007279/1.055, allocations: 3.863 MB / 0.7188 GB, free: 10.68 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.005248/1.06, allocations: 1.954 MB / 0.7207 GB, free: 8.723 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004227/1.065, allocations: 2.288 MB / 0.723 GB, free: 6.434 MB / 0.5137 GB Notification: Performance of SimCode: time 9.31e-07/1.065, allocations: 0 / 0.723 GB, free: 6.434 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3239/1.389, allocations: 83.93 MB / 0.8049 GB, free: 113.9 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 25.81/27.2, allocations: 8 kB / 0.8049 GB, free: 113.9 MB / 0.5137 GB (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