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.DLATREGSRH.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.DLATREGSRH,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Digital_Examples_DLATREGSRH",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.185/2.185, allocations: 194.8 MB / 211.7 MB, free: 2.988 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003613/0.0003613, allocations: 11.94 kB / 264 MB, free: 13.48 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1416/0.142, allocations: 44.51 MB / 308.5 MB, free: 0.9023 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5062/0.6482, allocations: 78.11 MB / 386.7 MB, free: 14.5 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003855/0.6487, allocations: 76.81 kB / 386.7 MB, free: 14.5 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1366/0.7853, allocations: 30.61 MB / 417.3 MB, free: 7.109 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.837e-06/0.7854, allocations: 0 / 417.3 MB, free: 7.109 MB / 314.7 MB Notification: Performance of Transformations before backend: time 6.591e-05/0.7855, allocations: 15.25 kB / 417.3 MB, free: 7.109 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.003484/0.789, allocations: 1.522 MB / 418.9 MB, free: 5.852 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.256e-05/0.7891, allocations: 11.66 kB / 418.9 MB, free: 5.852 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003344/0.7894, allocations: 60.39 kB / 418.9 MB, free: 5.805 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003556/0.7898, allocations: 132.6 kB / 419.1 MB, free: 5.738 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001496/0.7913, allocations: 0.5121 MB / 419.6 MB, free: 5.383 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.621e-05/0.7914, allocations: 25.78 kB / 419.6 MB, free: 5.379 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001657/0.7916, allocations: 29.48 kB / 419.6 MB, free: 5.375 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002186/0.7938, allocations: 0.6285 MB / 420.3 MB, free: 5.195 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.509e-05/0.7939, allocations: 0 / 420.3 MB, free: 5.195 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001521/0.7941, allocations: 22 kB / 420.3 MB, free: 5.195 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.059e-05/0.7941, allocations: 0 / 420.3 MB, free: 5.195 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002024/0.7962, allocations: 477.2 kB / 420.8 MB, free: 5.121 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004122/0.8003, allocations: 1.17 MB / 421.9 MB, free: 4.512 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001981/0.8024, allocations: 0.7011 MB / 422.6 MB, free: 4.41 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.698e-05/0.8025, allocations: 3.875 kB / 422.6 MB, free: 4.41 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002061/0.8046, allocations: 0.75 MB / 423.4 MB, free: 4.074 MB / 314.7 MB Notification: Performance of pre-optimization done (n=33): time 4.739e-06/0.8046, allocations: 0 / 423.4 MB, free: 4.074 MB / 314.7 MB Notification: Performance of matching and sorting (n=33): time 0.005974/0.8106, allocations: 2.127 MB / 425.5 MB, free: 3.203 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002789/0.8109, allocations: 333.4 kB / 425.8 MB, free: 2.871 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005564/0.8165, allocations: 1.634 MB / 427.5 MB, free: 2.18 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003/0.8169, allocations: 48.61 kB / 427.5 MB, free: 2.141 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003656/0.8173, allocations: 260.4 kB / 427.8 MB, free: 1.973 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002669/0.8175, allocations: 77.45 kB / 427.8 MB, free: 1.93 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001163/0.8177, allocations: 15.58 kB / 427.9 MB, free: 1.926 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.937e-05/0.8178, allocations: 322 kB / 428.2 MB, free: 1.609 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001431/0.8192, allocations: 450.6 kB / 428.6 MB, free: 1.543 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001486/0.8208, allocations: 490.3 kB / 429.1 MB, free: 1.438 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001346/0.8221, allocations: 0.5927 MB / 429.7 MB, free: 1.121 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.674e-06/0.8222, allocations: 0 / 429.7 MB, free: 1.121 MB / 314.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.003872/0.8261, allocations: 1.315 MB / 431 MB, free: 0.668 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003394/0.8265, allocations: 295.4 kB / 431.3 MB, free: 404 kB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.247e-05/0.8265, allocations: 0 / 431.3 MB, free: 404 kB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.996e-05/0.8265, allocations: 7.781 kB / 431.3 MB, free: 400 kB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.072e-05/0.8266, allocations: 0 / 431.3 MB, free: 400 kB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.157e-06/0.8266, allocations: 4.062 kB / 431.3 MB, free: 396 kB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009945/0.8276, allocations: 50.64 kB / 431.3 MB, free: 380 kB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002942/0.8279, allocations: 127.7 kB / 431.5 MB, free: 368 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: 37 ($PRE.dLATREGSRH.delay.inertialDelaySensitive[2].y,$PRE.dLATREGSRH.delay.inertialDelaySensitive[1].y,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,enable.y,data_0.y,reset.y,data_1.y,set.y,$PRE.dLATREGSRH.delay.inertialDelaySensitive[1].x,dLATREGSRH.delay.inertialDelaySensitive[1].x,dLATREGSRH.delay.inertialDelaySensitive[1].y,dLATREGSRH.delay.inertialDelaySensitive[1].delayTime,dLATREGSRH.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGSRH.delay.inertialDelaySensitive[1].y_old,dLATREGSRH.delay.inertialDelaySensitive[1].lh,dLATREGSRH.delay.inertialDelaySensitive[1].t_next,$PRE.dLATREGSRH.delay.inertialDelaySensitive[2].x,dLATREGSRH.delay.inertialDelaySensitive[2].x,dLATREGSRH.delay.inertialDelaySensitive[2].y,dLATREGSRH.delay.inertialDelaySensitive[2].delayTime,dLATREGSRH.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGSRH.delay.inertialDelaySensitive[2].y_old,dLATREGSRH.delay.inertialDelaySensitive[2].lh,dLATREGSRH.delay.inertialDelaySensitive[2].t_next,dLATREGSRH.dLATSR.dataIn[1],dLATREGSRH.dLATSR.dataIn[2],dLATREGSRH.dLATSR.dataOut[1],dLATREGSRH.dLATSR.dataOut[2],dLATREGSRH.dLATSR.enable_flag,dLATREGSRH.dLATSR.reset_set_flag,dLATREGSRH.dLATSR.nextstate[1],dLATREGSRH.dLATSR.nextstate[2],dLATREGSRH.dLATSR.next_assign_val[1],dLATREGSRH.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.002877/0.8308, allocations: 0.9949 MB / 432.5 MB, free: 15.77 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004219/0.8313, allocations: 132.7 kB / 432.6 MB, free: 15.7 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00118/0.8325, allocations: 255.4 kB / 432.8 MB, free: 15.56 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.041e-05/0.8325, allocations: 7.969 kB / 432.9 MB, free: 15.56 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.528e-06/0.8326, allocations: 0 / 432.9 MB, free: 15.56 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.392e-06/0.8326, allocations: 0 / 432.9 MB, free: 15.56 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007704/0.8403, allocations: 2.421 MB / 435.3 MB, free: 14.48 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.057e-05/0.8404, allocations: 0 / 435.3 MB, free: 14.48 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.815e-05/0.8404, allocations: 3.438 kB / 435.3 MB, free: 14.48 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.269e-05/0.8405, allocations: 3.984 kB / 435.3 MB, free: 14.48 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002008/0.8407, allocations: 34.55 kB / 435.3 MB, free: 14.47 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.52e-06/0.8407, allocations: 0 / 435.3 MB, free: 14.47 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.055e-06/0.8407, allocations: 4 kB / 435.3 MB, free: 14.47 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0051/0.8458, allocations: 1.645 MB / 437 MB, free: 13.54 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002941/0.8488, allocations: 0.6809 MB / 437.6 MB, free: 13.02 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005263/0.8494, allocations: 54.78 kB / 437.7 MB, free: 12.98 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001021/0.8505, allocations: 46.94 kB / 437.7 MB, free: 12.94 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001461/0.852, allocations: 379.5 kB / 438.1 MB, free: 12.66 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004289/0.8524, allocations: 132.6 kB / 438.2 MB, free: 12.54 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.00537/0.8578, allocations: 1.346 MB / 439.6 MB, free: 11.42 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.446e-06/0.8579, allocations: 0 / 439.6 MB, free: 11.42 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001485/0.8594, allocations: 151.1 kB / 439.7 MB, free: 11.28 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,dLATREGSRH.delay.inertialDelaySensitive[1].x,dLATREGSRH.delay.inertialDelaySensitive[1].y,dLATREGSRH.delay.inertialDelaySensitive[1].delayTime,dLATREGSRH.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGSRH.delay.inertialDelaySensitive[1].y_old,dLATREGSRH.delay.inertialDelaySensitive[1].lh,dLATREGSRH.delay.inertialDelaySensitive[1].t_next,dLATREGSRH.delay.inertialDelaySensitive[2].x,dLATREGSRH.delay.inertialDelaySensitive[2].y,dLATREGSRH.delay.inertialDelaySensitive[2].delayTime,dLATREGSRH.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGSRH.delay.inertialDelaySensitive[2].y_old,dLATREGSRH.delay.inertialDelaySensitive[2].lh,dLATREGSRH.delay.inertialDelaySensitive[2].t_next,dLATREGSRH.dLATSR.dataIn[1],dLATREGSRH.dLATSR.dataIn[2],dLATREGSRH.dLATSR.dataOut[1],dLATREGSRH.dLATSR.dataOut[2],dLATREGSRH.dLATSR.enable_flag,dLATREGSRH.dLATSR.reset_set_flag,dLATREGSRH.dLATSR.nextstate[1],dLATREGSRH.dLATSR.nextstate[2],dLATREGSRH.dLATSR.next_assign_val[1],dLATREGSRH.dLATSR.next_assign_val[2]) * Number of discrete states: 31 (enable.y,data_0.y,reset.y,data_1.y,set.y,dLATREGSRH.dLATSR.dataOut[2],dLATREGSRH.dLATSR.dataOut[1],dLATREGSRH.dLATSR.next_assign_val[2],dLATREGSRH.dLATSR.next_assign_val[1],dLATREGSRH.dLATSR.nextstate[2],dLATREGSRH.dLATSR.nextstate[1],dLATREGSRH.dLATSR.reset_set_flag,dLATREGSRH.dLATSR.enable_flag,dLATREGSRH.delay.inertialDelaySensitive[2].y,dLATREGSRH.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGSRH.delay.inertialDelaySensitive[2].t_next,dLATREGSRH.delay.inertialDelaySensitive[2].delayTime,dLATREGSRH.delay.inertialDelaySensitive[2].lh,dLATREGSRH.delay.inertialDelaySensitive[2].y_old,$whenCondition2,$whenCondition1,dLATREGSRH.delay.inertialDelaySensitive[2].x,dLATREGSRH.delay.inertialDelaySensitive[1].y,dLATREGSRH.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGSRH.delay.inertialDelaySensitive[1].t_next,dLATREGSRH.delay.inertialDelaySensitive[1].delayTime,dLATREGSRH.delay.inertialDelaySensitive[1].lh,dLATREGSRH.delay.inertialDelaySensitive[1].y_old,$whenCondition4,$whenCondition3,dLATREGSRH.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.007543/0.867, allocations: 2.288 MB / 442 MB, free: 9.031 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0057/0.8728, allocations: 1.936 MB / 444 MB, free: 6.996 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 6.222e-06/0.8728, allocations: 0 / 444 MB, free: 6.996 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003336/0.8762, allocations: 1.441 MB / 445.4 MB, free: 5.457 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002415/0.8786, allocations: 307.9 kB / 445.7 MB, free: 5.16 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01894/0.8976, allocations: 7.254 MB / 453 MB, free: 13.8 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001818/0.8995, allocations: 1.223 MB / 454.2 MB, free: 12.55 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002796/0.8998, allocations: 135.4 kB / 454.3 MB, free: 12.42 MB / 346.7 MB Notification: Performance of SimCode: time 1.232e-06/0.8998, allocations: 0 / 454.3 MB, free: 12.42 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.859/3.759, allocations: 13.73 MB / 468 MB, free: 14.52 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Digital.Examples.DLATREGSRH_res.mat does not exist to compare? outputFormat=mat