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.NRXFER.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.NRXFER,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Digital_Examples_NRXFER",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.676/1.676, allocations: 171.1 MB / 186.7 MB, free: 1.121 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000349/0.000349, allocations: 8 kB / 233.3 MB, free: 0.8281 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0821/0.08249, allocations: 38.76 MB / 272.1 MB, free: 9.988 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3262/0.4087, allocations: 71.8 MB / 343.9 MB, free: 11.11 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002621/0.409, allocations: 71.95 kB / 344 MB, free: 11.04 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05708/0.4661, allocations: 16.39 MB / 360.4 MB, free: 10.68 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.335e-06/0.4662, allocations: 3.938 kB / 360.4 MB, free: 10.67 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.397e-05/0.4662, allocations: 4 kB / 360.4 MB, free: 10.67 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.0008997/0.4671, allocations: 0.6683 MB / 361 MB, free: 9.926 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.995e-05/0.4672, allocations: 12.03 kB / 361 MB, free: 9.914 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.839e-05/0.4672, allocations: 34.56 kB / 361.1 MB, free: 9.871 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.021e-05/0.4674, allocations: 47.53 kB / 361.1 MB, free: 9.824 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003864/0.4678, allocations: 265.3 kB / 361.4 MB, free: 9.523 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.458e-05/0.4678, allocations: 4 kB / 361.4 MB, free: 9.52 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.608e-05/0.4678, allocations: 8 kB / 361.4 MB, free: 9.512 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004149/0.4683, allocations: 133.5 kB / 361.5 MB, free: 9.375 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.608e-06/0.4683, allocations: 0 / 361.5 MB, free: 9.375 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.588e-05/0.4683, allocations: 8 kB / 361.5 MB, free: 9.367 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.149e-06/0.4684, allocations: 0 / 361.5 MB, free: 9.367 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002323/0.4686, allocations: 55.97 kB / 361.6 MB, free: 9.312 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009142/0.4695, allocations: 468.5 kB / 362 MB, free: 8.805 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002885/0.4698, allocations: 98.48 kB / 362.1 MB, free: 8.699 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.213e-05/0.4699, allocations: 0 / 362.1 MB, free: 8.699 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004382/0.4703, allocations: 206.8 kB / 362.3 MB, free: 8.473 MB / 298.7 MB Notification: Performance of pre-optimization done (n=13): time 2.054e-06/0.4703, allocations: 0 / 362.3 MB, free: 8.473 MB / 298.7 MB Notification: Performance of matching and sorting (n=13): time 0.001348/0.4717, allocations: 0.6118 MB / 363 MB, free: 7.793 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001193/0.4718, allocations: 162.2 kB / 363.1 MB, free: 7.598 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009133/0.4727, allocations: 472.3 kB / 363.6 MB, free: 7.129 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.29e-05/0.4728, allocations: 29.7 kB / 363.6 MB, free: 7.094 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001011/0.4729, allocations: 163.6 kB / 363.8 MB, free: 6.934 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.998e-05/0.473, allocations: 27.69 kB / 363.8 MB, free: 6.906 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.786e-05/0.473, allocations: 4 kB / 363.8 MB, free: 6.902 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001766/0.4732, allocations: 322.8 kB / 364.1 MB, free: 6.578 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002109/0.4734, allocations: 55.91 kB / 364.2 MB, free: 6.523 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002352/0.4737, allocations: 77.67 kB / 364.2 MB, free: 6.441 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002838/0.474, allocations: 166.8 kB / 364.4 MB, free: 6.254 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.474, allocations: 0 / 364.4 MB, free: 6.254 MB / 298.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0008669/0.4749, allocations: 368.5 kB / 364.8 MB, free: 5.863 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001177/0.475, allocations: 126.8 kB / 364.9 MB, free: 5.715 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.241e-06/0.475, allocations: 3.969 kB / 364.9 MB, free: 5.711 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.807e-05/0.4751, allocations: 8 kB / 364.9 MB, free: 5.703 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.589e-05/0.4751, allocations: 3.984 kB / 364.9 MB, free: 5.699 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.662e-06/0.4751, allocations: 0 / 364.9 MB, free: 5.699 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002235/0.4753, allocations: 16 kB / 364.9 MB, free: 5.684 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001075/0.4755, allocations: 59.89 kB / 365 MB, free: 5.625 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.nRXFERGATE.inertialDelaySensitive.y,$whenCondition1,$whenCondition2,e_table.y,x_table.y,nRXFERGATE.nextstate,nRXFERGATE.yy,$PRE.nRXFERGATE.inertialDelaySensitive.x,nRXFERGATE.inertialDelaySensitive.x,nRXFERGATE.inertialDelaySensitive.y,nRXFERGATE.inertialDelaySensitive.delayTime,nRXFERGATE.inertialDelaySensitive.y_auxiliary,nRXFERGATE.inertialDelaySensitive.y_old,nRXFERGATE.inertialDelaySensitive.lh,nRXFERGATE.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.0005537/0.476, allocations: 358.9 kB / 365.3 MB, free: 5.238 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.114e-05/0.4761, allocations: 39.61 kB / 365.4 MB, free: 5.199 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001545/0.4763, allocations: 71.14 kB / 365.4 MB, free: 5.129 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.82e-06/0.4763, allocations: 7.938 kB / 365.4 MB, free: 5.121 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.71e-06/0.4763, allocations: 0 / 365.4 MB, free: 5.121 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.497e-06/0.4763, allocations: 0 / 365.4 MB, free: 5.121 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001518/0.4778, allocations: 0.7977 MB / 366.2 MB, free: 4.242 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.617e-06/0.4779, allocations: 0 / 366.2 MB, free: 4.242 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.396e-05/0.4779, allocations: 7.984 kB / 366.3 MB, free: 4.234 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.461e-06/0.4779, allocations: 0 / 366.3 MB, free: 4.234 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.852e-05/0.478, allocations: 8 kB / 366.3 MB, free: 4.227 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.781e-06/0.478, allocations: 4 kB / 366.3 MB, free: 4.223 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.478, allocations: 4 kB / 366.3 MB, free: 4.219 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001032/0.479, allocations: 0.5213 MB / 366.8 MB, free: 3.656 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005135/0.4796, allocations: 252.4 kB / 367 MB, free: 3.391 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.799e-05/0.4797, allocations: 15.94 kB / 367.1 MB, free: 3.375 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002322/0.4799, allocations: 8 kB / 367.1 MB, free: 3.367 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001437/0.4801, allocations: 23.97 kB / 367.1 MB, free: 3.344 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001063/0.4802, allocations: 63.92 kB / 367.1 MB, free: 3.281 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0007389/0.4809, allocations: 386.9 kB / 367.5 MB, free: 2.902 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.4809, allocations: 0 / 367.5 MB, free: 2.902 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004485/0.4814, allocations: 47.95 kB / 367.6 MB, free: 2.855 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,nRXFERGATE.nextstate,nRXFERGATE.yy,nRXFERGATE.inertialDelaySensitive.x,nRXFERGATE.inertialDelaySensitive.y,nRXFERGATE.inertialDelaySensitive.delayTime,nRXFERGATE.inertialDelaySensitive.y_auxiliary,nRXFERGATE.inertialDelaySensitive.y_old,nRXFERGATE.inertialDelaySensitive.lh,nRXFERGATE.inertialDelaySensitive.t_next) * Number of discrete states: 13 (e_table.y,x_table.y,nRXFERGATE.yy,nRXFERGATE.nextstate,nRXFERGATE.inertialDelaySensitive.y,nRXFERGATE.inertialDelaySensitive.y_auxiliary,nRXFERGATE.inertialDelaySensitive.t_next,nRXFERGATE.inertialDelaySensitive.delayTime,nRXFERGATE.inertialDelaySensitive.lh,nRXFERGATE.inertialDelaySensitive.y_old,$whenCondition2,$whenCondition1,nRXFERGATE.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.00147/0.4829, allocations: 1.074 MB / 368.6 MB, free: 1.727 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0007875/0.4837, allocations: 445.7 kB / 369.1 MB, free: 1.242 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.886e-06/0.4837, allocations: 0 / 369.1 MB, free: 1.242 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005105/0.4842, allocations: 373.6 kB / 369.4 MB, free: 0.8281 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007624/0.485, allocations: 101.4 kB / 369.5 MB, free: 0.7344 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003601/0.4886, allocations: 1.636 MB / 371.2 MB, free: 15.04 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006104/0.4893, allocations: 0.8142 MB / 372 MB, free: 14.2 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.603e-05/0.4894, allocations: 27.42 kB / 372 MB, free: 14.17 MB / 314.7 MB Notification: Performance of SimCode: time 1.332e-06/0.4894, allocations: 0 / 372 MB, free: 14.17 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.566/3.055, allocations: 3.136 MB / 375.2 MB, free: 10.98 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Electrical.Digital.Examples.NRXFER_res.mat does not exist to compare? outputFormat=mat