Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.PreLoad.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.PreLoad,fileNamePrefix="Modelica_3_2_1_Modelica_Mechanics_Translational_Examples_PreLoad",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.64/1.64, allocations: 171.1 MB / 186.1 MB, free: 1.133 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003508/0.000351, allocations: 16 kB / 233.4 MB, free: 2.266 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08297/0.08335, allocations: 38.76 MB / 272.1 MB, free: 11.43 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3492/0.4326, allocations: 68.3 MB / 340.4 MB, free: 4.594 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002706/0.4329, allocations: 70.09 kB / 340.5 MB, free: 4.559 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04306/0.476, allocations: 9.112 MB / 349.6 MB, free: 12.91 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.585e-06/0.476, allocations: 0 / 349.6 MB, free: 12.91 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.055e-05/0.4761, allocations: 8 kB / 349.6 MB, free: 12.9 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 116 * Number of variables: 116 Notification: Performance of Generate backend data structure: time 0.002164/0.4783, allocations: 0.7662 MB / 350.4 MB, free: 12.11 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.59e-05/0.4783, allocations: 8.031 kB / 350.4 MB, free: 12.1 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001739/0.4785, allocations: 87.27 kB / 350.5 MB, free: 12.04 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001425/0.4787, allocations: 55.34 kB / 350.5 MB, free: 11.98 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000548/0.4792, allocations: 314.1 kB / 350.8 MB, free: 11.66 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.617e-05/0.4793, allocations: 34.56 kB / 350.9 MB, free: 11.64 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001209/0.4794, allocations: 50.06 kB / 350.9 MB, free: 11.61 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001538/0.481, allocations: 460.4 kB / 351.4 MB, free: 11.29 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.503e-05/0.4811, allocations: 12.12 kB / 351.4 MB, free: 11.27 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.655e-05/0.4811, allocations: 18.81 kB / 351.4 MB, free: 11.27 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.849e-05/0.4812, allocations: 19.94 kB / 351.4 MB, free: 11.25 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001842/0.483, allocations: 490 kB / 351.9 MB, free: 10.89 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003743/0.4868, allocations: 1.394 MB / 353.3 MB, free: 9.801 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001593/0.4884, allocations: 0.5499 MB / 353.8 MB, free: 9.438 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.2e-05/0.4885, allocations: 16.55 kB / 353.8 MB, free: 9.422 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.315e-05/0.4886, allocations: 42.56 kB / 353.9 MB, free: 9.375 MB / 282.7 MB Notification: Performance of pre-optimization done (n=67): time 3.487e-06/0.4886, allocations: 0 / 353.9 MB, free: 9.375 MB / 282.7 MB Notification: Performance of matching and sorting (n=103): time 0.01399/0.5026, allocations: 3.279 MB / 357.2 MB, free: 6.727 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.787e-05/0.5027, allocations: 64.41 kB / 357.2 MB, free: 6.648 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000354/0.5031, allocations: 224.7 kB / 357.5 MB, free: 6.461 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 8.439e-05/0.5032, allocations: 47.27 kB / 357.5 MB, free: 6.422 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001531/0.5033, allocations: 193.2 kB / 357.7 MB, free: 6.266 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003685/0.5037, allocations: 349.8 kB / 358 MB, free: 5.965 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.636e-05/0.5038, allocations: 18.06 kB / 358 MB, free: 5.961 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0002261/0.504, allocations: 362.4 kB / 358.4 MB, free: 5.621 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001048/0.5051, allocations: 281.9 kB / 358.7 MB, free: 5.43 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001128/0.5062, allocations: 366.4 kB / 359 MB, free: 5.16 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001089/0.5073, allocations: 313.4 kB / 359.3 MB, free: 4.969 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.689e-06/0.5074, allocations: 4 kB / 359.3 MB, free: 4.965 MB / 282.7 MB Notification: Performance of matching and sorting (n=113) (initialization): time 0.002642/0.51, allocations: 0.81 MB / 360.2 MB, free: 4.367 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.718e-05/0.5101, allocations: 4 kB / 360.2 MB, free: 4.363 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.089e-05/0.5101, allocations: 0 / 360.2 MB, free: 4.363 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.917e-05/0.5101, allocations: 7.953 kB / 360.2 MB, free: 4.355 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001527/0.5117, allocations: 222.6 kB / 360.4 MB, free: 4.145 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.779e-05/0.5117, allocations: 4 kB / 360.4 MB, free: 4.141 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006937/0.5124, allocations: 58.09 kB / 360.4 MB, free: 4.098 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.024e-05/0.5125, allocations: 31.3 kB / 360.5 MB, free: 4.074 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 4 (innerContactA.contact,innerContactB.contact,outerContactA.contact,outerContactB.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (113): * Single equations (assignments): 113 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003761/0.5129, allocations: 197.3 kB / 360.7 MB, free: 3.918 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001359/0.5131, allocations: 51.34 kB / 360.7 MB, free: 3.867 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002088/0.5133, allocations: 73.58 kB / 360.8 MB, free: 3.844 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.13e-05/0.5133, allocations: 15.95 kB / 360.8 MB, free: 3.828 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.074e-05/0.5133, allocations: 4 kB / 360.8 MB, free: 3.824 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.612e-05/0.5134, allocations: 3.984 kB / 360.8 MB, free: 3.82 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004927/0.5183, allocations: 2.02 MB / 362.8 MB, free: 2.176 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.355e-05/0.5184, allocations: 8 kB / 362.8 MB, free: 2.168 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001626/0.52, allocations: 206.1 kB / 363 MB, free: 1.973 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.801e-05/0.52, allocations: 8 kB / 363 MB, free: 1.965 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.834e-05/0.5201, allocations: 28.48 kB / 363.1 MB, free: 1.949 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.525e-05/0.5201, allocations: 8 kB / 363.1 MB, free: 1.941 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-05/0.5202, allocations: 15.92 kB / 363.1 MB, free: 1.926 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003965/0.5241, allocations: 1.634 MB / 364.7 MB, free: 488 kB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003584/0.5245, allocations: 178 kB / 364.9 MB, free: 320 kB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000117/0.5247, allocations: 30.27 kB / 364.9 MB, free: 304 kB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007046/0.5254, allocations: 65.64 kB / 365 MB, free: 248 kB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001697/0.5256, allocations: 78.81 kB / 365.1 MB, free: 176 kB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.758e-05/0.5257, allocations: 34.98 kB / 365.1 MB, free: 148 kB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002415/0.5259, allocations: 174.6 kB / 365.3 MB, free: 4 kB / 282.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.5259, allocations: 0 / 365.3 MB, free: 4 kB / 282.7 MB Notification: Performance of remove unused functions: time 0.0007537/0.5267, allocations: 159 kB / 365.4 MB, free: 15.88 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 6 (outerContactA.s_rel,outerContactA.v_rel,outerContactB.s_rel,outerContactB.v_rel,friction.s_rel,friction.v_rel) * Number of discrete variables: 4 (innerContactA.contact,innerContactB.contact,outerContactA.contact,outerContactB.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (103): * Single equations (assignments): 103 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004787/0.5315, allocations: 3.516 MB / 369 MB, free: 12.59 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.00248/0.534, allocations: 0.7551 MB / 369.7 MB, free: 12.02 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 8.626e-06/0.5341, allocations: 4 kB / 369.7 MB, free: 12.01 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00135/0.5354, allocations: 461.3 kB / 370.2 MB, free: 11.67 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001007/0.5365, allocations: 92.36 kB / 370.3 MB, free: 11.6 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009571/0.546, allocations: 4.047 MB / 374.3 MB, free: 8.039 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005777/0.5467, allocations: 0.8774 MB / 375.2 MB, free: 7.133 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.000609/0.5473, allocations: 72.94 kB / 375.3 MB, free: 7.059 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004579/0.5478, allocations: 197.8 kB / 375.4 MB, free: 6.992 MB / 298.7 MB Notification: Performance of SimCode: time 1.483e-06/0.5478, allocations: 4 kB / 375.4 MB, free: 6.988 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04412/0.5919, allocations: 10.41 MB / 385.9 MB, free: 12.65 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002287/0.5922, allocations: 175.3 kB / 386 MB, free: 12.41 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.868/3.46, allocations: 0 / 386 MB, free: 12.41 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.PreLoad_res.mat does not exist to compare? outputFormat=mat