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.DFFREGSRH.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.DFFREGSRH,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Digital_Examples_DFFREGSRH",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.956/1.956, allocations: 194.9 MB / 211.7 MB, free: 2.996 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003494/0.0003495, allocations: 8 kB / 264 MB, free: 13.48 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09375/0.09414, allocations: 44.51 MB / 308.5 MB, free: 0.8984 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4377/0.5319, allocations: 78.21 MB / 386.8 MB, free: 14.55 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000325/0.5323, allocations: 72.14 kB / 386.8 MB, free: 14.55 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1069/0.6392, allocations: 31.07 MB / 417.9 MB, free: 6.852 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.304e-06/0.6393, allocations: 7.938 kB / 417.9 MB, free: 6.844 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.023e-05/0.6393, allocations: 15.5 kB / 417.9 MB, free: 6.844 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.002375/0.6417, allocations: 1.495 MB / 419.4 MB, free: 5.609 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.279e-05/0.6418, allocations: 7.75 kB / 419.4 MB, free: 5.609 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002652/0.6421, allocations: 63.75 kB / 419.5 MB, free: 5.562 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002439/0.6423, allocations: 132.7 kB / 419.6 MB, free: 5.496 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001134/0.6435, allocations: 0.5184 MB / 420.1 MB, free: 5.137 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.318e-05/0.6436, allocations: 22.03 kB / 420.2 MB, free: 5.137 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001292/0.6437, allocations: 30.97 kB / 420.2 MB, free: 5.133 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001534/0.6453, allocations: 0.6277 MB / 420.8 MB, free: 4.949 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.956e-05/0.6453, allocations: 0 / 420.8 MB, free: 4.949 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001002/0.6455, allocations: 22.77 kB / 420.8 MB, free: 4.945 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.173e-06/0.6455, allocations: 3.938 kB / 420.8 MB, free: 4.941 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001165/0.6466, allocations: 462.9 kB / 421.3 MB, free: 4.871 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002444/0.6491, allocations: 1.091 MB / 422.4 MB, free: 4.273 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001503/0.6507, allocations: 0.6965 MB / 423.1 MB, free: 4.18 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.773e-05/0.6508, allocations: 0 / 423.1 MB, free: 4.18 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00155/0.6523, allocations: 0.7706 MB / 423.8 MB, free: 3.832 MB / 314.7 MB Notification: Performance of pre-optimization done (n=36): time 3.787e-06/0.6524, allocations: 4 kB / 423.9 MB, free: 3.828 MB / 314.7 MB Notification: Performance of matching and sorting (n=36): time 0.004436/0.6568, allocations: 2.136 MB / 426 MB, free: 2.949 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002196/0.6571, allocations: 324.5 kB / 426.3 MB, free: 2.625 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003738/0.6608, allocations: 1.613 MB / 427.9 MB, free: 1.938 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002603/0.6611, allocations: 45 kB / 428 MB, free: 1.902 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002501/0.6614, allocations: 244.9 kB / 428.2 MB, free: 1.742 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002203/0.6616, allocations: 85.27 kB / 428.3 MB, free: 1.695 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.828e-05/0.6617, allocations: 15.09 kB / 428.3 MB, free: 1.695 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.209e-05/0.6618, allocations: 330.3 kB / 428.6 MB, free: 1.375 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001034/0.6629, allocations: 445.3 kB / 429.1 MB, free: 1.301 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001006/0.6639, allocations: 485.7 kB / 429.5 MB, free: 1.203 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009/0.6648, allocations: 0.5774 MB / 430.1 MB, free: 0.8945 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.971e-06/0.6649, allocations: 7.812 kB / 430.1 MB, free: 0.8906 MB / 314.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.002671/0.6675, allocations: 1.328 MB / 431.4 MB, free: 440 kB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002278/0.6678, allocations: 289 kB / 431.7 MB, free: 160 kB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.598e-06/0.6678, allocations: 0 / 431.7 MB, free: 160 kB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.117e-05/0.6678, allocations: 7.75 kB / 431.7 MB, free: 156 kB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.136e-05/0.6679, allocations: 7.922 kB / 431.7 MB, free: 152 kB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.826e-06/0.6679, allocations: 3.906 kB / 431.7 MB, free: 152 kB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006318/0.6686, allocations: 42.22 kB / 431.8 MB, free: 140 kB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002356/0.6688, allocations: 156.3 kB / 431.9 MB, free: 124 kB / 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.002048/0.6709, allocations: 1 MB / 432.9 MB, free: 15.52 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002793/0.6712, allocations: 132.6 kB / 433.1 MB, free: 15.45 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007707/0.672, allocations: 246.4 kB / 433.3 MB, free: 15.32 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.592e-06/0.672, allocations: 3.875 kB / 433.3 MB, free: 15.32 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.596e-06/0.672, allocations: 0 / 433.3 MB, free: 15.32 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-06/0.672, allocations: 0 / 433.3 MB, free: 15.32 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005042/0.6771, allocations: 2.415 MB / 435.7 MB, free: 14.23 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.57e-06/0.6771, allocations: 0 / 435.7 MB, free: 14.23 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.112e-05/0.6771, allocations: 3.875 kB / 435.7 MB, free: 14.23 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.951e-06/0.6772, allocations: 0 / 435.7 MB, free: 14.23 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001182/0.6773, allocations: 37.89 kB / 435.8 MB, free: 14.23 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.464e-06/0.6773, allocations: 3.938 kB / 435.8 MB, free: 14.23 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.955e-06/0.6773, allocations: 3.875 kB / 435.8 MB, free: 14.23 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003552/0.6809, allocations: 1.631 MB / 437.4 MB, free: 13.04 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002019/0.6829, allocations: 0.6865 MB / 438.1 MB, free: 12.51 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003367/0.6833, allocations: 61.53 kB / 438.2 MB, free: 12.47 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006238/0.684, allocations: 33.97 kB / 438.2 MB, free: 12.44 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009476/0.6849, allocations: 358.5 kB / 438.5 MB, free: 12.18 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003046/0.6852, allocations: 166.6 kB / 438.7 MB, free: 12.02 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.003577/0.6888, allocations: 1.326 MB / 440 MB, free: 10.93 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.81e-07/0.6889, allocations: 0 / 440 MB, free: 10.93 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001009/0.6899, allocations: 147.6 kB / 440.2 MB, free: 10.79 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,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.004609/0.6945, allocations: 2.284 MB / 442.5 MB, free: 8.602 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.00396/0.6986, allocations: 1.932 MB / 444.4 MB, free: 6.57 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.41e-06/0.6987, allocations: 4.062 kB / 444.4 MB, free: 6.566 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002419/0.7011, allocations: 1.404 MB / 445.8 MB, free: 5.066 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002173/0.7033, allocations: 305.4 kB / 446.1 MB, free: 4.77 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02107/0.7244, allocations: 7.367 MB / 453.5 MB, free: 13.32 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001669/0.7262, allocations: 1.216 MB / 454.7 MB, free: 12.07 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003012/0.7265, allocations: 151.2 kB / 454.8 MB, free: 11.93 MB / 346.7 MB Notification: Performance of SimCode: time 1.293e-06/0.7265, allocations: 0 / 454.8 MB, free: 11.93 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.093/3.819, allocations: 15.02 MB / 469.8 MB, free: 12.71 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRH_res.mat does not exist to compare? outputFormat=mat