Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Digital.Examples.DFFREGL.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.DFFREGL,fileNamePrefix="Modelica_3_2_1_Modelica_Electrical_Digital_Examples_DFFREGL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.65/1.65, allocations: 171.1 MB / 186.1 MB, free: 1.125 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003564/0.0003565, allocations: 11.98 kB / 233.4 MB, free: 2.273 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08408/0.08448, allocations: 38.76 MB / 272.1 MB, free: 11.43 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3594/0.4439, allocations: 72.7 MB / 344.8 MB, free: 476 kB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002598/0.4442, allocations: 68.16 kB / 344.9 MB, free: 440 kB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1284/0.5726, allocations: 37.33 MB / 382.2 MB, free: 1.301 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.585e-06/0.5727, allocations: 4 kB / 382.2 MB, free: 1.297 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.171e-05/0.5727, allocations: 16 kB / 382.2 MB, free: 1.281 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.001729/0.5745, allocations: 1.142 MB / 383.4 MB, free: 100 kB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.955e-05/0.5745, allocations: 8.031 kB / 383.4 MB, free: 92 kB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001603/0.5747, allocations: 55.86 kB / 383.4 MB, free: 36 kB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002166/0.5749, allocations: 87.14 kB / 383.5 MB, free: 15.95 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008741/0.5758, allocations: 415.2 kB / 383.9 MB, free: 15.52 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.343e-05/0.5759, allocations: 19.98 kB / 384 MB, free: 15.5 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001161/0.576, allocations: 35.7 kB / 384 MB, free: 15.47 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001363/0.5774, allocations: 0.5022 MB / 384.5 MB, free: 14.96 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.169e-05/0.5774, allocations: 0 / 384.5 MB, free: 14.96 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.24e-05/0.5775, allocations: 19.97 kB / 384.5 MB, free: 14.94 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.927e-06/0.5776, allocations: 4 kB / 384.5 MB, free: 14.94 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001027/0.5786, allocations: 363.9 kB / 384.9 MB, free: 14.58 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002118/0.5807, allocations: 0.8598 MB / 385.7 MB, free: 13.67 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001238/0.582, allocations: 0.5023 MB / 386.2 MB, free: 13.16 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.449e-05/0.5821, allocations: 4 kB / 386.2 MB, free: 13.16 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001422/0.5835, allocations: 0.647 MB / 386.9 MB, free: 12.47 MB / 314.7 MB Notification: Performance of pre-optimization done (n=34): time 3.948e-06/0.5835, allocations: 0 / 386.9 MB, free: 12.47 MB / 314.7 MB Notification: Performance of matching and sorting (n=34): time 0.003973/0.5875, allocations: 1.768 MB / 388.6 MB, free: 10.6 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002398/0.5878, allocations: 283.2 kB / 388.9 MB, free: 10.27 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00235/0.5902, allocations: 1.027 MB / 390 MB, free: 9.23 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002181/0.5904, allocations: 41.69 kB / 390 MB, free: 9.184 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001541/0.5906, allocations: 142 kB / 390.1 MB, free: 9.043 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001799/0.5908, allocations: 87.02 kB / 390.2 MB, free: 8.957 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.38e-05/0.5909, allocations: 12 kB / 390.2 MB, free: 8.945 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001588/0.591, allocations: 346.8 kB / 390.6 MB, free: 8.598 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009131/0.592, allocations: 344.1 kB / 390.9 MB, free: 8.262 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009094/0.5929, allocations: 367 kB / 391.3 MB, free: 7.895 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008794/0.5938, allocations: 495.5 kB / 391.7 MB, free: 7.367 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.208e-06/0.5938, allocations: 0 / 391.7 MB, free: 7.367 MB / 314.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.002622/0.5964, allocations: 1.111 MB / 392.9 MB, free: 6.207 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002437/0.5967, allocations: 247.9 kB / 393.1 MB, free: 5.922 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.757e-06/0.5967, allocations: 0 / 393.1 MB, free: 5.922 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.116e-05/0.5968, allocations: 4 kB / 393.1 MB, free: 5.918 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.3e-05/0.5968, allocations: 11.88 kB / 393.1 MB, free: 5.906 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.039e-05/0.5968, allocations: 4 kB / 393.1 MB, free: 5.902 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005448/0.5974, allocations: 39.89 kB / 393.2 MB, free: 5.863 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000265/0.5977, allocations: 148.2 kB / 393.3 MB, free: 5.719 MB / 314.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: 40 ($PRE.dFFREGL.delay.inertialDelaySensitive[2].y,$PRE.dFFREGL.delay.inertialDelaySensitive[1].y,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,clock.y,data_0.y,reset.y,data_1.y,$PRE.dFFREGL.delay.inertialDelaySensitive[1].x,dFFREGL.delay.inertialDelaySensitive[1].x,dFFREGL.delay.inertialDelaySensitive[1].y,dFFREGL.delay.inertialDelaySensitive[1].delayTime,dFFREGL.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGL.delay.inertialDelaySensitive[1].y_old,dFFREGL.delay.inertialDelaySensitive[1].lh,dFFREGL.delay.inertialDelaySensitive[1].t_next,$PRE.dFFREGL.delay.inertialDelaySensitive[2].x,dFFREGL.delay.inertialDelaySensitive[2].x,dFFREGL.delay.inertialDelaySensitive[2].y,dFFREGL.delay.inertialDelaySensitive[2].delayTime,dFFREGL.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGL.delay.inertialDelaySensitive[2].y_old,dFFREGL.delay.inertialDelaySensitive[2].lh,dFFREGL.delay.inertialDelaySensitive[2].t_next,$PRE.dFFREGL.dFFR.reset,dFFREGL.dFFR.reset,$PRE.dFFREGL.dFFR.clock,dFFREGL.dFFR.clock,dFFREGL.dFFR.dataIn[1],dFFREGL.dFFR.dataIn[2],dFFREGL.dFFR.dataOut[1],dFFREGL.dFFR.dataOut[2],dFFREGL.dFFR.clock_flag,dFFREGL.dFFR.reset_flag,dFFREGL.dFFR.nextstate[1],dFFREGL.dFFR.nextstate[2],dFFREGL.dFFR.next_assign_val[1],dFFREGL.dFFR.next_assign_val[2]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 7 * 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.001492/0.5992, allocations: 0.7602 MB / 394.1 MB, free: 4.902 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002294/0.5994, allocations: 90.97 kB / 394.2 MB, free: 4.812 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004496/0.5999, allocations: 155.6 kB / 394.3 MB, free: 4.652 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.39e-06/0.5999, allocations: 0 / 394.3 MB, free: 4.652 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.696e-06/0.5999, allocations: 7.953 kB / 394.3 MB, free: 4.645 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.474e-06/0.5999, allocations: 3.984 kB / 394.3 MB, free: 4.641 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004331/0.6043, allocations: 1.939 MB / 396.3 MB, free: 2.602 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.015e-05/0.6043, allocations: 0 / 396.3 MB, free: 2.602 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.308e-05/0.6044, allocations: 7.938 kB / 396.3 MB, free: 2.594 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.596e-06/0.6044, allocations: 4 kB / 396.3 MB, free: 2.59 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001163/0.6045, allocations: 35.97 kB / 396.3 MB, free: 2.555 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.947e-06/0.6045, allocations: 3.953 kB / 396.3 MB, free: 2.551 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/0.6046, allocations: 7.938 kB / 396.3 MB, free: 2.543 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003139/0.6077, allocations: 1.369 MB / 397.7 MB, free: 1.113 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001608/0.6094, allocations: 0.5582 MB / 398.2 MB, free: 0.5352 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002811/0.6097, allocations: 59.97 kB / 398.3 MB, free: 488 kB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005496/0.6102, allocations: 47.75 kB / 398.3 MB, free: 440 kB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006754/0.6109, allocations: 243.7 kB / 398.6 MB, free: 196 kB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002824/0.6112, allocations: 155.9 kB / 398.7 MB, free: 40 kB / 314.7 MB Notification: Performance of sorting global known variables: time 0.002069/0.6133, allocations: 0.8616 MB / 399.6 MB, free: 15.18 MB / 330.7 MB Notification: Performance of sort global known variables: time 6.72e-07/0.6134, allocations: 0 / 399.6 MB, free: 15.18 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0008212/0.6142, allocations: 120 kB / 399.7 MB, free: 15.06 MB / 330.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: 34 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,clock.y,data_0.y,reset.y,data_1.y,dFFREGL.delay.inertialDelaySensitive[1].x,dFFREGL.delay.inertialDelaySensitive[1].y,dFFREGL.delay.inertialDelaySensitive[1].delayTime,dFFREGL.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGL.delay.inertialDelaySensitive[1].y_old,dFFREGL.delay.inertialDelaySensitive[1].lh,dFFREGL.delay.inertialDelaySensitive[1].t_next,dFFREGL.delay.inertialDelaySensitive[2].x,dFFREGL.delay.inertialDelaySensitive[2].y,dFFREGL.delay.inertialDelaySensitive[2].delayTime,dFFREGL.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGL.delay.inertialDelaySensitive[2].y_old,dFFREGL.delay.inertialDelaySensitive[2].lh,dFFREGL.delay.inertialDelaySensitive[2].t_next,dFFREGL.dFFR.reset,dFFREGL.dFFR.clock,dFFREGL.dFFR.dataIn[1],dFFREGL.dFFR.dataIn[2],dFFREGL.dFFR.dataOut[1],dFFREGL.dFFR.dataOut[2],dFFREGL.dFFR.clock_flag,dFFREGL.dFFR.reset_flag,dFFREGL.dFFR.nextstate[1],dFFREGL.dFFR.nextstate[2],dFFREGL.dFFR.next_assign_val[1],dFFREGL.dFFR.next_assign_val[2]) * Number of discrete states: 32 (data_1.y,reset.y,data_0.y,clock.y,dFFREGL.dFFR.dataOut[2],dFFREGL.dFFR.dataOut[1],dFFREGL.dFFR.next_assign_val[2],dFFREGL.dFFR.next_assign_val[1],dFFREGL.dFFR.nextstate[2],dFFREGL.dFFR.nextstate[1],dFFREGL.dFFR.reset_flag,dFFREGL.dFFR.clock_flag,dFFREGL.dFFR.clock,dFFREGL.dFFR.reset,dFFREGL.delay.inertialDelaySensitive[1].y,dFFREGL.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGL.delay.inertialDelaySensitive[1].t_next,dFFREGL.delay.inertialDelaySensitive[1].delayTime,dFFREGL.delay.inertialDelaySensitive[1].lh,dFFREGL.delay.inertialDelaySensitive[1].y_old,$whenCondition2,$whenCondition1,dFFREGL.delay.inertialDelaySensitive[1].x,dFFREGL.delay.inertialDelaySensitive[2].y,dFFREGL.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGL.delay.inertialDelaySensitive[2].t_next,dFFREGL.delay.inertialDelaySensitive[2].delayTime,dFFREGL.delay.inertialDelaySensitive[2].lh,dFFREGL.delay.inertialDelaySensitive[2].y_old,$whenCondition4,$whenCondition3,dFFREGL.delay.inertialDelaySensitive[2].x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 7 * 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.003685/0.6179, allocations: 2.001 MB / 401.7 MB, free: 12.99 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002833/0.6208, allocations: 1.511 MB / 403.2 MB, free: 11.39 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.178e-06/0.6208, allocations: 4.125 kB / 403.2 MB, free: 11.39 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001833/0.6227, allocations: 1.117 MB / 404.3 MB, free: 10.18 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00199/0.6247, allocations: 285.3 kB / 404.6 MB, free: 9.91 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01171/0.6365, allocations: 4.84 MB / 409.5 MB, free: 5.008 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001111/0.6376, allocations: 1.038 MB / 410.5 MB, free: 3.945 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0002461/0.6379, allocations: 41.44 kB / 410.5 MB, free: 3.902 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001432/0.638, allocations: 75.41 kB / 410.6 MB, free: 3.828 MB / 330.7 MB Notification: Performance of SimCode: time 1.473e-06/0.6381, allocations: 0 / 410.6 MB, free: 3.828 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05242/0.6905, allocations: 16.41 MB / 427 MB, free: 3.211 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003382/0.6909, allocations: 169.7 kB / 427.2 MB, free: 2.973 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.893/3.584, allocations: 0 / 427.2 MB, free: 2.973 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Electrical.Digital.Examples.DFFREGL_res.mat does not exist to compare? outputFormat=mat