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.DLATREGSRL.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.DLATREGSRL,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_Digital_Examples_DLATREGSRL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.059/2.059, allocations: 194.8 MB / 211.1 MB, free: 7.59 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004981/0.0004983, allocations: 8 kB / 264.1 MB, free: 2.504 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3241/0.3246, allocations: 44.5 MB / 308.6 MB, free: 12.65 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1416/0.4663, allocations: 78.16 MB / 386.7 MB, free: 14.38 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002877/0.4666, allocations: 71.95 kB / 386.8 MB, free: 14.31 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3808/0.8474, allocations: 38.58 MB / 425.4 MB, free: 91.9 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.725e-06/0.8475, allocations: 0 / 425.4 MB, free: 91.9 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.653e-05/0.8475, allocations: 12.31 kB / 425.4 MB, free: 91.9 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.002377/0.8499, allocations: 1.53 MB / 426.9 MB, free: 90.8 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.656e-05/0.85, allocations: 7.812 kB / 426.9 MB, free: 90.8 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002494/0.8503, allocations: 60.06 kB / 427 MB, free: 90.76 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002406/0.8505, allocations: 136.2 kB / 427.1 MB, free: 90.7 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001082/0.8516, allocations: 0.5153 MB / 427.6 MB, free: 90.37 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.596e-05/0.8517, allocations: 28.12 kB / 427.7 MB, free: 90.37 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001191/0.8518, allocations: 33.72 kB / 427.7 MB, free: 90.36 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001457/0.8533, allocations: 0.6237 MB / 428.3 MB, free: 90.32 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.495e-05/0.8533, allocations: 0 / 428.3 MB, free: 90.32 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.45e-05/0.8534, allocations: 21.14 kB / 428.3 MB, free: 90.32 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.834e-06/0.8535, allocations: 3.844 kB / 428.3 MB, free: 90.32 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001081/0.8546, allocations: 474.7 kB / 428.8 MB, free: 90.32 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002782/0.8574, allocations: 1.17 MB / 430 MB, free: 89.93 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001473/0.8589, allocations: 0.6975 MB / 430.7 MB, free: 89.83 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.767e-05/0.8589, allocations: 0 / 430.7 MB, free: 89.83 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001469/0.8604, allocations: 0.7518 MB / 431.4 MB, free: 89.5 MB / 346.7 MB Notification: Performance of pre-optimization done (n=33): time 3.196e-06/0.8605, allocations: 4 kB / 431.4 MB, free: 89.5 MB / 346.7 MB Notification: Performance of matching and sorting (n=33): time 0.004051/0.8645, allocations: 2.128 MB / 433.6 MB, free: 88.43 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000197/0.8648, allocations: 333.8 kB / 433.9 MB, free: 88.09 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003763/0.8686, allocations: 1.633 MB / 435.5 MB, free: 87.29 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002585/0.8689, allocations: 43.59 kB / 435.6 MB, free: 87.25 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003142/0.8692, allocations: 241 kB / 435.8 MB, free: 87.04 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001647/0.8694, allocations: 81.09 kB / 435.9 MB, free: 86.98 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.232e-05/0.8695, allocations: 14.12 kB / 435.9 MB, free: 86.98 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001534/0.8696, allocations: 384.3 kB / 436.3 MB, free: 86.62 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001004/0.8706, allocations: 459.7 kB / 436.7 MB, free: 86.3 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009804/0.8716, allocations: 476.7 kB / 437.2 MB, free: 85.82 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008682/0.8725, allocations: 0.5871 MB / 437.8 MB, free: 85.19 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.408e-06/0.8725, allocations: 0 / 437.8 MB, free: 85.19 MB / 346.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.002638/0.8752, allocations: 1.359 MB / 439.1 MB, free: 83.78 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002273/0.8755, allocations: 293.5 kB / 439.4 MB, free: 83.45 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.618e-06/0.8755, allocations: 8.062 kB / 439.4 MB, free: 83.44 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.453e-05/0.8755, allocations: 3.953 kB / 439.4 MB, free: 83.43 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.344e-05/0.8756, allocations: 0 / 439.4 MB, free: 83.43 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.126e-05/0.8756, allocations: 7.984 kB / 439.4 MB, free: 83.43 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006594/0.8763, allocations: 43.88 kB / 439.5 MB, free: 83.38 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001973/0.8765, allocations: 126.9 kB / 439.6 MB, free: 83.26 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.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.001887/0.8784, allocations: 0.9952 MB / 440.6 MB, free: 82.21 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002571/0.8786, allocations: 134.5 kB / 440.7 MB, free: 82.08 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007595/0.8794, allocations: 247.9 kB / 441 MB, free: 81.83 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.172e-06/0.8794, allocations: 4 kB / 441 MB, free: 81.83 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.965e-06/0.8795, allocations: 3.953 kB / 441 MB, free: 81.82 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.391e-06/0.8795, allocations: 0 / 441 MB, free: 81.82 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004473/0.884, allocations: 2.421 MB / 443.4 MB, free: 79.3 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.512e-06/0.884, allocations: 0 / 443.4 MB, free: 79.3 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.244e-05/0.884, allocations: 11.98 kB / 443.4 MB, free: 79.29 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.813e-06/0.8841, allocations: 0 / 443.4 MB, free: 79.29 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000103/0.8842, allocations: 35.94 kB / 443.4 MB, free: 79.25 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.817e-06/0.8842, allocations: 0 / 443.4 MB, free: 79.25 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/0.8842, allocations: 4 kB / 443.4 MB, free: 79.25 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002985/0.8872, allocations: 1.649 MB / 445.1 MB, free: 77.54 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001825/0.8891, allocations: 0.6784 MB / 445.8 MB, free: 76.84 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002879/0.8894, allocations: 59.97 kB / 445.8 MB, free: 76.78 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006322/0.89, allocations: 43.92 kB / 445.9 MB, free: 76.73 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00087/0.8909, allocations: 375.6 kB / 446.2 MB, free: 76.37 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002162/0.8911, allocations: 137.4 kB / 446.4 MB, free: 76.23 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.003001/0.8941, allocations: 1.341 MB / 447.7 MB, free: 74.89 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.052e-06/0.8942, allocations: 0 / 447.7 MB, free: 74.89 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0009623/0.8952, allocations: 148 kB / 447.9 MB, free: 74.75 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.003662/0.8988, allocations: 2.304 MB / 450.2 MB, free: 72.38 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.003109/0.902, allocations: 1.939 MB / 452.1 MB, free: 70.35 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.93e-06/0.9021, allocations: 0 / 452.1 MB, free: 70.35 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001822/0.9039, allocations: 1.444 MB / 453.5 MB, free: 68.81 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001996/0.9059, allocations: 302.5 kB / 453.8 MB, free: 68.52 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01569/0.9217, allocations: 7.138 MB / 461 MB, free: 61.31 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001258/0.923, allocations: 1.223 MB / 462.2 MB, free: 60.06 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0002289/0.9232, allocations: 44.17 kB / 462.2 MB, free: 60.02 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002042/0.9234, allocations: 139.4 kB / 462.4 MB, free: 59.88 MB / 346.7 MB Notification: Performance of SimCode: time 1.092e-06/0.9235, allocations: 0 / 462.4 MB, free: 59.88 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0804/1.004, allocations: 20.56 MB / 482.9 MB, free: 39.04 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002044/1.004, allocations: 185.5 kB / 483.1 MB, free: 38.79 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.104/4.108, allocations: 0 / 483.1 MB, free: 38.79 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DLATREGSRL_res.mat does not exist to compare? outputFormat=mat