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.DFFREGL.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.DFFREGL,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Digital_Examples_DFFREGL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.882/1.882, allocations: 194.9 MB / 211.7 MB, free: 2.988 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003642/0.0003642, allocations: 12 kB / 264 MB, free: 13.48 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1382/0.1386, allocations: 44.5 MB / 308.5 MB, free: 0.9062 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4028/0.5415, allocations: 78.01 MB / 386.5 MB, free: 14.51 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000251/0.5418, allocations: 74.31 kB / 386.6 MB, free: 14.51 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.111/0.6528, allocations: 37.48 MB / 424.1 MB, free: 4.789 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.044e-06/0.6529, allocations: 0 / 424.1 MB, free: 4.789 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.648e-05/0.6529, allocations: 7.719 kB / 424.1 MB, free: 4.789 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.001414/0.6543, allocations: 1.141 MB / 425.2 MB, free: 3.805 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.836e-05/0.6544, allocations: 7.75 kB / 425.2 MB, free: 3.805 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001287/0.6545, allocations: 59.11 kB / 425.3 MB, free: 3.762 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001747/0.6547, allocations: 91.64 kB / 425.4 MB, free: 3.715 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006804/0.6554, allocations: 421.3 kB / 425.8 MB, free: 3.418 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.278e-05/0.6555, allocations: 22.11 kB / 425.8 MB, free: 3.414 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001037/0.6556, allocations: 26.59 kB / 425.9 MB, free: 3.41 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00119/0.6568, allocations: 0.515 MB / 426.4 MB, free: 3.246 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.432e-05/0.6568, allocations: 0 / 426.4 MB, free: 3.246 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.168e-05/0.6569, allocations: 14.72 kB / 426.4 MB, free: 3.246 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.957e-06/0.6569, allocations: 3.781 kB / 426.4 MB, free: 3.246 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008557/0.6578, allocations: 376.9 kB / 426.8 MB, free: 3.172 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001702/0.6595, allocations: 0.8502 MB / 427.6 MB, free: 2.699 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009587/0.6605, allocations: 0.5193 MB / 428.1 MB, free: 2.602 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.003e-05/0.6605, allocations: 128 / 428.1 MB, free: 2.602 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001124/0.6617, allocations: 0.6638 MB / 428.8 MB, free: 2.273 MB / 314.7 MB Notification: Performance of pre-optimization done (n=34): time 2.505e-06/0.6617, allocations: 0 / 428.8 MB, free: 2.273 MB / 314.7 MB Notification: Performance of matching and sorting (n=34): time 0.003437/0.6651, allocations: 1.791 MB / 430.6 MB, free: 1.492 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001531/0.6653, allocations: 280.5 kB / 430.9 MB, free: 1.199 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002034/0.6674, allocations: 1.028 MB / 431.9 MB, free: 0.7656 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001817/0.6676, allocations: 48.34 kB / 431.9 MB, free: 0.7305 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001181/0.6677, allocations: 200.6 kB / 432.1 MB, free: 0.5742 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001612/0.6679, allocations: 80.52 kB / 432.2 MB, free: 0.5273 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.521e-05/0.668, allocations: 11.31 kB / 432.2 MB, free: 0.5273 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.056e-05/0.6681, allocations: 321.9 kB / 432.5 MB, free: 216 kB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008036/0.6689, allocations: 353.3 kB / 432.9 MB, free: 156 kB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007888/0.6697, allocations: 374.3 kB / 433.2 MB, free: 72 kB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008515/0.6706, allocations: 0.4889 MB / 433.7 MB, free: 15.8 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.28e-06/0.6706, allocations: 7.938 kB / 433.7 MB, free: 15.79 MB / 330.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.002327/0.6729, allocations: 1.117 MB / 434.9 MB, free: 15.39 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002359/0.6732, allocations: 246.1 kB / 435.1 MB, free: 15.15 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.606e-06/0.6732, allocations: 0 / 435.1 MB, free: 15.15 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.119e-05/0.6732, allocations: 0 / 435.1 MB, free: 15.15 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.609e-05/0.6733, allocations: 3.875 kB / 435.1 MB, free: 15.15 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.288e-06/0.6733, allocations: 3.969 kB / 435.1 MB, free: 15.15 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005576/0.6739, allocations: 43 kB / 435.1 MB, free: 15.14 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002163/0.6741, allocations: 154.3 kB / 435.3 MB, free: 15.12 MB / 330.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.001334/0.6754, allocations: 0.7606 MB / 436.1 MB, free: 14.63 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002036/0.6757, allocations: 96.7 kB / 436.1 MB, free: 14.59 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000367/0.676, allocations: 148.8 kB / 436.3 MB, free: 14.5 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.519e-06/0.6761, allocations: 0 / 436.3 MB, free: 14.5 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.682e-06/0.6761, allocations: 4 kB / 436.3 MB, free: 14.49 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/0.6761, allocations: 0 / 436.3 MB, free: 14.49 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004098/0.6802, allocations: 1.972 MB / 438.3 MB, free: 12.85 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.061e-06/0.6803, allocations: 4 kB / 438.3 MB, free: 12.85 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.007e-05/0.6803, allocations: 0 / 438.3 MB, free: 12.85 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.693e-06/0.6803, allocations: 0 / 438.3 MB, free: 12.85 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001153/0.6804, allocations: 40.47 kB / 438.3 MB, free: 12.81 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.148e-06/0.6804, allocations: 0 / 438.3 MB, free: 12.81 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/0.6805, allocations: 0 / 438.3 MB, free: 12.81 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003057/0.6835, allocations: 1.401 MB / 439.7 MB, free: 11.64 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001452/0.685, allocations: 0.5684 MB / 440.3 MB, free: 11.21 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002718/0.6853, allocations: 60.64 kB / 440.3 MB, free: 11.17 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005417/0.6859, allocations: 34.41 kB / 440.4 MB, free: 11.14 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006432/0.6865, allocations: 236.1 kB / 440.6 MB, free: 10.96 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00027/0.6868, allocations: 160.7 kB / 440.8 MB, free: 10.81 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.002003/0.6888, allocations: 0.8666 MB / 441.6 MB, free: 9.953 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.6888, allocations: 0 / 441.6 MB, free: 9.953 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0007926/0.6896, allocations: 124 kB / 441.7 MB, free: 9.832 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.003714/0.6934, allocations: 2.024 MB / 443.8 MB, free: 7.738 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.003015/0.6964, allocations: 1.523 MB / 445.3 MB, free: 6.129 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 7.264e-06/0.6965, allocations: 4 kB / 445.3 MB, free: 6.125 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001905/0.6984, allocations: 1.117 MB / 446.4 MB, free: 4.922 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002011/0.7004, allocations: 283.9 kB / 446.7 MB, free: 4.645 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01137/0.7119, allocations: 4.962 MB / 451.7 MB, free: 15.6 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00109/0.713, allocations: 1.042 MB / 452.7 MB, free: 14.54 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001492/0.7132, allocations: 71.42 kB / 452.8 MB, free: 14.46 MB / 346.7 MB Notification: Performance of SimCode: time 1.213e-06/0.7132, allocations: 4 kB / 452.8 MB, free: 14.46 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.865/3.578, allocations: 9.396 MB / 462.2 MB, free: 4.922 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Digital.Examples.DFFREGL_res.mat does not exist to compare? outputFormat=mat