Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Digital.Examples.DFFREGSRH.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.DFFREGSRH,fileNamePrefix="Modelica_3_2_1_Modelica_Electrical_Digital_Examples_DFFREGSRH",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.692/1.692, allocations: 171.2 MB / 186.1 MB, free: 1.125 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004822/0.0004819, allocations: 8 kB / 233.4 MB, free: 2.277 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08122/0.08176, allocations: 38.77 MB / 272.1 MB, free: 11.43 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3425/0.4243, allocations: 72.9 MB / 345 MB, free: 304 kB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002546/0.4246, allocations: 72.08 kB / 345.1 MB, free: 264 kB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1028/0.5274, allocations: 30.45 MB / 375.5 MB, free: 6.688 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.705e-06/0.5275, allocations: 0 / 375.5 MB, free: 6.688 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.231e-05/0.5276, allocations: 12 kB / 375.5 MB, free: 6.676 MB / 298.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.002684/0.5303, allocations: 1.483 MB / 377 MB, free: 5.168 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.541e-05/0.5303, allocations: 8.031 kB / 377 MB, free: 5.16 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002636/0.5306, allocations: 59.61 kB / 377.1 MB, free: 5.102 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002948/0.5309, allocations: 130.4 kB / 377.2 MB, free: 4.973 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0013/0.5322, allocations: 0.5181 MB / 377.7 MB, free: 4.441 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.668e-05/0.5324, allocations: 23.25 kB / 377.8 MB, free: 4.422 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000137/0.5325, allocations: 27.44 kB / 377.8 MB, free: 4.398 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001702/0.5342, allocations: 0.6205 MB / 378.4 MB, free: 3.922 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.616e-05/0.5343, allocations: 0 / 378.4 MB, free: 3.922 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001051/0.5344, allocations: 23.8 kB / 378.4 MB, free: 3.902 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.997e-06/0.5344, allocations: 4 kB / 378.4 MB, free: 3.898 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001222/0.5357, allocations: 461.5 kB / 378.9 MB, free: 3.582 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002583/0.5383, allocations: 1.04 MB / 379.9 MB, free: 2.711 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001548/0.5399, allocations: 0.6931 MB / 380.6 MB, free: 2.305 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.829e-05/0.5399, allocations: 0 / 380.6 MB, free: 2.305 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001726/0.5417, allocations: 0.7628 MB / 381.4 MB, free: 1.656 MB / 298.7 MB Notification: Performance of pre-optimization done (n=36): time 3.887e-06/0.5417, allocations: 0 / 381.4 MB, free: 1.656 MB / 298.7 MB Notification: Performance of matching and sorting (n=36): time 0.00485/0.5466, allocations: 2.105 MB / 383.5 MB, free: 15.75 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002956/0.5469, allocations: 336.9 kB / 383.8 MB, free: 15.36 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003558/0.5505, allocations: 1.448 MB / 385.3 MB, free: 13.9 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003424/0.5509, allocations: 41.7 kB / 385.3 MB, free: 13.85 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007468/0.5517, allocations: 222.5 kB / 385.5 MB, free: 13.63 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006275/0.5523, allocations: 75.16 kB / 385.6 MB, free: 13.55 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002046/0.5526, allocations: 19.98 kB / 385.6 MB, free: 13.54 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002956/0.5529, allocations: 362.8 kB / 386 MB, free: 13.17 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001249/0.5541, allocations: 439.9 kB / 386.4 MB, free: 12.74 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001164/0.5553, allocations: 482.6 kB / 386.9 MB, free: 12.26 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001062/0.5564, allocations: 0.5831 MB / 387.5 MB, free: 11.62 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.859e-06/0.5564, allocations: 0 / 387.5 MB, free: 11.62 MB / 314.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.003226/0.5597, allocations: 1.349 MB / 388.8 MB, free: 10.22 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003081/0.56, allocations: 281.5 kB / 389.1 MB, free: 9.895 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.24e-05/0.5601, allocations: 4 kB / 389.1 MB, free: 9.891 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.108e-05/0.5601, allocations: 64 / 389.1 MB, free: 9.891 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.114e-05/0.5601, allocations: 15.98 kB / 389.1 MB, free: 9.875 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.417e-06/0.5602, allocations: 0 / 389.1 MB, free: 9.875 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006799/0.5609, allocations: 55.75 kB / 389.2 MB, free: 9.82 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002794/0.5612, allocations: 155.9 kB / 389.3 MB, free: 9.668 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: 43 ($PRE.dFFREGSRH.delay.inertialDelaySensitive[2].y,$PRE.dFFREGSRH.delay.inertialDelaySensitive[1].y,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,clock.y,data_0.y,reset.y,data_1.y,set.y,$PRE.dFFREGSRH.delay.inertialDelaySensitive[1].x,dFFREGSRH.delay.inertialDelaySensitive[1].x,dFFREGSRH.delay.inertialDelaySensitive[1].y,dFFREGSRH.delay.inertialDelaySensitive[1].delayTime,dFFREGSRH.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[1].y_old,dFFREGSRH.delay.inertialDelaySensitive[1].lh,dFFREGSRH.delay.inertialDelaySensitive[1].t_next,$PRE.dFFREGSRH.delay.inertialDelaySensitive[2].x,dFFREGSRH.delay.inertialDelaySensitive[2].x,dFFREGSRH.delay.inertialDelaySensitive[2].y,dFFREGSRH.delay.inertialDelaySensitive[2].delayTime,dFFREGSRH.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[2].y_old,dFFREGSRH.delay.inertialDelaySensitive[2].lh,dFFREGSRH.delay.inertialDelaySensitive[2].t_next,$PRE.dFFREGSRH.dFFSR.set,dFFREGSRH.dFFSR.set,$PRE.dFFREGSRH.dFFSR.reset,dFFREGSRH.dFFSR.reset,$PRE.dFFREGSRH.dFFSR.clock,dFFREGSRH.dFFSR.clock,dFFREGSRH.dFFSR.dataIn[1],dFFREGSRH.dFFSR.dataIn[2],dFFREGSRH.dFFSR.dataOut[1],dFFREGSRH.dFFSR.dataOut[2],dFFREGSRH.dFFSR.clock_flag,dFFREGSRH.dFFSR.reset_set_flag,dFFREGSRH.dFFSR.nextstate[1],dFFREGSRH.dFFSR.nextstate[2],dFFREGSRH.dFFSR.next_assign_val[1],dFFREGSRH.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.001937/0.5631, allocations: 0.9363 MB / 390.2 MB, free: 8.672 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002931/0.5634, allocations: 134.5 kB / 390.4 MB, free: 8.539 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005893/0.564, allocations: 203.8 kB / 390.6 MB, free: 8.336 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.166e-06/0.564, allocations: 4 kB / 390.6 MB, free: 8.332 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.118e-05/0.5641, allocations: 0 / 390.6 MB, free: 8.332 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.641e-06/0.5641, allocations: 3.938 kB / 390.6 MB, free: 8.328 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004968/0.5691, allocations: 2.321 MB / 392.9 MB, free: 5.895 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-05/0.5691, allocations: 3.984 kB / 392.9 MB, free: 5.891 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.302e-05/0.5691, allocations: 7.938 kB / 392.9 MB, free: 5.883 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.214e-06/0.5692, allocations: 0 / 392.9 MB, free: 5.883 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001266/0.5693, allocations: 43.97 kB / 393 MB, free: 5.84 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.432e-06/0.5693, allocations: 4 kB / 393 MB, free: 5.836 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.825e-06/0.5693, allocations: 0 / 393 MB, free: 5.836 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003659/0.573, allocations: 1.618 MB / 394.6 MB, free: 4.148 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001965/0.575, allocations: 0.659 MB / 395.2 MB, free: 3.469 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003409/0.5754, allocations: 59.97 kB / 395.3 MB, free: 3.41 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006362/0.5761, allocations: 43.91 kB / 395.3 MB, free: 3.367 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009397/0.577, allocations: 355.6 kB / 395.7 MB, free: 3.02 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000278/0.5773, allocations: 159.8 kB / 395.8 MB, free: 2.863 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.002987/0.5803, allocations: 1.208 MB / 397.1 MB, free: 1.652 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.503e-06/0.5804, allocations: 0 / 397.1 MB, free: 1.652 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0009427/0.5813, allocations: 148 kB / 397.2 MB, free: 1.508 MB / 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: 36 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,clock.y,data_0.y,reset.y,data_1.y,set.y,dFFREGSRH.delay.inertialDelaySensitive[1].x,dFFREGSRH.delay.inertialDelaySensitive[1].y,dFFREGSRH.delay.inertialDelaySensitive[1].delayTime,dFFREGSRH.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[1].y_old,dFFREGSRH.delay.inertialDelaySensitive[1].lh,dFFREGSRH.delay.inertialDelaySensitive[1].t_next,dFFREGSRH.delay.inertialDelaySensitive[2].x,dFFREGSRH.delay.inertialDelaySensitive[2].y,dFFREGSRH.delay.inertialDelaySensitive[2].delayTime,dFFREGSRH.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[2].y_old,dFFREGSRH.delay.inertialDelaySensitive[2].lh,dFFREGSRH.delay.inertialDelaySensitive[2].t_next,dFFREGSRH.dFFSR.set,dFFREGSRH.dFFSR.reset,dFFREGSRH.dFFSR.clock,dFFREGSRH.dFFSR.dataIn[1],dFFREGSRH.dFFSR.dataIn[2],dFFREGSRH.dFFSR.dataOut[1],dFFREGSRH.dFFSR.dataOut[2],dFFREGSRH.dFFSR.clock_flag,dFFREGSRH.dFFSR.reset_set_flag,dFFREGSRH.dFFSR.nextstate[1],dFFREGSRH.dFFSR.nextstate[2],dFFREGSRH.dFFSR.next_assign_val[1],dFFREGSRH.dFFSR.next_assign_val[2]) * Number of discrete states: 34 (set.y,data_1.y,reset.y,data_0.y,clock.y,dFFREGSRH.dFFSR.dataOut[2],dFFREGSRH.dFFSR.dataOut[1],dFFREGSRH.dFFSR.next_assign_val[2],dFFREGSRH.dFFSR.next_assign_val[1],dFFREGSRH.dFFSR.nextstate[2],dFFREGSRH.dFFSR.nextstate[1],dFFREGSRH.dFFSR.reset_set_flag,dFFREGSRH.dFFSR.clock_flag,dFFREGSRH.dFFSR.clock,dFFREGSRH.dFFSR.reset,dFFREGSRH.dFFSR.set,dFFREGSRH.delay.inertialDelaySensitive[2].y,dFFREGSRH.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[2].t_next,dFFREGSRH.delay.inertialDelaySensitive[2].delayTime,dFFREGSRH.delay.inertialDelaySensitive[2].lh,dFFREGSRH.delay.inertialDelaySensitive[2].y_old,$whenCondition4,$whenCondition3,dFFREGSRH.delay.inertialDelaySensitive[2].x,dFFREGSRH.delay.inertialDelaySensitive[1].y,dFFREGSRH.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[1].t_next,dFFREGSRH.delay.inertialDelaySensitive[1].delayTime,dFFREGSRH.delay.inertialDelaySensitive[1].lh,dFFREGSRH.delay.inertialDelaySensitive[1].y_old,$whenCondition2,$whenCondition1,dFFREGSRH.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.004268/0.5856, allocations: 2.269 MB / 399.5 MB, free: 15.16 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.003608/0.5893, allocations: 1.92 MB / 401.4 MB, free: 13.14 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.03e-06/0.5893, allocations: 0 / 401.4 MB, free: 13.14 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002215/0.5915, allocations: 1.393 MB / 402.8 MB, free: 11.65 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002073/0.5936, allocations: 299.9 kB / 403.1 MB, free: 11.36 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01703/0.6107, allocations: 6.782 MB / 409.9 MB, free: 4.5 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001462/0.6122, allocations: 1.166 MB / 411 MB, free: 3.309 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0003342/0.6126, allocations: 83.08 kB / 411.1 MB, free: 3.223 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002744/0.6129, allocations: 155.4 kB / 411.3 MB, free: 3.07 MB / 330.7 MB Notification: Performance of SimCode: time 1.002e-06/0.6129, allocations: 0 / 411.3 MB, free: 3.07 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3036/0.9165, allocations: 20.33 MB / 431.6 MB, free: 108.1 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002404/0.9168, allocations: 173.2 kB / 431.8 MB, free: 107.9 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.007/3.924, allocations: 3.312 kB / 431.8 MB, free: 107.9 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Electrical.Digital.Examples.DFFREGSRH_res.mat does not exist to compare? outputFormat=mat