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.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_Modelica_Electrical_Digital_Examples_DLATREGSRH",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.378/2.378, allocations: 194.9 MB / 211.1 MB, free: 8.547 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004669/0.0004669, allocations: 12 kB / 264.1 MB, free: 3.469 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.298/0.2985, allocations: 44.51 MB / 308.6 MB, free: 12.66 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1411/0.4397, allocations: 78.11 MB / 386.7 MB, free: 14.44 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002857/0.4401, allocations: 67.97 kB / 386.7 MB, free: 14.37 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4326/0.8727, allocations: 30.62 MB / 417.4 MB, free: 91.15 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.166e-06/0.8727, allocations: 0 / 417.4 MB, free: 91.15 MB / 346.7 MB Notification: Performance of Transformations before backend: time 9.64e-05/0.8728, allocations: 13.22 kB / 417.4 MB, free: 91.15 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.003051/0.8759, allocations: 1.518 MB / 418.9 MB, free: 90.32 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.926e-05/0.876, allocations: 10.53 kB / 418.9 MB, free: 90.32 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002608/0.8763, allocations: 62.73 kB / 419 MB, free: 90.28 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003266/0.8766, allocations: 129.5 kB / 419.1 MB, free: 90.21 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001161/0.8778, allocations: 0.5161 MB / 419.6 MB, free: 89.89 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.944e-05/0.8779, allocations: 20.73 kB / 419.6 MB, free: 89.89 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001429/0.878, allocations: 29.55 kB / 419.7 MB, free: 89.89 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001772/0.8798, allocations: 0.6246 MB / 420.3 MB, free: 89.85 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.496e-05/0.8799, allocations: 0 / 420.3 MB, free: 89.85 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.351e-05/0.88, allocations: 15.75 kB / 420.3 MB, free: 89.85 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.925e-06/0.88, allocations: 2.641 kB / 420.3 MB, free: 89.85 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001201/0.8812, allocations: 479.6 kB / 420.8 MB, free: 89.85 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002647/0.8839, allocations: 1.171 MB / 421.9 MB, free: 89.47 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001339/0.8853, allocations: 0.7152 MB / 422.7 MB, free: 89.43 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.872e-05/0.8853, allocations: 3.688 kB / 422.7 MB, free: 89.43 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001347/0.8867, allocations: 0.7421 MB / 423.4 MB, free: 89.26 MB / 346.7 MB Notification: Performance of pre-optimization done (n=33): time 3.777e-06/0.8867, allocations: 0 / 423.4 MB, free: 89.26 MB / 346.7 MB Notification: Performance of matching and sorting (n=33): time 0.004023/0.8907, allocations: 2.131 MB / 425.5 MB, free: 88.62 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001933/0.891, allocations: 335 kB / 425.9 MB, free: 88.3 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003464/0.8944, allocations: 1.631 MB / 427.5 MB, free: 87.84 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002173/0.8947, allocations: 44.08 kB / 427.5 MB, free: 87.81 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003087/0.895, allocations: 244.2 kB / 427.8 MB, free: 87.71 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001646/0.8952, allocations: 79.3 kB / 427.9 MB, free: 87.68 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.63e-05/0.8953, allocations: 10.97 kB / 427.9 MB, free: 87.68 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001466/0.8955, allocations: 381 kB / 428.2 MB, free: 87.35 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001012/0.8965, allocations: 454.2 kB / 428.7 MB, free: 87.3 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009809/0.8975, allocations: 489.6 kB / 429.2 MB, free: 87.14 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008733/0.8984, allocations: 0.5886 MB / 429.7 MB, free: 86.75 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.129e-06/0.8984, allocations: 3.938 kB / 429.7 MB, free: 86.75 MB / 346.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.002688/0.9011, allocations: 1.36 MB / 431.1 MB, free: 86.13 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000234/0.9014, allocations: 290.4 kB / 431.4 MB, free: 85.86 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.028e-05/0.9014, allocations: 0 / 431.4 MB, free: 85.86 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.491e-05/0.9014, allocations: 2.969 kB / 431.4 MB, free: 85.86 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.953e-05/0.9015, allocations: 16.48 kB / 431.4 MB, free: 85.85 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.356e-06/0.9015, allocations: 0 / 431.4 MB, free: 85.85 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007119/0.9022, allocations: 43.47 kB / 431.5 MB, free: 85.85 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002039/0.9024, allocations: 128.8 kB / 431.6 MB, free: 85.84 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: 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.001696/0.9041, allocations: 0.9898 MB / 432.6 MB, free: 85.23 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003211/0.9045, allocations: 140.4 kB / 432.7 MB, free: 85.16 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006198/0.9051, allocations: 248.5 kB / 433 MB, free: 85.02 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.221e-06/0.9051, allocations: 3.875 kB / 433 MB, free: 85.02 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.452e-06/0.9051, allocations: 3.844 kB / 433 MB, free: 85.02 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.31e-06/0.9052, allocations: 0 / 433 MB, free: 85.02 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004358/0.9095, allocations: 2.421 MB / 435.4 MB, free: 83.77 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.442e-06/0.9096, allocations: 3.75 kB / 435.4 MB, free: 83.77 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.943e-05/0.9096, allocations: 2.938 kB / 435.4 MB, free: 83.77 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.587e-06/0.9096, allocations: 3.422 kB / 435.4 MB, free: 83.77 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001016/0.9097, allocations: 38.5 kB / 435.4 MB, free: 83.76 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.078e-06/0.9097, allocations: 0 / 435.4 MB, free: 83.76 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.276e-06/0.9098, allocations: 0 / 435.4 MB, free: 83.76 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003062/0.9128, allocations: 1.663 MB / 437.1 MB, free: 82.5 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001725/0.9146, allocations: 0.679 MB / 437.8 MB, free: 81.91 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002906/0.9149, allocations: 65.27 kB / 437.8 MB, free: 81.86 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005966/0.9155, allocations: 34.75 kB / 437.9 MB, free: 81.84 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008532/0.9164, allocations: 376.5 kB / 438.2 MB, free: 81.57 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002174/0.9166, allocations: 135 kB / 438.4 MB, free: 81.44 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.002768/0.9194, allocations: 1.344 MB / 439.7 MB, free: 80.29 MB / 346.7 MB Notification: Performance of sort global known variables: time 7.92e-07/0.9195, allocations: 7.844 kB / 439.7 MB, free: 80.29 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0008978/0.9204, allocations: 151.7 kB / 439.9 MB, free: 80.14 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: 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.003491/0.9239, allocations: 2.282 MB / 442.1 MB, free: 77.98 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002871/0.9268, allocations: 1.938 MB / 444.1 MB, free: 76.12 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.428e-06/0.9268, allocations: 0 / 444.1 MB, free: 76.12 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001767/0.9286, allocations: 1.441 MB / 445.5 MB, free: 74.68 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002166/0.9308, allocations: 301.4 kB / 445.8 MB, free: 74.47 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01517/0.946, allocations: 7.139 MB / 453 MB, free: 68 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001267/0.9474, allocations: 1.225 MB / 454.2 MB, free: 66.89 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0002748/0.9477, allocations: 38.19 kB / 454.2 MB, free: 66.86 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000203/0.9479, allocations: 145.5 kB / 454.4 MB, free: 66.74 MB / 346.7 MB Notification: Performance of SimCode: time 1.022e-06/0.9479, allocations: 0 / 454.4 MB, free: 66.74 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0549/1.003, allocations: 20.55 MB / 474.9 MB, free: 46.07 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001874/1.003, allocations: 177.5 kB / 475.1 MB, free: 45.82 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.022/4.026, allocations: 7.781 kB / 475.1 MB, free: 45.82 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DLATREGSRH_res.mat does not exist to compare? outputFormat=mat