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.DFFREG.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.DFFREG,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Digital_Examples_DFFREG",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.915/1.915, allocations: 194.9 MB / 211.7 MB, free: 2.992 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003736/0.0003736, allocations: 12 kB / 264 MB, free: 13.48 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09514/0.09555, allocations: 44.51 MB / 308.5 MB, free: 0.9102 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4277/0.5233, allocations: 77.96 MB / 386.5 MB, free: 14.87 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002156/0.5236, allocations: 80.7 kB / 386.6 MB, free: 14.87 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08121/0.6048, allocations: 27.8 MB / 414.4 MB, free: 8.867 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.124e-06/0.6049, allocations: 0 / 414.4 MB, free: 8.867 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.955e-05/0.6049, allocations: 11.66 kB / 414.4 MB, free: 8.867 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.001536/0.6065, allocations: 1.135 MB / 415.5 MB, free: 7.883 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.997e-05/0.6065, allocations: 11.66 kB / 415.5 MB, free: 7.879 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002062/0.6068, allocations: 61.45 kB / 415.6 MB, free: 7.832 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001828/0.607, allocations: 89.64 kB / 415.7 MB, free: 7.789 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007459/0.6077, allocations: 424 kB / 416.1 MB, free: 7.492 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.772e-05/0.6078, allocations: 18.78 kB / 416.1 MB, free: 7.492 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001025/0.6079, allocations: 25.94 kB / 416.1 MB, free: 7.488 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001211/0.6091, allocations: 0.5112 MB / 416.6 MB, free: 7.328 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.762e-05/0.6092, allocations: 3.984 kB / 416.6 MB, free: 7.324 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.458e-05/0.6093, allocations: 14.69 kB / 416.7 MB, free: 7.324 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.115e-05/0.6093, allocations: 0 / 416.7 MB, free: 7.324 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008619/0.6102, allocations: 369.7 kB / 417 MB, free: 7.258 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001775/0.612, allocations: 0.8618 MB / 417.9 MB, free: 6.777 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001058/0.6131, allocations: 0.5081 MB / 418.4 MB, free: 6.691 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.175e-05/0.6131, allocations: 0 / 418.4 MB, free: 6.691 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001191/0.6143, allocations: 0.6687 MB / 419.1 MB, free: 6.355 MB / 314.7 MB Notification: Performance of pre-optimization done (n=34): time 3.406e-06/0.6144, allocations: 0 / 419.1 MB, free: 6.355 MB / 314.7 MB Notification: Performance of matching and sorting (n=34): time 0.003524/0.6179, allocations: 1.791 MB / 420.9 MB, free: 5.574 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001642/0.6181, allocations: 275 kB / 421.1 MB, free: 5.285 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002071/0.6202, allocations: 1.032 MB / 422.2 MB, free: 4.852 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002187/0.6205, allocations: 44.75 kB / 422.2 MB, free: 4.816 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001235/0.6206, allocations: 197.2 kB / 422.4 MB, free: 4.66 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000174/0.6208, allocations: 79.11 kB / 422.5 MB, free: 4.617 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.2e-05/0.6209, allocations: 11.81 kB / 422.5 MB, free: 4.613 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.441e-05/0.621, allocations: 324.8 kB / 422.8 MB, free: 4.297 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008556/0.6218, allocations: 352.8 kB / 423.1 MB, free: 4.238 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008276/0.6227, allocations: 389.2 kB / 423.5 MB, free: 4.145 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008336/0.6235, allocations: 495.1 kB / 424 MB, free: 3.879 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.961e-06/0.6236, allocations: 0 / 424 MB, free: 3.879 MB / 314.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.002237/0.6258, allocations: 1.119 MB / 425.1 MB, free: 3.477 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001775/0.626, allocations: 245.5 kB / 425.4 MB, free: 3.238 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.346e-06/0.6261, allocations: 0 / 425.4 MB, free: 3.238 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.266e-05/0.6261, allocations: 3.984 kB / 425.4 MB, free: 3.234 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.531e-05/0.6261, allocations: 3.906 kB / 425.4 MB, free: 3.234 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.807e-06/0.6262, allocations: 3.875 kB / 425.4 MB, free: 3.234 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005345/0.6267, allocations: 42.69 kB / 425.4 MB, free: 3.219 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002251/0.6269, allocations: 152.9 kB / 425.6 MB, free: 3.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.dFFREG.delay.inertialDelaySensitive[2].y,$PRE.dFFREG.delay.inertialDelaySensitive[1].y,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,clock.y,data_0.y,reset.y,data_1.y,$PRE.dFFREG.delay.inertialDelaySensitive[1].x,dFFREG.delay.inertialDelaySensitive[1].x,dFFREG.delay.inertialDelaySensitive[1].y,dFFREG.delay.inertialDelaySensitive[1].delayTime,dFFREG.delay.inertialDelaySensitive[1].y_auxiliary,dFFREG.delay.inertialDelaySensitive[1].y_old,dFFREG.delay.inertialDelaySensitive[1].lh,dFFREG.delay.inertialDelaySensitive[1].t_next,$PRE.dFFREG.delay.inertialDelaySensitive[2].x,dFFREG.delay.inertialDelaySensitive[2].x,dFFREG.delay.inertialDelaySensitive[2].y,dFFREG.delay.inertialDelaySensitive[2].delayTime,dFFREG.delay.inertialDelaySensitive[2].y_auxiliary,dFFREG.delay.inertialDelaySensitive[2].y_old,dFFREG.delay.inertialDelaySensitive[2].lh,dFFREG.delay.inertialDelaySensitive[2].t_next,$PRE.dFFREG.dFFR.reset,dFFREG.dFFR.reset,$PRE.dFFREG.dFFR.clock,dFFREG.dFFR.clock,dFFREG.dFFR.dataIn[1],dFFREG.dFFR.dataIn[2],dFFREG.dFFR.dataOut[1],dFFREG.dFFR.dataOut[2],dFFREG.dFFR.clock_flag,dFFREG.dFFR.reset_flag,dFFREG.dFFR.nextstate[1],dFFREG.dFFR.nextstate[2],dFFREG.dFFR.next_assign_val[1],dFFREG.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.001206/0.6282, allocations: 0.7661 MB / 426.3 MB, free: 2.715 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001864/0.6284, allocations: 88.72 kB / 426.4 MB, free: 2.672 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003756/0.6287, allocations: 155.6 kB / 426.6 MB, free: 2.586 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.949e-06/0.6288, allocations: 0 / 426.6 MB, free: 2.586 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.133e-06/0.6288, allocations: 0 / 426.6 MB, free: 2.586 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.669e-06/0.6288, allocations: 0 / 426.6 MB, free: 2.586 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003557/0.6324, allocations: 1.98 MB / 428.5 MB, free: 1.684 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.55e-06/0.6324, allocations: 0 / 428.5 MB, free: 1.684 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.919e-05/0.6324, allocations: 0 / 428.5 MB, free: 1.684 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.712e-06/0.6324, allocations: 11.08 kB / 428.6 MB, free: 1.676 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.768e-05/0.6326, allocations: 32.64 kB / 428.6 MB, free: 1.672 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.859e-06/0.6326, allocations: 0 / 428.6 MB, free: 1.672 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.374e-06/0.6326, allocations: 7.094 kB / 428.6 MB, free: 1.668 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002609/0.6352, allocations: 1.386 MB / 430 MB, free: 1.121 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001231/0.6365, allocations: 0.5606 MB / 430.5 MB, free: 0.8398 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002518/0.6367, allocations: 61.75 kB / 430.6 MB, free: 0.832 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004932/0.6372, allocations: 31.34 kB / 430.6 MB, free: 0.8242 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005587/0.6378, allocations: 240.2 kB / 430.9 MB, free: 0.7578 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002064/0.638, allocations: 162.3 kB / 431 MB, free: 0.7383 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001725/0.6398, allocations: 0.8639 MB / 431.9 MB, free: 396 kB / 314.7 MB Notification: Performance of sort global known variables: time 1.593e-06/0.6398, allocations: 0 / 431.9 MB, free: 396 kB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007989/0.6406, allocations: 128.4 kB / 432 MB, free: 388 kB / 314.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,dFFREG.delay.inertialDelaySensitive[1].x,dFFREG.delay.inertialDelaySensitive[1].y,dFFREG.delay.inertialDelaySensitive[1].delayTime,dFFREG.delay.inertialDelaySensitive[1].y_auxiliary,dFFREG.delay.inertialDelaySensitive[1].y_old,dFFREG.delay.inertialDelaySensitive[1].lh,dFFREG.delay.inertialDelaySensitive[1].t_next,dFFREG.delay.inertialDelaySensitive[2].x,dFFREG.delay.inertialDelaySensitive[2].y,dFFREG.delay.inertialDelaySensitive[2].delayTime,dFFREG.delay.inertialDelaySensitive[2].y_auxiliary,dFFREG.delay.inertialDelaySensitive[2].y_old,dFFREG.delay.inertialDelaySensitive[2].lh,dFFREG.delay.inertialDelaySensitive[2].t_next,dFFREG.dFFR.reset,dFFREG.dFFR.clock,dFFREG.dFFR.dataIn[1],dFFREG.dFFR.dataIn[2],dFFREG.dFFR.dataOut[1],dFFREG.dFFR.dataOut[2],dFFREG.dFFR.clock_flag,dFFREG.dFFR.reset_flag,dFFREG.dFFR.nextstate[1],dFFREG.dFFR.nextstate[2],dFFREG.dFFR.next_assign_val[1],dFFREG.dFFR.next_assign_val[2]) * Number of discrete states: 32 (data_1.y,reset.y,data_0.y,clock.y,dFFREG.dFFR.dataOut[2],dFFREG.dFFR.dataOut[1],dFFREG.dFFR.next_assign_val[2],dFFREG.dFFR.next_assign_val[1],dFFREG.dFFR.nextstate[2],dFFREG.dFFR.nextstate[1],dFFREG.dFFR.reset_flag,dFFREG.dFFR.clock_flag,dFFREG.dFFR.clock,dFFREG.dFFR.reset,dFFREG.delay.inertialDelaySensitive[1].y,dFFREG.delay.inertialDelaySensitive[1].y_auxiliary,dFFREG.delay.inertialDelaySensitive[1].t_next,dFFREG.delay.inertialDelaySensitive[1].delayTime,dFFREG.delay.inertialDelaySensitive[1].lh,dFFREG.delay.inertialDelaySensitive[1].y_old,$whenCondition2,$whenCondition1,dFFREG.delay.inertialDelaySensitive[1].x,dFFREG.delay.inertialDelaySensitive[2].y,dFFREG.delay.inertialDelaySensitive[2].y_auxiliary,dFFREG.delay.inertialDelaySensitive[2].t_next,dFFREG.delay.inertialDelaySensitive[2].delayTime,dFFREG.delay.inertialDelaySensitive[2].lh,dFFREG.delay.inertialDelaySensitive[2].y_old,$whenCondition4,$whenCondition3,dFFREG.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.003346/0.644, allocations: 2.035 MB / 434.1 MB, free: 15.27 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002784/0.6468, allocations: 1.526 MB / 435.6 MB, free: 14.68 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.789e-06/0.6469, allocations: 0 / 435.6 MB, free: 14.68 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001685/0.6486, allocations: 1.12 MB / 436.7 MB, free: 14.16 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001906/0.6505, allocations: 270.2 kB / 437 MB, free: 14.04 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01231/0.6629, allocations: 4.97 MB / 441.9 MB, free: 9.043 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001175/0.6641, allocations: 1.038 MB / 443 MB, free: 7.98 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001678/0.6643, allocations: 75.41 kB / 443 MB, free: 7.906 MB / 330.7 MB Notification: Performance of SimCode: time 9.11e-07/0.6643, allocations: 3.938 kB / 443.1 MB, free: 7.902 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.727/3.391, allocations: 9.396 MB / 452.4 MB, free: 14.36 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Digital.Examples.DFFREG_res.mat does not exist to compare? outputFormat=mat