Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Electrical.Digital.Examples.BUF3S.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.Electrical.Digital.Examples.BUF3S,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Digital_Examples_BUF3S",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.605/1.605, allocations: 171.1 MB / 186.7 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003483/0.0003485, allocations: 12 kB / 233.3 MB, free: 2.941 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08214/0.08252, allocations: 38.77 MB / 272.1 MB, free: 12.09 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3594/0.4419, allocations: 72.34 MB / 344.4 MB, free: 1.441 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002625/0.4423, allocations: 70.72 kB / 344.5 MB, free: 1.406 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09872/0.541, allocations: 27.27 MB / 371.8 MB, free: 10.89 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.164e-06/0.5411, allocations: 0 / 371.8 MB, free: 10.89 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.369e-05/0.5411, allocations: 8 kB / 371.8 MB, free: 10.89 MB / 298.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.0009828/0.5421, allocations: 0.6828 MB / 372.5 MB, free: 10.15 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.55e-05/0.5421, allocations: 8.031 kB / 372.5 MB, free: 10.14 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.326e-05/0.5422, allocations: 38.55 kB / 372.5 MB, free: 10.1 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001118/0.5423, allocations: 39.53 kB / 372.6 MB, free: 10.06 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003988/0.5428, allocations: 257 kB / 372.8 MB, free: 9.773 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.851e-05/0.5428, allocations: 11.62 kB / 372.8 MB, free: 9.766 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.526e-05/0.5429, allocations: 8 kB / 372.8 MB, free: 9.758 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004574/0.5433, allocations: 148.8 kB / 373 MB, free: 9.625 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.207e-05/0.5434, allocations: 8 kB / 373 MB, free: 9.617 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.306e-05/0.5434, allocations: 7.875 kB / 373 MB, free: 9.613 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.82e-06/0.5434, allocations: 0 / 373 MB, free: 9.613 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002548/0.5437, allocations: 67.33 kB / 373.1 MB, free: 9.562 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001/0.5447, allocations: 477.5 kB / 373.5 MB, free: 9.105 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003169/0.545, allocations: 106 kB / 373.6 MB, free: 9.023 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.224e-05/0.5451, allocations: 0 / 373.6 MB, free: 9.023 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000477/0.5456, allocations: 233.6 kB / 373.9 MB, free: 8.793 MB / 298.7 MB Notification: Performance of pre-optimization done (n=13): time 2.033e-06/0.5456, allocations: 0 / 373.9 MB, free: 8.793 MB / 298.7 MB Notification: Performance of matching and sorting (n=13): time 0.001503/0.5471, allocations: 0.6516 MB / 374.5 MB, free: 8.145 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001293/0.5472, allocations: 166.2 kB / 374.7 MB, free: 7.949 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009445/0.5482, allocations: 468.6 kB / 375.1 MB, free: 7.555 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.525e-05/0.5483, allocations: 37.52 kB / 375.2 MB, free: 7.516 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.395e-05/0.5484, allocations: 159.2 kB / 375.3 MB, free: 7.367 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.299e-05/0.5485, allocations: 31.27 kB / 375.3 MB, free: 7.34 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.354e-05/0.5485, allocations: 4 kB / 375.4 MB, free: 7.336 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001434/0.5487, allocations: 314.8 kB / 375.7 MB, free: 7.023 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002441/0.5489, allocations: 63.27 kB / 375.7 MB, free: 6.977 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002556/0.5492, allocations: 80.92 kB / 375.8 MB, free: 6.91 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003081/0.5495, allocations: 178.2 kB / 376 MB, free: 6.734 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.987e-06/0.5495, allocations: 0 / 376 MB, free: 6.734 MB / 298.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.001021/0.5506, allocations: 413.4 kB / 376.4 MB, free: 6.355 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001216/0.5507, allocations: 124.4 kB / 376.5 MB, free: 6.215 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.692e-06/0.5507, allocations: 0 / 376.5 MB, free: 6.215 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.586e-05/0.5507, allocations: 0 / 376.5 MB, free: 6.215 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.704e-05/0.5508, allocations: 112 / 376.5 MB, free: 6.215 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.576e-06/0.5508, allocations: 7.938 kB / 376.5 MB, free: 6.207 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002358/0.551, allocations: 15.92 kB / 376.5 MB, free: 6.195 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002006/0.5513, allocations: 123.8 kB / 376.6 MB, free: 6.074 MB / 298.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.0005949/0.5519, allocations: 352.8 kB / 377 MB, free: 5.723 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001006/0.552, allocations: 39.58 kB / 377 MB, free: 5.684 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001612/0.5522, allocations: 74.89 kB / 377.1 MB, free: 5.617 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.502e-06/0.5522, allocations: 0 / 377.1 MB, free: 5.617 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/0.5522, allocations: 3.938 kB / 377.1 MB, free: 5.613 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.067e-06/0.5522, allocations: 0 / 377.1 MB, free: 5.613 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001684/0.5539, allocations: 0.8459 MB / 378 MB, free: 4.801 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.047e-06/0.5539, allocations: 7.938 kB / 378 MB, free: 4.793 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.127e-05/0.5539, allocations: 0 / 378 MB, free: 4.793 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.475e-06/0.554, allocations: 4 kB / 378 MB, free: 4.789 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.801e-05/0.554, allocations: 15.98 kB / 378 MB, free: 4.773 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.148e-05/0.5541, allocations: 4 kB / 378 MB, free: 4.77 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.165e-06/0.5541, allocations: 0 / 378 MB, free: 4.77 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001186/0.5553, allocations: 0.562 MB / 378.5 MB, free: 4.238 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005366/0.5558, allocations: 254.6 kB / 378.8 MB, free: 4.012 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001018/0.5559, allocations: 19.06 kB / 378.8 MB, free: 3.996 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002501/0.5562, allocations: 11.98 kB / 378.8 MB, free: 3.984 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00017/0.5564, allocations: 30.34 kB / 378.9 MB, free: 3.961 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001969/0.5566, allocations: 123 kB / 379 MB, free: 3.844 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0007605/0.5574, allocations: 390.4 kB / 379.4 MB, free: 3.52 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.9e-07/0.5574, allocations: 0 / 379.4 MB, free: 3.52 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004635/0.5579, allocations: 40 kB / 379.4 MB, free: 3.48 MB / 298.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.001616/0.5595, allocations: 1.127 MB / 380.5 MB, free: 2.379 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0008438/0.5604, allocations: 446.3 kB / 381 MB, free: 1.984 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 6.733e-06/0.5604, allocations: 4 kB / 381 MB, free: 1.98 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005084/0.5609, allocations: 380.6 kB / 381.3 MB, free: 1.637 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000813/0.5617, allocations: 103.2 kB / 381.4 MB, free: 1.551 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003792/0.5655, allocations: 1.681 MB / 383.1 MB, free: 0 / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007002/0.5663, allocations: 0.8078 MB / 383.9 MB, free: 15.18 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.257e-05/0.5664, allocations: 26.61 kB / 383.9 MB, free: 15.16 MB / 314.7 MB Notification: Performance of SimCode: time 1.303e-06/0.5664, allocations: 4 kB / 384 MB, free: 15.16 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.649/3.216, allocations: 4.282 MB / 388.2 MB, free: 10.85 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Electrical.Digital.Examples.BUF3S_res.mat does not exist to compare? outputFormat=mat