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.DFFREGSRL.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.DFFREGSRL,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Digital_Examples_DFFREGSRL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.639/1.639, allocations: 171.1 MB / 186.7 MB, free: 1.121 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003714/0.0003714, allocations: 12 kB / 233.3 MB, free: 0.8359 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09308/0.09348, allocations: 38.77 MB / 272.1 MB, free: 9.984 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3605/0.4541, allocations: 72.94 MB / 345 MB, free: 9.953 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002767/0.4544, allocations: 67.97 kB / 345.1 MB, free: 9.887 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1055/0.5599, allocations: 31.71 MB / 376.8 MB, free: 10.18 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.325e-06/0.5599, allocations: 0 / 376.8 MB, free: 10.18 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.742e-05/0.56, allocations: 20 kB / 376.8 MB, free: 10.16 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: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.002233/0.5623, allocations: 1.473 MB / 378.3 MB, free: 8.578 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.749e-05/0.5623, allocations: 16.02 kB / 378.3 MB, free: 8.562 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001794/0.5625, allocations: 54.55 kB / 378.4 MB, free: 8.5 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002592/0.5628, allocations: 130.5 kB / 378.5 MB, free: 8.371 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001069/0.5639, allocations: 0.5128 MB / 379 MB, free: 7.809 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.474e-05/0.564, allocations: 24 kB / 379 MB, free: 7.785 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001281/0.5641, allocations: 28 kB / 379.1 MB, free: 7.758 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001672/0.5658, allocations: 0.626 MB / 379.7 MB, free: 7.125 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.296e-05/0.5658, allocations: 0 / 379.7 MB, free: 7.125 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001002/0.5659, allocations: 15.98 kB / 379.7 MB, free: 7.109 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.388e-06/0.5659, allocations: 8 kB / 379.7 MB, free: 7.102 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001222/0.5672, allocations: 455.7 kB / 380.2 MB, free: 6.656 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002392/0.5696, allocations: 1.041 MB / 381.2 MB, free: 5.559 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001538/0.5712, allocations: 0.6976 MB / 381.9 MB, free: 4.852 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.564e-05/0.5712, allocations: 0 / 381.9 MB, free: 4.852 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001674/0.5729, allocations: 0.7631 MB / 382.7 MB, free: 4.051 MB / 314.7 MB Notification: Performance of pre-optimization done (n=36): time 6.202e-06/0.5729, allocations: 0 / 382.7 MB, free: 4.051 MB / 314.7 MB Notification: Performance of matching and sorting (n=36): time 0.004676/0.5776, allocations: 2.106 MB / 384.8 MB, free: 1.832 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000268/0.5779, allocations: 333 kB / 385.1 MB, free: 1.445 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003197/0.5811, allocations: 1.456 MB / 386.6 MB, free: 15.98 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001952/0.5813, allocations: 45.7 kB / 386.6 MB, free: 15.93 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002304/0.5816, allocations: 240.9 kB / 386.8 MB, free: 15.69 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002026/0.5818, allocations: 87.05 kB / 386.9 MB, free: 15.6 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.088e-05/0.5819, allocations: 12 kB / 386.9 MB, free: 15.59 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.00016/0.5821, allocations: 326.8 kB / 387.3 MB, free: 15.26 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00118/0.5833, allocations: 443.9 kB / 387.7 MB, free: 14.82 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001193/0.5845, allocations: 478.7 kB / 388.2 MB, free: 14.35 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001083/0.5856, allocations: 0.5792 MB / 388.7 MB, free: 13.72 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.969e-06/0.5856, allocations: 0 / 388.7 MB, free: 13.72 MB / 330.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.003105/0.5887, allocations: 1.311 MB / 390 MB, free: 12.35 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000309/0.589, allocations: 289.5 kB / 390.3 MB, free: 12.02 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.735e-06/0.5891, allocations: 0 / 390.3 MB, free: 12.02 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.733e-05/0.5891, allocations: 0 / 390.3 MB, free: 12.02 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.464e-05/0.5891, allocations: 7.938 kB / 390.3 MB, free: 12.01 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.757e-06/0.5892, allocations: 4.062 kB / 390.3 MB, free: 12.01 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006245/0.5898, allocations: 47.81 kB / 390.4 MB, free: 11.96 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002775/0.5901, allocations: 155.9 kB / 390.5 MB, free: 11.81 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: 43 ($PRE.dFFREGSRL.delay.inertialDelaySensitive[2].y,$PRE.dFFREGSRL.delay.inertialDelaySensitive[1].y,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,clock.y,data_0.y,reset.y,data_1.y,set.y,$PRE.dFFREGSRL.delay.inertialDelaySensitive[1].x,dFFREGSRL.delay.inertialDelaySensitive[1].x,dFFREGSRL.delay.inertialDelaySensitive[1].y,dFFREGSRL.delay.inertialDelaySensitive[1].delayTime,dFFREGSRL.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGSRL.delay.inertialDelaySensitive[1].y_old,dFFREGSRL.delay.inertialDelaySensitive[1].lh,dFFREGSRL.delay.inertialDelaySensitive[1].t_next,$PRE.dFFREGSRL.delay.inertialDelaySensitive[2].x,dFFREGSRL.delay.inertialDelaySensitive[2].x,dFFREGSRL.delay.inertialDelaySensitive[2].y,dFFREGSRL.delay.inertialDelaySensitive[2].delayTime,dFFREGSRL.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGSRL.delay.inertialDelaySensitive[2].y_old,dFFREGSRL.delay.inertialDelaySensitive[2].lh,dFFREGSRL.delay.inertialDelaySensitive[2].t_next,$PRE.dFFREGSRL.dFFSR.set,dFFREGSRL.dFFSR.set,$PRE.dFFREGSRL.dFFSR.reset,dFFREGSRL.dFFSR.reset,$PRE.dFFREGSRL.dFFSR.clock,dFFREGSRL.dFFSR.clock,dFFREGSRL.dFFSR.dataIn[1],dFFREGSRL.dFFSR.dataIn[2],dFFREGSRL.dFFSR.dataOut[1],dFFREGSRL.dFFSR.dataOut[2],dFFREGSRL.dFFSR.clock_flag,dFFREGSRL.dFFSR.reset_set_flag,dFFREGSRL.dFFSR.nextstate[1],dFFREGSRL.dFFSR.nextstate[2],dFFREGSRL.dFFSR.next_assign_val[1],dFFREGSRL.dFFSR.next_assign_val[2]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 8 * 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.001873/0.592, allocations: 0.9519 MB / 391.5 MB, free: 10.8 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002812/0.5923, allocations: 130.5 kB / 391.6 MB, free: 10.67 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005266/0.5928, allocations: 199.8 kB / 391.8 MB, free: 10.47 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.26e-06/0.5929, allocations: 0 / 391.8 MB, free: 10.47 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.262e-06/0.5929, allocations: 0 / 391.8 MB, free: 10.47 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.694e-06/0.5929, allocations: 3.984 kB / 391.8 MB, free: 10.46 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004961/0.5979, allocations: 2.332 MB / 394.1 MB, free: 8.02 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.529e-06/0.5979, allocations: 0 / 394.1 MB, free: 8.02 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.109e-05/0.5979, allocations: 0 / 394.1 MB, free: 8.02 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.712e-06/0.598, allocations: 4 kB / 394.2 MB, free: 8.016 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001212/0.5981, allocations: 43.97 kB / 394.2 MB, free: 7.973 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.849e-06/0.5981, allocations: 0 / 394.2 MB, free: 7.973 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.394e-06/0.5981, allocations: 0 / 394.2 MB, free: 7.973 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003581/0.6017, allocations: 1.614 MB / 395.8 MB, free: 6.289 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001841/0.6036, allocations: 0.659 MB / 396.5 MB, free: 5.609 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003204/0.6039, allocations: 59.97 kB / 396.5 MB, free: 5.551 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000637/0.6046, allocations: 39.97 kB / 396.6 MB, free: 5.512 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000948/0.6056, allocations: 359.6 kB / 396.9 MB, free: 5.16 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002796/0.6058, allocations: 155.9 kB / 397.1 MB, free: 5.008 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.002877/0.6087, allocations: 1.212 MB / 398.3 MB, free: 3.793 MB / 330.7 MB Notification: Performance of sort global known variables: time 9.01e-07/0.6088, allocations: 0 / 398.3 MB, free: 3.793 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0009427/0.6097, allocations: 148 kB / 398.4 MB, free: 3.648 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: 36 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,clock.y,data_0.y,reset.y,data_1.y,set.y,dFFREGSRL.delay.inertialDelaySensitive[1].x,dFFREGSRL.delay.inertialDelaySensitive[1].y,dFFREGSRL.delay.inertialDelaySensitive[1].delayTime,dFFREGSRL.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGSRL.delay.inertialDelaySensitive[1].y_old,dFFREGSRL.delay.inertialDelaySensitive[1].lh,dFFREGSRL.delay.inertialDelaySensitive[1].t_next,dFFREGSRL.delay.inertialDelaySensitive[2].x,dFFREGSRL.delay.inertialDelaySensitive[2].y,dFFREGSRL.delay.inertialDelaySensitive[2].delayTime,dFFREGSRL.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGSRL.delay.inertialDelaySensitive[2].y_old,dFFREGSRL.delay.inertialDelaySensitive[2].lh,dFFREGSRL.delay.inertialDelaySensitive[2].t_next,dFFREGSRL.dFFSR.set,dFFREGSRL.dFFSR.reset,dFFREGSRL.dFFSR.clock,dFFREGSRL.dFFSR.dataIn[1],dFFREGSRL.dFFSR.dataIn[2],dFFREGSRL.dFFSR.dataOut[1],dFFREGSRL.dFFSR.dataOut[2],dFFREGSRL.dFFSR.clock_flag,dFFREGSRL.dFFSR.reset_set_flag,dFFREGSRL.dFFSR.nextstate[1],dFFREGSRL.dFFSR.nextstate[2],dFFREGSRL.dFFSR.next_assign_val[1],dFFREGSRL.dFFSR.next_assign_val[2]) * Number of discrete states: 34 (set.y,data_1.y,reset.y,data_0.y,clock.y,dFFREGSRL.dFFSR.dataOut[2],dFFREGSRL.dFFSR.dataOut[1],dFFREGSRL.dFFSR.next_assign_val[2],dFFREGSRL.dFFSR.next_assign_val[1],dFFREGSRL.dFFSR.nextstate[2],dFFREGSRL.dFFSR.nextstate[1],dFFREGSRL.dFFSR.reset_set_flag,dFFREGSRL.dFFSR.clock_flag,dFFREGSRL.dFFSR.clock,dFFREGSRL.dFFSR.reset,dFFREGSRL.dFFSR.set,dFFREGSRL.delay.inertialDelaySensitive[2].y,dFFREGSRL.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGSRL.delay.inertialDelaySensitive[2].t_next,dFFREGSRL.delay.inertialDelaySensitive[2].delayTime,dFFREGSRL.delay.inertialDelaySensitive[2].lh,dFFREGSRL.delay.inertialDelaySensitive[2].y_old,$whenCondition4,$whenCondition3,dFFREGSRL.delay.inertialDelaySensitive[2].x,dFFREGSRL.delay.inertialDelaySensitive[1].y,dFFREGSRL.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGSRL.delay.inertialDelaySensitive[1].t_next,dFFREGSRL.delay.inertialDelaySensitive[1].delayTime,dFFREGSRL.delay.inertialDelaySensitive[1].lh,dFFREGSRL.delay.inertialDelaySensitive[1].y_old,$whenCondition2,$whenCondition1,dFFREGSRL.delay.inertialDelaySensitive[1].x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 8 * 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.00426/0.614, allocations: 2.265 MB / 400.7 MB, free: 1.305 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.003599/0.6177, allocations: 1.917 MB / 402.6 MB, free: 15.29 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.35e-06/0.6177, allocations: 0 / 402.6 MB, free: 15.29 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002224/0.62, allocations: 1.393 MB / 404 MB, free: 13.79 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002012/0.622, allocations: 312.1 kB / 404.3 MB, free: 13.49 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01758/0.6396, allocations: 6.885 MB / 411.2 MB, free: 6.52 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001398/0.6411, allocations: 1.166 MB / 412.4 MB, free: 5.328 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000291/0.6414, allocations: 155.4 kB / 412.5 MB, free: 5.176 MB / 346.7 MB Notification: Performance of SimCode: time 3.126e-06/0.6414, allocations: 0 / 412.5 MB, free: 5.176 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.025/3.667, allocations: 13.75 MB / 426.3 MB, free: 103.7 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRL_res.mat does not exist to compare? outputFormat=mat