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.DFFREGSRL.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.DFFREGSRL,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Digital_Examples_DFFREGSRL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.01/2.01, allocations: 194.8 MB / 211.7 MB, free: 3 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003537/0.0003536, allocations: 8 kB / 264 MB, free: 13.48 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09588/0.09627, allocations: 44.51 MB / 308.5 MB, free: 0.9102 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4101/0.5064, allocations: 78.26 MB / 386.8 MB, free: 14.94 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002598/0.5068, allocations: 74.91 kB / 386.9 MB, free: 14.94 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09379/0.6006, allocations: 32.63 MB / 419.5 MB, free: 6.535 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.396e-06/0.6006, allocations: 0 / 419.5 MB, free: 6.535 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.054e-05/0.6007, allocations: 15.47 kB / 419.5 MB, free: 6.531 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.002166/0.6029, allocations: 1.506 MB / 421 MB, free: 5.285 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.664e-05/0.6029, allocations: 7.75 kB / 421 MB, free: 5.285 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002553/0.6032, allocations: 61.2 kB / 421.1 MB, free: 5.242 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002278/0.6034, allocations: 131.5 kB / 421.2 MB, free: 5.176 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009344/0.6044, allocations: 0.5056 MB / 421.7 MB, free: 4.828 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.457e-05/0.6045, allocations: 22.12 kB / 421.7 MB, free: 4.828 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001218/0.6046, allocations: 34.17 kB / 421.8 MB, free: 4.82 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001499/0.6061, allocations: 0.6367 MB / 422.4 MB, free: 4.633 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.468e-05/0.6061, allocations: 0 / 422.4 MB, free: 4.633 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.908e-05/0.6063, allocations: 18.83 kB / 422.4 MB, free: 4.629 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.025e-06/0.6063, allocations: 0 / 422.4 MB, free: 4.629 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001064/0.6074, allocations: 476.3 kB / 422.9 MB, free: 4.547 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002358/0.6097, allocations: 1.077 MB / 424 MB, free: 3.965 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001403/0.6112, allocations: 0.6998 MB / 424.7 MB, free: 3.863 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.319e-05/0.6112, allocations: 3.938 kB / 424.7 MB, free: 3.859 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00144/0.6127, allocations: 0.7738 MB / 425.5 MB, free: 3.512 MB / 314.7 MB Notification: Performance of pre-optimization done (n=36): time 3.717e-06/0.6127, allocations: 0 / 425.5 MB, free: 3.512 MB / 314.7 MB Notification: Performance of matching and sorting (n=36): time 0.005168/0.6179, allocations: 2.131 MB / 427.6 MB, free: 2.637 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002499/0.6182, allocations: 330.3 kB / 427.9 MB, free: 2.309 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004646/0.6229, allocations: 1.614 MB / 429.5 MB, free: 1.617 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002922/0.6232, allocations: 42.33 kB / 429.6 MB, free: 1.586 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003193/0.6235, allocations: 244.7 kB / 429.8 MB, free: 1.426 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002548/0.6238, allocations: 82.12 kB / 429.9 MB, free: 1.383 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001169/0.6239, allocations: 9.719 kB / 429.9 MB, free: 1.383 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.463e-05/0.6241, allocations: 335.7 kB / 430.2 MB, free: 1.059 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001433/0.6255, allocations: 451 kB / 430.7 MB, free: 0.9844 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00143/0.627, allocations: 482.9 kB / 431.1 MB, free: 0.8867 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0013/0.6283, allocations: 0.5825 MB / 431.7 MB, free: 0.5742 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.51e-06/0.6283, allocations: 0 / 431.7 MB, free: 0.5742 MB / 314.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.003998/0.6323, allocations: 1.33 MB / 433 MB, free: 116 kB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004066/0.6328, allocations: 288.6 kB / 433.3 MB, free: 15.84 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.332e-05/0.6328, allocations: 3.984 kB / 433.3 MB, free: 15.84 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.654e-05/0.6329, allocations: 0 / 433.3 MB, free: 15.84 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.255e-05/0.6329, allocations: 7.906 kB / 433.3 MB, free: 15.84 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.69e-05/0.6329, allocations: 7.938 kB / 433.3 MB, free: 15.83 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009513/0.6339, allocations: 49.81 kB / 433.4 MB, free: 15.81 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003365/0.6343, allocations: 153.3 kB / 433.5 MB, free: 15.8 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.002729/0.637, allocations: 0.9885 MB / 434.5 MB, free: 15.21 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003797/0.6374, allocations: 128.8 kB / 434.7 MB, free: 15.15 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001019/0.6385, allocations: 257.5 kB / 434.9 MB, free: 15.01 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.672e-06/0.6385, allocations: 0 / 434.9 MB, free: 15.01 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.266e-06/0.6385, allocations: 0 / 434.9 MB, free: 15.01 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.257e-05/0.6385, allocations: 3.953 kB / 434.9 MB, free: 15.01 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007095/0.6456, allocations: 2.413 MB / 437.3 MB, free: 13.27 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.754e-06/0.6457, allocations: 0 / 437.3 MB, free: 13.27 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.955e-05/0.6457, allocations: 3.938 kB / 437.3 MB, free: 13.27 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.095e-05/0.6458, allocations: 4 kB / 437.3 MB, free: 13.26 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001804/0.646, allocations: 39.91 kB / 437.4 MB, free: 13.23 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.03e-06/0.646, allocations: 0 / 437.4 MB, free: 13.23 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.252e-06/0.646, allocations: 3.953 kB / 437.4 MB, free: 13.22 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005209/0.6512, allocations: 1.638 MB / 439 MB, free: 11.86 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002617/0.6539, allocations: 0.674 MB / 439.7 MB, free: 11.34 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004566/0.6544, allocations: 66.08 kB / 439.8 MB, free: 11.3 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008791/0.6553, allocations: 42.28 kB / 439.8 MB, free: 11.26 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00126/0.6566, allocations: 350.1 kB / 440.1 MB, free: 11 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003997/0.657, allocations: 162.7 kB / 440.3 MB, free: 10.85 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.00474/0.6617, allocations: 1.336 MB / 441.6 MB, free: 9.609 MB / 330.7 MB Notification: Performance of sort global known variables: time 8.72e-07/0.6618, allocations: 4 kB / 441.6 MB, free: 9.605 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001431/0.6632, allocations: 148 kB / 441.8 MB, free: 9.461 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.006166/0.6694, allocations: 2.28 MB / 444.1 MB, free: 7.105 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.004996/0.6745, allocations: 1.932 MB / 446 MB, free: 5.074 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.741e-06/0.6745, allocations: 0 / 446 MB, free: 5.074 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003211/0.6778, allocations: 1.397 MB / 447.4 MB, free: 3.578 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002706/0.6805, allocations: 303.5 kB / 447.7 MB, free: 3.281 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02522/0.7058, allocations: 7.383 MB / 455.1 MB, free: 11.81 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001783/0.7076, allocations: 1.208 MB / 456.3 MB, free: 10.57 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003025/0.708, allocations: 151.4 kB / 456.4 MB, free: 10.43 MB / 346.7 MB Notification: Performance of SimCode: time 1.142e-06/0.708, allocations: 4 kB / 456.4 MB, free: 10.42 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.017/3.725, allocations: 15 MB / 471.4 MB, free: 11.22 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRL_res.mat does not exist to compare? outputFormat=mat