Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_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_Modelica_Electrical_Digital_Examples_DFFREG",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.105/2.105, allocations: 194.9 MB / 211.1 MB, free: 8.555 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004976/0.0004976, allocations: 12 kB / 264.1 MB, free: 3.477 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3018/0.3024, allocations: 44.5 MB / 308.6 MB, free: 12.68 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1401/0.4426, allocations: 77.97 MB / 386.5 MB, free: 14.6 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002762/0.4429, allocations: 75.95 kB / 386.6 MB, free: 14.52 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0973/0.5402, allocations: 27.79 MB / 414.4 MB, free: 2.746 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.785e-06/0.5403, allocations: 0 / 414.4 MB, free: 2.746 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.402e-05/0.5403, allocations: 12 kB / 414.4 MB, free: 2.734 MB / 346.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.001893/0.5422, allocations: 1.147 MB / 415.6 MB, free: 1.492 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.285e-05/0.5423, allocations: 8.031 kB / 415.6 MB, free: 1.484 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002162/0.5426, allocations: 54.55 kB / 415.6 MB, free: 1.422 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000213/0.5428, allocations: 99 kB / 415.7 MB, free: 1.324 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009326/0.5437, allocations: 423.5 kB / 416.1 MB, free: 0.8711 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.673e-05/0.5438, allocations: 16 kB / 416.1 MB, free: 0.8555 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000119/0.544, allocations: 27.98 kB / 416.2 MB, free: 0.8281 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001398/0.5454, allocations: 0.5061 MB / 416.7 MB, free: 320 kB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.297e-05/0.5454, allocations: 0 / 416.7 MB, free: 320 kB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.544e-05/0.5455, allocations: 19.98 kB / 416.7 MB, free: 300 kB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.436e-06/0.5455, allocations: 4 kB / 416.7 MB, free: 296 kB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2521/0.7976, allocations: 367.4 kB / 417.1 MB, free: 92.16 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002547/0.8003, allocations: 0.8544 MB / 417.9 MB, free: 91.88 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001398/0.8017, allocations: 0.5086 MB / 418.4 MB, free: 91.85 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.078e-05/0.8018, allocations: 1.219 kB / 418.4 MB, free: 91.85 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001612/0.8034, allocations: 0.6576 MB / 419.1 MB, free: 91.67 MB / 346.7 MB Notification: Performance of pre-optimization done (n=34): time 5.511e-06/0.8035, allocations: 3.938 kB / 419.1 MB, free: 91.67 MB / 346.7 MB Notification: Performance of matching and sorting (n=34): time 0.003634/0.8071, allocations: 1.796 MB / 420.9 MB, free: 91.11 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001559/0.8073, allocations: 279.5 kB / 421.2 MB, free: 90.83 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002112/0.8094, allocations: 1.033 MB / 422.2 MB, free: 90.55 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002169/0.8097, allocations: 44.19 kB / 422.2 MB, free: 90.52 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001318/0.8098, allocations: 149.4 kB / 422.4 MB, free: 90.43 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001705/0.81, allocations: 76.45 kB / 422.5 MB, free: 90.39 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.331e-05/0.8101, allocations: 10.19 kB / 422.5 MB, free: 90.39 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.454e-05/0.8102, allocations: 355.6 kB / 422.8 MB, free: 90.08 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008438/0.8111, allocations: 342.9 kB / 423.1 MB, free: 90.08 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008151/0.8119, allocations: 387.9 kB / 423.5 MB, free: 90.05 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007956/0.8127, allocations: 491.4 kB / 424 MB, free: 89.83 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.282e-06/0.8128, allocations: 3.234 kB / 424 MB, free: 89.83 MB / 346.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.002401/0.8152, allocations: 1.127 MB / 425.1 MB, free: 89.56 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002104/0.8154, allocations: 249 kB / 425.4 MB, free: 89.34 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.026e-05/0.8155, allocations: 0 / 425.4 MB, free: 89.34 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.7e-05/0.8155, allocations: 0 / 425.4 MB, free: 89.34 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.594e-05/0.8156, allocations: 12.73 kB / 425.4 MB, free: 89.34 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.347e-06/0.8156, allocations: 2.438 kB / 425.4 MB, free: 89.34 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000593/0.8162, allocations: 45.45 kB / 425.4 MB, free: 89.33 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002177/0.8164, allocations: 150.9 kB / 425.6 MB, free: 89.33 MB / 346.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.001325/0.8178, allocations: 0.7668 MB / 426.3 MB, free: 88.94 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002081/0.818, allocations: 85.47 kB / 426.4 MB, free: 88.9 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004388/0.8184, allocations: 152.1 kB / 426.6 MB, free: 88.82 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.963e-06/0.8185, allocations: 6.875 kB / 426.6 MB, free: 88.82 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.233e-06/0.8185, allocations: 0 / 426.6 MB, free: 88.82 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.09e-06/0.8185, allocations: 3.406 kB / 426.6 MB, free: 88.82 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003818/0.8223, allocations: 1.968 MB / 428.6 MB, free: 87.95 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.735e-06/0.8224, allocations: 3.219 kB / 428.6 MB, free: 87.95 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.51e-05/0.8224, allocations: 7.422 kB / 428.6 MB, free: 87.94 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.154e-06/0.8225, allocations: 0 / 428.6 MB, free: 87.94 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001046/0.8226, allocations: 34.06 kB / 428.6 MB, free: 87.94 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.839e-06/0.8226, allocations: 3.812 kB / 428.6 MB, free: 87.94 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.795e-06/0.8226, allocations: 3.875 kB / 428.6 MB, free: 87.94 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002633/0.8252, allocations: 1.386 MB / 430 MB, free: 87.25 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001443/0.8267, allocations: 0.5642 MB / 430.6 MB, free: 86.91 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002967/0.8271, allocations: 63.86 kB / 430.6 MB, free: 86.88 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000564/0.8277, allocations: 36.81 kB / 430.7 MB, free: 86.88 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006176/0.8283, allocations: 240.6 kB / 430.9 MB, free: 86.82 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002268/0.8285, allocations: 162.1 kB / 431.1 MB, free: 86.81 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001839/0.8304, allocations: 0.8628 MB / 431.9 MB, free: 86.43 MB / 346.7 MB Notification: Performance of sort global known variables: time 8.22e-07/0.8304, allocations: 3.594 kB / 431.9 MB, free: 86.43 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0008031/0.8312, allocations: 121.5 kB / 432 MB, free: 86.43 MB / 346.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.00317/0.8344, allocations: 2.024 MB / 434.1 MB, free: 85.15 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002409/0.8369, allocations: 1.526 MB / 435.6 MB, free: 83.69 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.48e-06/0.8369, allocations: 0 / 435.6 MB, free: 83.69 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001523/0.8385, allocations: 1.117 MB / 436.7 MB, free: 82.56 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001948/0.8405, allocations: 286.1 kB / 437 MB, free: 82.37 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01163/0.8522, allocations: 4.893 MB / 441.9 MB, free: 77.95 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008537/0.8531, allocations: 1.052 MB / 442.9 MB, free: 76.97 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0002252/0.8533, allocations: 31.31 kB / 443 MB, free: 76.95 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001262/0.8535, allocations: 74.42 kB / 443 MB, free: 76.88 MB / 346.7 MB Notification: Performance of SimCode: time 9.72e-07/0.8535, allocations: 0 / 443 MB, free: 76.88 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04349/0.897, allocations: 16.45 MB / 459.5 MB, free: 61.25 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00024/0.8973, allocations: 176.8 kB / 459.7 MB, free: 61 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.031/3.929, allocations: 4.062 kB / 459.7 MB, free: 60.99 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DFFREG_res.mat does not exist to compare? outputFormat=mat