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.DLATREGSRL.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.DLATREGSRL,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Digital_Examples_DLATREGSRL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.084/2.084, allocations: 194.8 MB / 211.7 MB, free: 2.996 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003684/0.0003684, allocations: 8 kB / 264 MB, free: 13.49 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09875/0.09916, allocations: 44.5 MB / 308.5 MB, free: 0.9102 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4538/0.553, allocations: 78.15 MB / 386.7 MB, free: 14.58 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002678/0.5534, allocations: 72.53 kB / 386.8 MB, free: 14.58 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1117/0.6651, allocations: 38.6 MB / 425.3 MB, free: 4.125 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.665e-06/0.6652, allocations: 4 kB / 425.4 MB, free: 4.121 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.237e-05/0.6652, allocations: 19.38 kB / 425.4 MB, free: 4.117 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.002041/0.6673, allocations: 1.516 MB / 426.9 MB, free: 2.863 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.197e-05/0.6673, allocations: 9.625 kB / 426.9 MB, free: 2.863 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001994/0.6676, allocations: 59.92 kB / 427 MB, free: 2.82 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002238/0.6678, allocations: 133.7 kB / 427.1 MB, free: 2.754 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009639/0.6688, allocations: 0.5153 MB / 427.6 MB, free: 2.395 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.767e-05/0.6688, allocations: 21.97 kB / 427.6 MB, free: 2.395 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001159/0.669, allocations: 32.52 kB / 427.7 MB, free: 2.391 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001426/0.6704, allocations: 0.6272 MB / 428.3 MB, free: 2.211 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.372e-05/0.6704, allocations: 0 / 428.3 MB, free: 2.211 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.059e-05/0.6705, allocations: 14.5 kB / 428.3 MB, free: 2.211 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.137e-05/0.6706, allocations: 3.875 kB / 428.3 MB, free: 2.211 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001028/0.6716, allocations: 477.5 kB / 428.8 MB, free: 2.133 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002501/0.6741, allocations: 1.172 MB / 429.9 MB, free: 1.527 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001294/0.6755, allocations: 0.6977 MB / 430.6 MB, free: 1.43 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.192e-05/0.6755, allocations: 3.906 kB / 430.6 MB, free: 1.43 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001337/0.6768, allocations: 0.7609 MB / 431.4 MB, free: 1.078 MB / 314.7 MB Notification: Performance of pre-optimization done (n=33): time 3.536e-06/0.6769, allocations: 3.938 kB / 431.4 MB, free: 1.074 MB / 314.7 MB Notification: Performance of matching and sorting (n=33): time 0.003979/0.6809, allocations: 2.135 MB / 433.5 MB, free: 208 kB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002492/0.6812, allocations: 322.1 kB / 433.9 MB, free: 15.88 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003751/0.6849, allocations: 1.632 MB / 435.5 MB, free: 15.08 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002588/0.6852, allocations: 45.25 kB / 435.5 MB, free: 15.04 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000301/0.6856, allocations: 253 kB / 435.8 MB, free: 14.86 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002001/0.6858, allocations: 74.66 kB / 435.8 MB, free: 14.8 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.244e-05/0.6859, allocations: 15.88 kB / 435.9 MB, free: 14.79 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001597/0.686, allocations: 322.8 kB / 436.2 MB, free: 14.47 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00114/0.6872, allocations: 457.8 kB / 436.6 MB, free: 14.15 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001143/0.6883, allocations: 480.1 kB / 437.1 MB, free: 13.81 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001044/0.6894, allocations: 0.5892 MB / 437.7 MB, free: 13.3 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.258e-06/0.6894, allocations: 0 / 437.7 MB, free: 13.3 MB / 330.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.003093/0.6925, allocations: 1.33 MB / 439 MB, free: 12.21 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003426/0.6929, allocations: 299.6 kB / 439.3 MB, free: 11.9 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.097e-06/0.6929, allocations: 0 / 439.3 MB, free: 11.9 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.942e-05/0.693, allocations: 4 kB / 439.3 MB, free: 11.89 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.24e-05/0.693, allocations: 3.938 kB / 439.3 MB, free: 11.89 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.395e-06/0.693, allocations: 0 / 439.3 MB, free: 11.89 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006743/0.6937, allocations: 54.95 kB / 439.4 MB, free: 11.84 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002606/0.694, allocations: 126.7 kB / 439.5 MB, free: 11.72 MB / 330.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: 37 ($PRE.dLATREGSRL.delay.inertialDelaySensitive[2].y,$PRE.dLATREGSRL.delay.inertialDelaySensitive[1].y,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,enable.y,data_0.y,reset.y,data_1.y,set.y,$PRE.dLATREGSRL.delay.inertialDelaySensitive[1].x,dLATREGSRL.delay.inertialDelaySensitive[1].x,dLATREGSRL.delay.inertialDelaySensitive[1].y,dLATREGSRL.delay.inertialDelaySensitive[1].delayTime,dLATREGSRL.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGSRL.delay.inertialDelaySensitive[1].y_old,dLATREGSRL.delay.inertialDelaySensitive[1].lh,dLATREGSRL.delay.inertialDelaySensitive[1].t_next,$PRE.dLATREGSRL.delay.inertialDelaySensitive[2].x,dLATREGSRL.delay.inertialDelaySensitive[2].x,dLATREGSRL.delay.inertialDelaySensitive[2].y,dLATREGSRL.delay.inertialDelaySensitive[2].delayTime,dLATREGSRL.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGSRL.delay.inertialDelaySensitive[2].y_old,dLATREGSRL.delay.inertialDelaySensitive[2].lh,dLATREGSRL.delay.inertialDelaySensitive[2].t_next,dLATREGSRL.dLATSR.dataIn[1],dLATREGSRL.dLATSR.dataIn[2],dLATREGSRL.dLATSR.dataOut[1],dLATREGSRL.dLATSR.dataOut[2],dLATREGSRL.dLATSR.enable_flag,dLATREGSRL.dLATSR.reset_set_flag,dLATREGSRL.dLATSR.nextstate[1],dLATREGSRL.dLATSR.nextstate[2],dLATREGSRL.dLATSR.next_assign_val[1],dLATREGSRL.dLATSR.next_assign_val[2]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 8 * 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.002108/0.6961, allocations: 0.9898 MB / 440.5 MB, free: 10.8 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000321/0.6965, allocations: 146.4 kB / 440.6 MB, free: 10.66 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007586/0.6972, allocations: 247.7 kB / 440.9 MB, free: 10.43 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.34e-06/0.6973, allocations: 0 / 440.9 MB, free: 10.43 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.893e-06/0.6973, allocations: 0 / 440.9 MB, free: 10.43 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.469e-06/0.6973, allocations: 0 / 440.9 MB, free: 10.43 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005389/0.7027, allocations: 2.421 MB / 443.3 MB, free: 8.277 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.422e-06/0.7027, allocations: 0 / 443.3 MB, free: 8.277 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.244e-05/0.7028, allocations: 3.984 kB / 443.3 MB, free: 8.273 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.228e-06/0.7028, allocations: 3.953 kB / 443.3 MB, free: 8.27 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001199/0.7029, allocations: 39.98 kB / 443.3 MB, free: 8.23 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.048e-06/0.7029, allocations: 0 / 443.3 MB, free: 8.23 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.7029, allocations: 0 / 443.3 MB, free: 8.23 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003657/0.7066, allocations: 1.65 MB / 445 MB, free: 6.516 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001988/0.7086, allocations: 0.6863 MB / 445.7 MB, free: 5.809 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003232/0.709, allocations: 59.92 kB / 445.7 MB, free: 5.75 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006337/0.7097, allocations: 47.81 kB / 445.8 MB, free: 5.703 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001006/0.7107, allocations: 375.6 kB / 446.1 MB, free: 5.336 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002533/0.7109, allocations: 131.9 kB / 446.3 MB, free: 5.207 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.003473/0.7144, allocations: 1.341 MB / 447.6 MB, free: 3.863 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.91e-07/0.7145, allocations: 7.938 kB / 447.6 MB, free: 3.855 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0009999/0.7155, allocations: 144 kB / 447.8 MB, free: 3.715 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: 33 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,enable.y,data_0.y,reset.y,data_1.y,set.y,dLATREGSRL.delay.inertialDelaySensitive[1].x,dLATREGSRL.delay.inertialDelaySensitive[1].y,dLATREGSRL.delay.inertialDelaySensitive[1].delayTime,dLATREGSRL.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGSRL.delay.inertialDelaySensitive[1].y_old,dLATREGSRL.delay.inertialDelaySensitive[1].lh,dLATREGSRL.delay.inertialDelaySensitive[1].t_next,dLATREGSRL.delay.inertialDelaySensitive[2].x,dLATREGSRL.delay.inertialDelaySensitive[2].y,dLATREGSRL.delay.inertialDelaySensitive[2].delayTime,dLATREGSRL.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGSRL.delay.inertialDelaySensitive[2].y_old,dLATREGSRL.delay.inertialDelaySensitive[2].lh,dLATREGSRL.delay.inertialDelaySensitive[2].t_next,dLATREGSRL.dLATSR.dataIn[1],dLATREGSRL.dLATSR.dataIn[2],dLATREGSRL.dLATSR.dataOut[1],dLATREGSRL.dLATSR.dataOut[2],dLATREGSRL.dLATSR.enable_flag,dLATREGSRL.dLATSR.reset_set_flag,dLATREGSRL.dLATSR.nextstate[1],dLATREGSRL.dLATSR.nextstate[2],dLATREGSRL.dLATSR.next_assign_val[1],dLATREGSRL.dLATSR.next_assign_val[2]) * Number of discrete states: 31 (enable.y,data_0.y,reset.y,data_1.y,set.y,dLATREGSRL.dLATSR.dataOut[2],dLATREGSRL.dLATSR.dataOut[1],dLATREGSRL.dLATSR.next_assign_val[2],dLATREGSRL.dLATSR.next_assign_val[1],dLATREGSRL.dLATSR.nextstate[2],dLATREGSRL.dLATSR.nextstate[1],dLATREGSRL.dLATSR.reset_set_flag,dLATREGSRL.dLATSR.enable_flag,dLATREGSRL.delay.inertialDelaySensitive[2].y,dLATREGSRL.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGSRL.delay.inertialDelaySensitive[2].t_next,dLATREGSRL.delay.inertialDelaySensitive[2].delayTime,dLATREGSRL.delay.inertialDelaySensitive[2].lh,dLATREGSRL.delay.inertialDelaySensitive[2].y_old,$whenCondition2,$whenCondition1,dLATREGSRL.delay.inertialDelaySensitive[2].x,dLATREGSRL.delay.inertialDelaySensitive[1].y,dLATREGSRL.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGSRL.delay.inertialDelaySensitive[1].t_next,dLATREGSRL.delay.inertialDelaySensitive[1].delayTime,dLATREGSRL.delay.inertialDelaySensitive[1].lh,dLATREGSRL.delay.inertialDelaySensitive[1].y_old,$whenCondition4,$whenCondition3,dLATREGSRL.delay.inertialDelaySensitive[1].x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 4 * 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.004403/0.7199, allocations: 2.284 MB / 450 MB, free: 1.355 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.003869/0.7238, allocations: 1.938 MB / 452 MB, free: 15.32 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.01e-06/0.7239, allocations: 0 / 452 MB, free: 15.32 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002488/0.7264, allocations: 1.448 MB / 453.4 MB, free: 13.78 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002119/0.7286, allocations: 296.6 kB / 453.7 MB, free: 13.5 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0177/0.7463, allocations: 7.25 MB / 461 MB, free: 6.145 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001582/0.7479, allocations: 1.219 MB / 462.2 MB, free: 4.898 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002585/0.7482, allocations: 135.4 kB / 462.3 MB, free: 4.766 MB / 346.7 MB Notification: Performance of SimCode: time 1.142e-06/0.7482, allocations: 0 / 462.3 MB, free: 4.766 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.922/3.67, allocations: 13.75 MB / 476.1 MB, free: 6.852 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Digital.Examples.DLATREGSRL_res.mat does not exist to compare? outputFormat=mat