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.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_cpp_Modelica_Electrical_Digital_Examples_DFFREGL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.602/1.602, allocations: 171.1 MB / 186.7 MB, free: 1.137 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003508/0.0003508, allocations: 8 kB / 233.3 MB, free: 2.941 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08167/0.08206, allocations: 38.76 MB / 272.1 MB, free: 12.1 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3595/0.4416, allocations: 72.7 MB / 344.8 MB, free: 0.8047 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002574/0.4419, allocations: 71.33 kB / 344.9 MB, free: 0.7656 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1253/0.5672, allocations: 37.32 MB / 382.2 MB, free: 1.633 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.956e-06/0.5673, allocations: 7.938 kB / 382.2 MB, free: 1.625 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.539e-05/0.5673, allocations: 19.31 kB / 382.2 MB, free: 1.609 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.001891/0.5692, allocations: 1.131 MB / 383.4 MB, free: 444 kB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.067e-05/0.5693, allocations: 8.031 kB / 383.4 MB, free: 436 kB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002249/0.5695, allocations: 60.72 kB / 383.4 MB, free: 376 kB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002179/0.5698, allocations: 86.97 kB / 383.5 MB, free: 288 kB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008911/0.5707, allocations: 424.8 kB / 383.9 MB, free: 15.86 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.819e-05/0.5708, allocations: 15.31 kB / 383.9 MB, free: 15.84 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001142/0.5709, allocations: 27.09 kB / 384 MB, free: 15.82 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001346/0.5722, allocations: 0.5133 MB / 384.5 MB, free: 15.42 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.211e-05/0.5723, allocations: 0 / 384.5 MB, free: 15.42 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.7e-05/0.5724, allocations: 13.62 kB / 384.5 MB, free: 15.41 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.388e-06/0.5724, allocations: 4 kB / 384.5 MB, free: 15.41 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009714/0.5734, allocations: 359.7 kB / 384.8 MB, free: 15.09 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001993/0.5754, allocations: 0.8599 MB / 385.7 MB, free: 14.18 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001225/0.5766, allocations: 0.51 MB / 386.2 MB, free: 13.66 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.354e-05/0.5767, allocations: 0 / 386.2 MB, free: 13.66 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001378/0.5781, allocations: 0.6431 MB / 386.9 MB, free: 12.98 MB / 314.7 MB Notification: Performance of pre-optimization done (n=34): time 2.735e-06/0.5781, allocations: 4 kB / 386.9 MB, free: 12.97 MB / 314.7 MB Notification: Performance of matching and sorting (n=34): time 0.004055/0.5822, allocations: 1.768 MB / 388.6 MB, free: 11.1 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002437/0.5825, allocations: 287.2 kB / 388.9 MB, free: 10.77 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002356/0.5848, allocations: 1.023 MB / 389.9 MB, free: 9.734 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001898/0.585, allocations: 45.7 kB / 390 MB, free: 9.684 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001593/0.5852, allocations: 200.5 kB / 390.2 MB, free: 9.488 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002/0.5854, allocations: 75.09 kB / 390.2 MB, free: 9.414 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.112e-05/0.5855, allocations: 12 kB / 390.3 MB, free: 9.402 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001532/0.5857, allocations: 322.8 kB / 390.6 MB, free: 9.078 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009375/0.5866, allocations: 348.1 kB / 390.9 MB, free: 8.738 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009476/0.5876, allocations: 375 kB / 391.3 MB, free: 8.363 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009345/0.5886, allocations: 491.5 kB / 391.8 MB, free: 7.84 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.941e-06/0.5886, allocations: 0 / 391.8 MB, free: 7.84 MB / 314.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.002652/0.5913, allocations: 1.098 MB / 392.9 MB, free: 6.691 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002508/0.5916, allocations: 243.9 kB / 393.1 MB, free: 6.41 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.676e-06/0.5916, allocations: 0 / 393.1 MB, free: 6.41 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.168e-05/0.5916, allocations: 4 kB / 393.1 MB, free: 6.406 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.849e-05/0.5917, allocations: 3.953 kB / 393.1 MB, free: 6.402 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.084e-05/0.5917, allocations: 4 kB / 393.1 MB, free: 6.398 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005543/0.5922, allocations: 43.81 kB / 393.1 MB, free: 6.355 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002822/0.5925, allocations: 152.2 kB / 393.3 MB, free: 6.207 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.001588/0.5941, allocations: 0.7641 MB / 394.1 MB, free: 5.387 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002313/0.5944, allocations: 87.06 kB / 394.1 MB, free: 5.301 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004646/0.5949, allocations: 147.7 kB / 394.3 MB, free: 5.148 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.46e-06/0.5949, allocations: 0 / 394.3 MB, free: 5.148 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.44e-05/0.5949, allocations: 3.953 kB / 394.3 MB, free: 5.145 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.89e-06/0.5949, allocations: 4 kB / 394.3 MB, free: 5.141 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004258/0.5992, allocations: 1.951 MB / 396.2 MB, free: 3.09 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.943e-06/0.5993, allocations: 0 / 396.2 MB, free: 3.09 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.358e-05/0.5993, allocations: 4 kB / 396.3 MB, free: 3.086 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.796e-06/0.5993, allocations: 0 / 396.3 MB, free: 3.086 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001084/0.5994, allocations: 43.92 kB / 396.3 MB, free: 3.043 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.613e-06/0.5994, allocations: 3.953 kB / 396.3 MB, free: 3.039 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.857e-06/0.5994, allocations: 0 / 396.3 MB, free: 3.039 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003128/0.6026, allocations: 1.377 MB / 397.7 MB, free: 1.602 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001403/0.604, allocations: 0.5659 MB / 398.2 MB, free: 1.016 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002725/0.6043, allocations: 63.95 kB / 398.3 MB, free: 0.9531 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005038/0.6048, allocations: 27.98 kB / 398.3 MB, free: 0.9258 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006877/0.6055, allocations: 239.7 kB / 398.6 MB, free: 0.6914 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002665/0.6058, allocations: 167.8 kB / 398.7 MB, free: 0.5273 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.002105/0.6079, allocations: 0.85 MB / 399.6 MB, free: 15.68 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.51e-07/0.608, allocations: 0 / 399.6 MB, free: 15.68 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0008694/0.6089, allocations: 124 kB / 399.7 MB, free: 15.56 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.003826/0.6127, allocations: 2.013 MB / 401.7 MB, free: 13.47 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.003544/0.6163, allocations: 1.512 MB / 403.2 MB, free: 11.88 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.389e-06/0.6164, allocations: 4.125 kB / 403.2 MB, free: 11.87 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002414/0.6188, allocations: 1.117 MB / 404.3 MB, free: 10.67 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002433/0.6213, allocations: 287.7 kB / 404.6 MB, free: 10.39 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01541/0.6367, allocations: 4.912 MB / 409.5 MB, free: 5.41 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001657/0.6384, allocations: 1.038 MB / 410.6 MB, free: 4.348 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002135/0.6387, allocations: 75.41 kB / 410.6 MB, free: 4.273 MB / 330.7 MB Notification: Performance of SimCode: time 1.413e-06/0.6387, allocations: 0 / 410.6 MB, free: 4.273 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.716/3.355, allocations: 9.347 MB / 420 MB, free: 10.78 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Electrical.Digital.Examples.DFFREGL_res.mat does not exist to compare? outputFormat=mat