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.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_Modelica_Electrical_Digital_Examples_DFFREGSRL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.106/2.106, allocations: 194.9 MB / 211.1 MB, free: 8.555 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003827/0.0003826, allocations: 12 kB / 264.1 MB, free: 3.48 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3367/0.3371, allocations: 44.51 MB / 308.6 MB, free: 12.78 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1379/0.4751, allocations: 78.26 MB / 386.8 MB, free: 14.4 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000282/0.4755, allocations: 67.97 kB / 386.9 MB, free: 14.33 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3612/0.8367, allocations: 32.63 MB / 419.5 MB, free: 91.57 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.615e-06/0.8368, allocations: 3.844 kB / 419.5 MB, free: 91.57 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.997e-05/0.8369, allocations: 14.38 kB / 419.5 MB, free: 91.57 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: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.002289/0.8392, allocations: 1.514 MB / 421.1 MB, free: 90.57 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.169e-05/0.8392, allocations: 9.219 kB / 421.1 MB, free: 90.57 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001884/0.8394, allocations: 62.52 kB / 421.1 MB, free: 90.53 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002564/0.8397, allocations: 131.7 kB / 421.3 MB, free: 90.46 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001042/0.8407, allocations: 0.5088 MB / 421.8 MB, free: 90.14 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.926e-05/0.8408, allocations: 22.62 kB / 421.8 MB, free: 90.14 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000123/0.841, allocations: 31.47 kB / 421.8 MB, free: 90.14 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001446/0.8424, allocations: 0.6263 MB / 422.4 MB, free: 90.11 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.247e-05/0.8424, allocations: 3.938 kB / 422.4 MB, free: 90.11 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001035/0.8426, allocations: 23.84 kB / 422.5 MB, free: 90.11 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.394e-06/0.8426, allocations: 3.938 kB / 422.5 MB, free: 90.11 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001041/0.8436, allocations: 462.7 kB / 422.9 MB, free: 90.11 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002368/0.846, allocations: 1.092 MB / 424 MB, free: 89.71 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001275/0.8473, allocations: 0.6924 MB / 424.7 MB, free: 89.69 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.083e-05/0.8474, allocations: 7.938 kB / 424.7 MB, free: 89.69 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001312/0.8487, allocations: 0.7704 MB / 425.5 MB, free: 89.51 MB / 346.7 MB Notification: Performance of pre-optimization done (n=36): time 3.487e-06/0.8487, allocations: 0 / 425.5 MB, free: 89.51 MB / 346.7 MB Notification: Performance of matching and sorting (n=36): time 0.003971/0.8527, allocations: 2.137 MB / 427.6 MB, free: 88.86 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000182/0.8529, allocations: 323.8 kB / 427.9 MB, free: 88.55 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003283/0.8562, allocations: 1.606 MB / 429.5 MB, free: 88.09 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001903/0.8564, allocations: 54.89 kB / 429.6 MB, free: 88.06 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002912/0.8567, allocations: 231.2 kB / 429.8 MB, free: 87.89 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001703/0.8569, allocations: 81.33 kB / 429.9 MB, free: 87.85 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.401e-05/0.857, allocations: 13.38 kB / 429.9 MB, free: 87.84 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000148/0.8572, allocations: 381.1 kB / 430.3 MB, free: 87.5 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001005/0.8582, allocations: 453.3 kB / 430.7 MB, free: 87.36 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009846/0.8592, allocations: 478.1 kB / 431.2 MB, free: 87.19 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008731/0.8601, allocations: 0.5872 MB / 431.8 MB, free: 86.81 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.519e-06/0.8601, allocations: 0 / 431.8 MB, free: 86.81 MB / 346.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.002741/0.8629, allocations: 1.364 MB / 433.1 MB, free: 86.18 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002378/0.8631, allocations: 294.1 kB / 433.4 MB, free: 85.91 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.927e-06/0.8632, allocations: 0 / 433.4 MB, free: 85.91 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.484e-05/0.8632, allocations: 3.594 kB / 433.4 MB, free: 85.91 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.404e-05/0.8632, allocations: 0 / 433.4 MB, free: 85.91 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.697e-06/0.8633, allocations: 2.781 kB / 433.4 MB, free: 85.91 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007112/0.864, allocations: 52.66 kB / 433.5 MB, free: 85.9 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000235/0.8642, allocations: 151.5 kB / 433.6 MB, free: 85.89 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: 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.001769/0.866, allocations: 0.9855 MB / 434.6 MB, free: 85.28 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003071/0.8663, allocations: 138.2 kB / 434.8 MB, free: 85.21 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007152/0.8671, allocations: 251.7 kB / 435 MB, free: 85.07 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.211e-06/0.8671, allocations: 3.75 kB / 435 MB, free: 85.07 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.043e-06/0.8671, allocations: 4 kB / 435 MB, free: 85.06 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.229e-06/0.8671, allocations: 0 / 435 MB, free: 85.06 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004816/0.872, allocations: 2.416 MB / 437.4 MB, free: 83.58 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.483e-06/0.872, allocations: 0 / 437.4 MB, free: 83.58 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.513e-05/0.872, allocations: 7.844 kB / 437.4 MB, free: 83.57 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.995e-06/0.8721, allocations: 3.469 kB / 437.4 MB, free: 83.57 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001095/0.8722, allocations: 39.17 kB / 437.5 MB, free: 83.54 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.997e-06/0.8722, allocations: 4 kB / 437.5 MB, free: 83.54 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.175e-06/0.8722, allocations: 0 / 437.5 MB, free: 83.54 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00297/0.8752, allocations: 1.644 MB / 439.1 MB, free: 81.99 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001576/0.8768, allocations: 0.6759 MB / 439.8 MB, free: 81.41 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002807/0.8771, allocations: 66.5 kB / 439.9 MB, free: 81.36 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005847/0.8777, allocations: 34.92 kB / 439.9 MB, free: 81.33 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000791/0.8785, allocations: 360.4 kB / 440.3 MB, free: 81.07 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002234/0.8787, allocations: 160.8 kB / 440.4 MB, free: 80.92 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.002799/0.8815, allocations: 1.33 MB / 441.7 MB, free: 79.78 MB / 346.7 MB Notification: Performance of sort global known variables: time 8.52e-07/0.8816, allocations: 0 / 441.7 MB, free: 79.78 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001009/0.8826, allocations: 151.1 kB / 441.9 MB, free: 79.64 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: 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.003664/0.8863, allocations: 2.275 MB / 444.2 MB, free: 77.47 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0033/0.8896, allocations: 1.936 MB / 446.1 MB, free: 75.61 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.448e-06/0.8897, allocations: 0 / 446.1 MB, free: 75.61 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001769/0.8915, allocations: 1.401 MB / 447.5 MB, free: 74.21 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001908/0.8934, allocations: 299.2 kB / 447.8 MB, free: 73.99 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01607/0.9095, allocations: 7.271 MB / 455.1 MB, free: 66.78 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00129/0.9109, allocations: 1.22 MB / 456.3 MB, free: 65.53 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0004519/0.9113, allocations: 161.1 kB / 456.4 MB, free: 65.38 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000225/0.9116, allocations: 151.4 kB / 456.6 MB, free: 65.23 MB / 346.7 MB Notification: Performance of SimCode: time 1.252e-06/0.9116, allocations: 0 / 456.6 MB, free: 65.23 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05656/0.9682, allocations: 22.23 MB / 478.8 MB, free: 42.73 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002179/0.9684, allocations: 176.4 kB / 479 MB, free: 42.49 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.253/4.222, allocations: 0 / 479 MB, free: 42.49 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DFFREGSRL_res.mat does not exist to compare? outputFormat=mat