Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_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_cpp_Modelica_Electrical_Digital_Examples_DLATREGSRL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.638/1.638, allocations: 171.1 MB / 186.7 MB, free: 1.043 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004838/0.0004839, allocations: 8 kB / 233.3 MB, free: 2.926 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09302/0.09354, allocations: 38.78 MB / 272.1 MB, free: 12.07 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3903/0.4839, allocations: 72.83 MB / 344.9 MB, free: 0.6367 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002275/0.4842, allocations: 79.39 kB / 345 MB, free: 0.5938 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1244/0.6086, allocations: 37.64 MB / 382.7 MB, free: 0.9727 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.504e-06/0.6087, allocations: 7.938 kB / 382.7 MB, free: 0.9648 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.923e-05/0.6087, allocations: 12 kB / 382.7 MB, free: 0.9531 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.002505/0.6112, allocations: 1.496 MB / 384.2 MB, free: 15.43 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.365e-05/0.6113, allocations: 12.03 kB / 384.2 MB, free: 15.42 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002067/0.6115, allocations: 54.17 kB / 384.2 MB, free: 15.36 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002633/0.6118, allocations: 138.3 kB / 384.4 MB, free: 15.23 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001069/0.6129, allocations: 0.5165 MB / 384.9 MB, free: 14.7 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.526e-05/0.613, allocations: 23.19 kB / 384.9 MB, free: 14.68 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000144/0.6131, allocations: 27.38 kB / 384.9 MB, free: 14.66 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001593/0.6147, allocations: 0.6128 MB / 385.6 MB, free: 14.19 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.212e-05/0.6148, allocations: 3.938 kB / 385.6 MB, free: 14.19 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.863e-05/0.6149, allocations: 23.48 kB / 385.6 MB, free: 14.17 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.986e-06/0.6149, allocations: 4 kB / 385.6 MB, free: 14.16 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001194/0.6161, allocations: 476.3 kB / 386 MB, free: 13.83 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002751/0.6189, allocations: 1.12 MB / 387.2 MB, free: 12.66 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001597/0.6205, allocations: 0.6936 MB / 387.9 MB, free: 11.95 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.918e-05/0.6206, allocations: 8 kB / 387.9 MB, free: 11.95 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00167/0.6223, allocations: 0.7334 MB / 388.6 MB, free: 11.17 MB / 314.7 MB Notification: Performance of pre-optimization done (n=33): time 3.567e-06/0.6223, allocations: 0 / 388.6 MB, free: 11.17 MB / 314.7 MB Notification: Performance of matching and sorting (n=33): time 0.004785/0.6271, allocations: 2.109 MB / 390.7 MB, free: 8.953 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002907/0.6274, allocations: 333 kB / 391 MB, free: 8.566 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003463/0.6309, allocations: 1.469 MB / 392.5 MB, free: 7.086 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002505/0.6312, allocations: 49.69 kB / 392.6 MB, free: 7.031 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002585/0.6315, allocations: 244.9 kB / 392.8 MB, free: 6.789 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002108/0.6317, allocations: 79.19 kB / 392.9 MB, free: 6.711 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.77e-05/0.6318, allocations: 16 kB / 392.9 MB, free: 6.695 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001455/0.632, allocations: 326.8 kB / 393.2 MB, free: 6.367 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001194/0.6332, allocations: 451.7 kB / 393.6 MB, free: 5.926 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001139/0.6343, allocations: 474.1 kB / 394.1 MB, free: 5.453 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001086/0.6355, allocations: 0.5872 MB / 394.7 MB, free: 4.816 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.758e-06/0.6355, allocations: 0 / 394.7 MB, free: 4.816 MB / 314.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.003062/0.6385, allocations: 1.299 MB / 396 MB, free: 3.461 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003402/0.6389, allocations: 297.5 kB / 396.3 MB, free: 3.121 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.546e-06/0.6389, allocations: 0 / 396.3 MB, free: 3.121 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.292e-05/0.639, allocations: 4 kB / 396.3 MB, free: 3.117 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.203e-05/0.639, allocations: 0 / 396.3 MB, free: 3.117 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.252e-05/0.639, allocations: 4 kB / 396.3 MB, free: 3.113 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006442/0.6397, allocations: 47.88 kB / 396.3 MB, free: 3.066 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002516/0.64, allocations: 132.2 kB / 396.5 MB, free: 2.938 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.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.001978/0.642, allocations: 0.9491 MB / 397.4 MB, free: 1.926 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002985/0.6423, allocations: 134.3 kB / 397.6 MB, free: 1.797 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006013/0.6429, allocations: 200.1 kB / 397.7 MB, free: 1.598 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.731e-06/0.6429, allocations: 0 / 397.7 MB, free: 1.598 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.474e-06/0.6429, allocations: 0 / 397.7 MB, free: 1.598 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.959e-06/0.6429, allocations: 4 kB / 397.7 MB, free: 1.594 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00527/0.6482, allocations: 2.338 MB / 400.1 MB, free: 15.14 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.906e-06/0.6483, allocations: 4 kB / 400.1 MB, free: 15.14 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.781e-05/0.6483, allocations: 0 / 400.1 MB, free: 15.14 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.257e-06/0.6483, allocations: 3.984 kB / 400.1 MB, free: 15.13 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001123/0.6484, allocations: 31.98 kB / 400.1 MB, free: 15.1 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.536e-05/0.6485, allocations: 8 kB / 400.1 MB, free: 15.09 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/0.6485, allocations: 0 / 400.1 MB, free: 15.09 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003611/0.6521, allocations: 1.642 MB / 401.8 MB, free: 13.38 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001853/0.654, allocations: 0.6512 MB / 402.4 MB, free: 12.71 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003104/0.6543, allocations: 59.95 kB / 402.5 MB, free: 12.65 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006157/0.655, allocations: 35.97 kB / 402.5 MB, free: 12.62 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001005/0.656, allocations: 379.5 kB / 402.9 MB, free: 12.25 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002598/0.6563, allocations: 127.9 kB / 403 MB, free: 12.12 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.002986/0.6593, allocations: 1.228 MB / 404.2 MB, free: 10.89 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.51e-07/0.6593, allocations: 4 kB / 404.2 MB, free: 10.89 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.000932/0.6603, allocations: 144 kB / 404.4 MB, free: 10.75 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.004291/0.6646, allocations: 2.277 MB / 406.7 MB, free: 8.395 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.003739/0.6684, allocations: 1.921 MB / 408.6 MB, free: 6.375 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.169e-06/0.6684, allocations: 0 / 408.6 MB, free: 6.375 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002454/0.6709, allocations: 1.436 MB / 410 MB, free: 4.84 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002134/0.6731, allocations: 299.4 kB / 410.3 MB, free: 4.551 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01662/0.6897, allocations: 6.85 MB / 417.2 MB, free: 13.6 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00158/0.6914, allocations: 1.172 MB / 418.3 MB, free: 12.41 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002714/0.6917, allocations: 139.4 kB / 418.5 MB, free: 12.27 MB / 346.7 MB Notification: Performance of SimCode: time 3.176e-06/0.6917, allocations: 3.938 kB / 418.5 MB, free: 12.27 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.935/3.627, allocations: 12.69 MB / 431.2 MB, free: 107.5 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Electrical.Digital.Examples.DLATREGSRL_res.mat does not exist to compare? outputFormat=mat