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.DLATREGSRL.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.DLATREGSRL,fileNamePrefix="Modelica_3_2_1_Modelica_Electrical_Digital_Examples_DLATREGSRL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.699/1.699, allocations: 171.1 MB / 186.1 MB, free: 1.125 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003598/0.0003599, allocations: 8 kB / 233.4 MB, free: 184 kB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08547/0.08587, allocations: 38.77 MB / 272.1 MB, free: 9.328 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3958/0.4817, allocations: 72.84 MB / 345 MB, free: 9.59 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003869/0.4821, allocations: 71.95 kB / 345 MB, free: 9.52 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.156/0.6382, allocations: 37.66 MB / 382.7 MB, free: 3.852 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.605e-06/0.6382, allocations: 0 / 382.7 MB, free: 3.852 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.598e-05/0.6383, allocations: 16 kB / 382.7 MB, free: 3.836 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.002459/0.6407, allocations: 1.492 MB / 384.2 MB, free: 2.238 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.303e-05/0.6408, allocations: 8.031 kB / 384.2 MB, free: 2.23 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002507/0.6411, allocations: 66.53 kB / 384.3 MB, free: 2.156 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002679/0.6414, allocations: 130.4 kB / 384.4 MB, free: 2.027 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001175/0.6425, allocations: 0.5055 MB / 384.9 MB, free: 1.473 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.221e-05/0.6426, allocations: 27.98 kB / 384.9 MB, free: 1.445 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001283/0.6428, allocations: 31.98 kB / 385 MB, free: 1.414 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001667/0.6445, allocations: 0.6183 MB / 385.6 MB, free: 0.7891 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.443e-05/0.6445, allocations: 3.938 kB / 385.6 MB, free: 0.7852 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001002/0.6446, allocations: 23.94 kB / 385.6 MB, free: 0.7617 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.803e-06/0.6446, allocations: 0 / 385.6 MB, free: 0.7617 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001204/0.6459, allocations: 475.7 kB / 386.1 MB, free: 304 kB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002925/0.6488, allocations: 1.116 MB / 387.2 MB, free: 15.12 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001597/0.6504, allocations: 0.6936 MB / 387.9 MB, free: 14.42 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.862e-05/0.6505, allocations: 4 kB / 387.9 MB, free: 14.42 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001711/0.6522, allocations: 0.7368 MB / 388.6 MB, free: 13.64 MB / 330.7 MB Notification: Performance of pre-optimization done (n=33): time 3.196e-06/0.6523, allocations: 0 / 388.6 MB, free: 13.64 MB / 330.7 MB Notification: Performance of matching and sorting (n=33): time 0.004732/0.657, allocations: 2.112 MB / 390.7 MB, free: 11.42 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002751/0.6573, allocations: 332.9 kB / 391.1 MB, free: 11.03 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0034/0.6607, allocations: 1.469 MB / 392.5 MB, free: 9.551 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002479/0.661, allocations: 41.7 kB / 392.6 MB, free: 9.504 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002925/0.6613, allocations: 230.4 kB / 392.8 MB, free: 9.273 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000187/0.6615, allocations: 75.2 kB / 392.9 MB, free: 9.199 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.567e-05/0.6616, allocations: 19.98 kB / 392.9 MB, free: 9.18 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001898/0.6618, allocations: 370.7 kB / 393.3 MB, free: 8.809 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001141/0.663, allocations: 443.8 kB / 393.7 MB, free: 8.375 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001211/0.6642, allocations: 486 kB / 394.2 MB, free: 7.891 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001058/0.6653, allocations: 0.5794 MB / 394.7 MB, free: 7.262 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.789e-06/0.6653, allocations: 3.938 kB / 394.7 MB, free: 7.258 MB / 330.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.003071/0.6684, allocations: 1.342 MB / 396.1 MB, free: 5.859 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003067/0.6687, allocations: 303.2 kB / 396.4 MB, free: 5.516 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.709e-06/0.6688, allocations: 0 / 396.4 MB, free: 5.516 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.685e-05/0.6688, allocations: 0 / 396.4 MB, free: 5.516 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.356e-05/0.6688, allocations: 4 kB / 396.4 MB, free: 5.512 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.856e-06/0.6689, allocations: 0 / 396.4 MB, free: 5.512 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006518/0.6695, allocations: 43.91 kB / 396.4 MB, free: 5.469 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002425/0.6698, allocations: 128.2 kB / 396.6 MB, free: 5.344 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.001864/0.6717, allocations: 0.9453 MB / 397.5 MB, free: 4.336 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003178/0.672, allocations: 134.4 kB / 397.6 MB, free: 4.203 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005884/0.6726, allocations: 208.1 kB / 397.8 MB, free: 3.996 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.17e-06/0.6726, allocations: 0 / 397.8 MB, free: 3.996 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.292e-06/0.6726, allocations: 0 / 397.8 MB, free: 3.996 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.21e-06/0.6726, allocations: 0 / 397.8 MB, free: 3.996 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005083/0.6777, allocations: 2.334 MB / 400.2 MB, free: 1.551 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.392e-06/0.6778, allocations: 4 kB / 400.2 MB, free: 1.547 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.043e-05/0.6778, allocations: 4 kB / 400.2 MB, free: 1.543 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.325e-06/0.6778, allocations: 3.984 kB / 400.2 MB, free: 1.539 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001154/0.678, allocations: 31.98 kB / 400.2 MB, free: 1.508 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.148e-06/0.678, allocations: 0 / 400.2 MB, free: 1.508 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.678, allocations: 0 / 400.2 MB, free: 1.508 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003564/0.6816, allocations: 1.65 MB / 401.9 MB, free: 15.79 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001814/0.6834, allocations: 0.6474 MB / 402.5 MB, free: 15.12 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003153/0.6838, allocations: 67.95 kB / 402.6 MB, free: 15.05 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006323/0.6844, allocations: 43.88 kB / 402.6 MB, free: 15.01 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001005/0.6854, allocations: 379.6 kB / 403 MB, free: 14.64 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002528/0.6857, allocations: 127.9 kB / 403.1 MB, free: 14.51 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.002937/0.6887, allocations: 1.221 MB / 404.3 MB, free: 13.29 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.31e-07/0.6887, allocations: 0 / 404.3 MB, free: 13.29 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0009149/0.6896, allocations: 148 kB / 404.5 MB, free: 13.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,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.004178/0.6938, allocations: 2.273 MB / 406.7 MB, free: 10.79 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.003643/0.6975, allocations: 1.92 MB / 408.7 MB, free: 8.777 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.999e-06/0.6976, allocations: 0 / 408.7 MB, free: 8.777 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002434/0.7, allocations: 1.429 MB / 410.1 MB, free: 7.25 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002235/0.7023, allocations: 316.4 kB / 410.4 MB, free: 6.945 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01688/0.7192, allocations: 6.743 MB / 417.2 MB, free: 116 kB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2166/0.9359, allocations: 1.174 MB / 418.3 MB, free: 107.8 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0002624/0.9362, allocations: 38.02 kB / 418.4 MB, free: 107.7 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002781/0.9365, allocations: 139.1 kB / 418.5 MB, free: 107.7 MB / 346.7 MB Notification: Performance of SimCode: time 1.152e-06/0.9365, allocations: 1.203 kB / 418.5 MB, free: 107.7 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06422/1.001, allocations: 19.39 MB / 437.9 MB, free: 103.4 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002328/1.001, allocations: 188.8 kB / 438.1 MB, free: 103.1 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.805/3.806, allocations: 0 / 438.1 MB, free: 103.1 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Electrical.Digital.Examples.DLATREGSRL_res.mat does not exist to compare? outputFormat=mat