Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Electrical.Digital.Examples.BUF3S.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.BUF3S,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Digital_Examples_BUF3S",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.979/1.979, allocations: 194.8 MB / 211.7 MB, free: 3.004 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003583/0.0003584, allocations: 8 kB / 264 MB, free: 13.5 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09449/0.09489, allocations: 44.51 MB / 308.5 MB, free: 0.918 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4294/0.5243, allocations: 77.66 MB / 386.2 MB, free: 14.51 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002974/0.5247, allocations: 70.52 kB / 386.3 MB, free: 14.51 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08039/0.6051, allocations: 26.8 MB / 413.1 MB, free: 9.723 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.415e-06/0.6052, allocations: 0 / 413.1 MB, free: 9.723 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.199e-05/0.6052, allocations: 3.875 kB / 413.1 MB, free: 9.723 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0007372/0.6059, allocations: 0.6708 MB / 413.7 MB, free: 9.078 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.26e-05/0.606, allocations: 7.719 kB / 413.7 MB, free: 9.078 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.537e-05/0.6061, allocations: 49.23 kB / 413.8 MB, free: 9.031 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.988e-05/0.6062, allocations: 35.09 kB / 413.8 MB, free: 9.012 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003064/0.6065, allocations: 257.7 kB / 414.1 MB, free: 8.777 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.447e-05/0.6065, allocations: 7.094 kB / 414.1 MB, free: 8.777 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.892e-05/0.6066, allocations: 7.812 kB / 414.1 MB, free: 8.777 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004092/0.607, allocations: 152.6 kB / 414.2 MB, free: 8.703 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.999e-06/0.607, allocations: 0 / 414.2 MB, free: 8.703 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.836e-05/0.6071, allocations: 3.875 kB / 414.2 MB, free: 8.703 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.209e-06/0.6071, allocations: 0 / 414.2 MB, free: 8.703 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002275/0.6073, allocations: 71.95 kB / 414.3 MB, free: 8.688 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008066/0.6081, allocations: 487.6 kB / 414.8 MB, free: 8.328 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002671/0.6084, allocations: 102.5 kB / 414.9 MB, free: 8.289 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.456e-06/0.6084, allocations: 3.844 kB / 414.9 MB, free: 8.289 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003883/0.6088, allocations: 231.1 kB / 415.1 MB, free: 8.125 MB / 314.7 MB Notification: Performance of pre-optimization done (n=13): time 2.014e-06/0.6089, allocations: 0 / 415.1 MB, free: 8.125 MB / 314.7 MB Notification: Performance of matching and sorting (n=13): time 0.001238/0.6101, allocations: 0.6492 MB / 415.8 MB, free: 7.711 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.952e-05/0.6102, allocations: 172.3 kB / 415.9 MB, free: 7.52 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007342/0.6109, allocations: 463 kB / 416.4 MB, free: 7.285 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.205e-05/0.611, allocations: 29.58 kB / 416.4 MB, free: 7.254 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.666e-05/0.6111, allocations: 162.4 kB / 416.6 MB, free: 7.102 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.828e-05/0.6111, allocations: 27.08 kB / 416.6 MB, free: 7.086 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.248e-05/0.6112, allocations: 10.91 kB / 416.6 MB, free: 7.082 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.778e-05/0.6113, allocations: 322.5 kB / 416.9 MB, free: 6.766 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002521/0.6115, allocations: 63.45 kB / 417 MB, free: 6.754 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002178/0.6117, allocations: 78.05 kB / 417.1 MB, free: 6.727 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002391/0.612, allocations: 174 kB / 417.2 MB, free: 6.59 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.612, allocations: 3.906 kB / 417.2 MB, free: 6.59 MB / 314.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000831/0.6129, allocations: 410.1 kB / 417.6 MB, free: 6.387 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.544e-05/0.613, allocations: 125.6 kB / 417.8 MB, free: 6.254 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.682e-06/0.613, allocations: 4 kB / 417.8 MB, free: 6.25 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.797e-05/0.613, allocations: 0 / 417.8 MB, free: 6.25 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.494e-05/0.613, allocations: 3.906 kB / 417.8 MB, free: 6.25 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.661e-06/0.613, allocations: 7.875 kB / 417.8 MB, free: 6.242 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002203/0.6133, allocations: 18.2 kB / 417.8 MB, free: 6.238 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000147/0.6134, allocations: 122.8 kB / 417.9 MB, free: 6.219 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 15 ($PRE.bUF3S.inertialDelaySensitive.y,$whenCondition1,$whenCondition2,e_table.y,x_table.y,bUF3S.nextstate,bUF3S.yy,$PRE.bUF3S.inertialDelaySensitive.x,bUF3S.inertialDelaySensitive.x,bUF3S.inertialDelaySensitive.y,bUF3S.inertialDelaySensitive.delayTime,bUF3S.inertialDelaySensitive.y_auxiliary,bUF3S.inertialDelaySensitive.y_old,bUF3S.inertialDelaySensitive.lh,bUF3S.inertialDelaySensitive.t_next) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 4 * 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.0004273/0.6139, allocations: 360.4 kB / 418.3 MB, free: 5.93 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.243e-05/0.614, allocations: 42.72 kB / 418.3 MB, free: 5.906 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001292/0.6141, allocations: 60.94 kB / 418.4 MB, free: 5.871 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.338e-06/0.6141, allocations: 3.875 kB / 418.4 MB, free: 5.871 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.089e-06/0.6141, allocations: 0 / 418.4 MB, free: 5.871 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.027e-06/0.6141, allocations: 0 / 418.4 MB, free: 5.871 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001308/0.6155, allocations: 0.8446 MB / 419.2 MB, free: 5.316 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.986e-06/0.6155, allocations: 0 / 419.2 MB, free: 5.316 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.476e-06/0.6155, allocations: 0 / 419.2 MB, free: 5.316 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.47e-06/0.6155, allocations: 3.875 kB / 419.2 MB, free: 5.316 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.053e-05/0.6156, allocations: 19.7 kB / 419.2 MB, free: 5.309 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.206e-06/0.6156, allocations: 3.875 kB / 419.3 MB, free: 5.309 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.6156, allocations: 0 / 419.3 MB, free: 5.309 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009417/0.6165, allocations: 0.5593 MB / 419.8 MB, free: 4.988 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004089/0.617, allocations: 244.1 kB / 420 MB, free: 4.82 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.018e-05/0.6171, allocations: 11.44 kB / 420.1 MB, free: 4.82 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002364/0.6173, allocations: 11.52 kB / 420.1 MB, free: 4.816 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000143/0.6175, allocations: 35.97 kB / 420.1 MB, free: 4.805 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001405/0.6176, allocations: 122.7 kB / 420.2 MB, free: 4.789 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0005955/0.6182, allocations: 395.9 kB / 420.6 MB, free: 4.594 MB / 314.7 MB Notification: Performance of sort global known variables: time 3.51e-07/0.6182, allocations: 0 / 420.6 MB, free: 4.594 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.000422/0.6187, allocations: 42.47 kB / 420.7 MB, free: 4.594 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition1,$whenCondition2,e_table.y,x_table.y,bUF3S.nextstate,bUF3S.yy,bUF3S.inertialDelaySensitive.x,bUF3S.inertialDelaySensitive.y,bUF3S.inertialDelaySensitive.delayTime,bUF3S.inertialDelaySensitive.y_auxiliary,bUF3S.inertialDelaySensitive.y_old,bUF3S.inertialDelaySensitive.lh,bUF3S.inertialDelaySensitive.t_next) * Number of discrete states: 13 (e_table.y,x_table.y,bUF3S.yy,bUF3S.nextstate,bUF3S.inertialDelaySensitive.y,bUF3S.inertialDelaySensitive.y_auxiliary,bUF3S.inertialDelaySensitive.t_next,bUF3S.inertialDelaySensitive.delayTime,bUF3S.inertialDelaySensitive.lh,bUF3S.inertialDelaySensitive.y_old,$whenCondition2,$whenCondition1,bUF3S.inertialDelaySensitive.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 4 * 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.001232/0.6199, allocations: 1.123 MB / 421.8 MB, free: 3.734 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0006934/0.6206, allocations: 451 kB / 422.2 MB, free: 3.453 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.6206, allocations: 3.875 kB / 422.2 MB, free: 3.453 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003909/0.621, allocations: 380 kB / 422.6 MB, free: 3.188 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007505/0.6218, allocations: 107.7 kB / 422.7 MB, free: 3.145 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003127/0.6249, allocations: 1.682 MB / 424.4 MB, free: 2.129 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003825/0.6254, allocations: 0.8069 MB / 425.2 MB, free: 1.363 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.257e-05/0.6254, allocations: 30.3 kB / 425.2 MB, free: 1.352 MB / 314.7 MB Notification: Performance of SimCode: time 1.122e-06/0.6255, allocations: 0 / 425.2 MB, free: 1.352 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.74/3.365, allocations: 4.324 MB / 429.5 MB, free: 15.25 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Digital.Examples.BUF3S_res.mat does not exist to compare? outputFormat=mat