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.DLATREGSRH.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.DLATREGSRH,fileNamePrefix="Modelica_3_2_1_Modelica_Electrical_Digital_Examples_DLATREGSRH",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.743/1.743, allocations: 171.2 MB / 186.1 MB, free: 1.031 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004876/0.0004875, allocations: 8 kB / 233.4 MB, free: 2.254 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08346/0.08399, allocations: 38.77 MB / 272.1 MB, free: 11.41 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3475/0.4315, allocations: 72.79 MB / 344.9 MB, free: 112 kB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000274/0.4318, allocations: 70.59 kB / 345 MB, free: 76 kB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1144/0.5463, allocations: 29.98 MB / 375 MB, free: 7.023 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.206e-06/0.5464, allocations: 0 / 375 MB, free: 7.023 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.937e-05/0.5465, allocations: 16 kB / 375 MB, free: 7.008 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.002482/0.549, allocations: 1.493 MB / 376.5 MB, free: 5.488 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.322e-05/0.549, allocations: 12.02 kB / 376.5 MB, free: 5.477 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001747/0.5492, allocations: 61.86 kB / 376.5 MB, free: 5.418 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002746/0.5495, allocations: 134.4 kB / 376.7 MB, free: 5.285 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001132/0.5506, allocations: 0.5078 MB / 377.2 MB, free: 4.766 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.209e-05/0.5507, allocations: 27.88 kB / 377.2 MB, free: 4.742 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001304/0.5509, allocations: 27.94 kB / 377.2 MB, free: 4.719 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001584/0.5525, allocations: 0.6183 MB / 377.9 MB, free: 4.25 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.42e-05/0.5525, allocations: 3.953 kB / 377.9 MB, free: 4.246 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.761e-05/0.5526, allocations: 15.81 kB / 377.9 MB, free: 4.234 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.468e-06/0.5526, allocations: 7.938 kB / 377.9 MB, free: 4.227 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001171/0.5538, allocations: 469.1 kB / 378.3 MB, free: 3.906 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002691/0.5565, allocations: 1.122 MB / 379.5 MB, free: 2.984 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001357/0.5579, allocations: 0.7006 MB / 380.2 MB, free: 2.574 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.232e-05/0.5579, allocations: 3.984 kB / 380.2 MB, free: 2.57 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001545/0.5595, allocations: 0.7388 MB / 380.9 MB, free: 1.941 MB / 298.7 MB Notification: Performance of pre-optimization done (n=33): time 2.866e-06/0.5595, allocations: 0 / 380.9 MB, free: 1.941 MB / 298.7 MB Notification: Performance of matching and sorting (n=33): time 0.004574/0.5641, allocations: 2.113 MB / 383 MB, free: 92 kB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003154/0.5644, allocations: 325 kB / 383.3 MB, free: 15.71 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00326/0.5677, allocations: 1.473 MB / 384.8 MB, free: 14.23 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001367/0.5678, allocations: 45.69 kB / 384.9 MB, free: 14.18 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003048/0.5682, allocations: 238.4 kB / 385.1 MB, free: 13.94 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001684/0.5683, allocations: 83.12 kB / 385.2 MB, free: 13.86 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.461e-05/0.5684, allocations: 12 kB / 385.2 MB, free: 13.84 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002068/0.5687, allocations: 366.8 kB / 385.5 MB, free: 13.48 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001129/0.5698, allocations: 447.8 kB / 386 MB, free: 13.04 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001179/0.571, allocations: 478 kB / 386.4 MB, free: 12.56 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001086/0.5721, allocations: 0.5755 MB / 387 MB, free: 11.94 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/0.5721, allocations: 4 kB / 387 MB, free: 11.93 MB / 314.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.003072/0.5752, allocations: 1.342 MB / 388.4 MB, free: 10.54 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003017/0.5755, allocations: 298.6 kB / 388.7 MB, free: 10.2 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.413e-05/0.5755, allocations: 4 kB / 388.7 MB, free: 10.19 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.581e-05/0.5756, allocations: 0 / 388.7 MB, free: 10.19 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3e-05/0.5756, allocations: 0 / 388.7 MB, free: 10.19 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.448e-06/0.5756, allocations: 7.938 kB / 388.7 MB, free: 10.18 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005913/0.5762, allocations: 43.94 kB / 388.7 MB, free: 10.14 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002507/0.5765, allocations: 140.1 kB / 388.9 MB, free: 10 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: 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.001746/0.5783, allocations: 0.9336 MB / 389.8 MB, free: 9.008 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000255/0.5785, allocations: 130.5 kB / 389.9 MB, free: 8.879 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004298/0.579, allocations: 204.1 kB / 390.1 MB, free: 8.676 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.509e-06/0.579, allocations: 0 / 390.1 MB, free: 8.676 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.251e-06/0.579, allocations: 4 kB / 390.1 MB, free: 8.672 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.349e-06/0.579, allocations: 0 / 390.1 MB, free: 8.672 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00478/0.5838, allocations: 2.346 MB / 392.5 MB, free: 6.215 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.256e-06/0.5838, allocations: 0 / 392.5 MB, free: 6.215 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.472e-05/0.5839, allocations: 0 / 392.5 MB, free: 6.215 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.119e-06/0.5839, allocations: 0 / 392.5 MB, free: 6.215 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001125/0.584, allocations: 35.98 kB / 392.5 MB, free: 6.18 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.021e-06/0.584, allocations: 4 kB / 392.5 MB, free: 6.176 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.584, allocations: 0 / 392.5 MB, free: 6.176 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003523/0.5876, allocations: 1.642 MB / 394.1 MB, free: 4.465 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001681/0.5893, allocations: 0.6435 MB / 394.8 MB, free: 3.801 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002915/0.5896, allocations: 63.95 kB / 394.8 MB, free: 3.738 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005899/0.5902, allocations: 35.88 kB / 394.9 MB, free: 3.703 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009904/0.5912, allocations: 375.6 kB / 395.3 MB, free: 3.336 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002447/0.5914, allocations: 143.8 kB / 395.4 MB, free: 3.195 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.002585/0.594, allocations: 1.221 MB / 396.6 MB, free: 1.973 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.1e-07/0.594, allocations: 4 kB / 396.6 MB, free: 1.969 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007814/0.5948, allocations: 151.9 kB / 396.8 MB, free: 1.82 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: 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.004105/0.599, allocations: 2.273 MB / 399 MB, free: 15.47 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.003474/0.6025, allocations: 1.924 MB / 401 MB, free: 13.45 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.6025, allocations: 0 / 401 MB, free: 13.45 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002215/0.6047, allocations: 1.432 MB / 402.4 MB, free: 11.92 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002058/0.6068, allocations: 292.5 kB / 402.7 MB, free: 11.64 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01459/0.6214, allocations: 6.751 MB / 409.4 MB, free: 4.793 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001414/0.6228, allocations: 1.172 MB / 410.6 MB, free: 3.598 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0002475/0.6231, allocations: 45.42 kB / 410.6 MB, free: 3.551 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002439/0.6234, allocations: 139.4 kB / 410.8 MB, free: 3.414 MB / 330.7 MB Notification: Performance of SimCode: time 9.22e-07/0.6234, allocations: 4 kB / 410.8 MB, free: 3.41 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3329/0.9563, allocations: 19.39 MB / 430.2 MB, free: 107.2 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002502/0.9566, allocations: 176.6 kB / 430.3 MB, free: 106.9 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.924/3.881, allocations: 3.656 kB / 430.4 MB, free: 106.9 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Electrical.Digital.Examples.DLATREGSRH_res.mat does not exist to compare? outputFormat=mat