Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Blocks.Examples.LogicalNetwork1.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.Blocks.Examples.LogicalNetwork1,fileNamePrefix="Modelica_3_2_2_Modelica_Blocks_Examples_LogicalNetwork1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.127/2.127, allocations: 194.9 MB / 211.1 MB, free: 7.59 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004769/0.000477, allocations: 8 kB / 264.1 MB, free: 2.52 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3034/0.3039, allocations: 44.51 MB / 308.6 MB, free: 12.66 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1518/0.4558, allocations: 71.62 MB / 380.2 MB, free: 4.934 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002589/0.4561, allocations: 63.97 kB / 380.2 MB, free: 4.871 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01094/0.467, allocations: 2.137 MB / 382.4 MB, free: 2.73 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.144e-06/0.4671, allocations: 0 / 382.4 MB, free: 2.73 MB / 314.7 MB Notification: Performance of Transformations before backend: time 8.506e-06/0.4671, allocations: 0 / 382.4 MB, free: 2.73 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0006757/0.4678, allocations: 0.4901 MB / 382.9 MB, free: 2.168 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.065e-05/0.4679, allocations: 11.97 kB / 382.9 MB, free: 2.156 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.456e-05/0.468, allocations: 46.55 kB / 382.9 MB, free: 2.102 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.258e-05/0.468, allocations: 15.81 kB / 382.9 MB, free: 2.086 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001482/0.4682, allocations: 167 kB / 383.1 MB, free: 1.883 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.794e-05/0.4682, allocations: 8 kB / 383.1 MB, free: 1.875 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.636e-05/0.4683, allocations: 8 kB / 383.1 MB, free: 1.867 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002883/0.4686, allocations: 93.59 kB / 383.2 MB, free: 1.77 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.344e-05/0.4686, allocations: 0 / 383.2 MB, free: 1.77 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.044e-05/0.4686, allocations: 11.94 kB / 383.2 MB, free: 1.758 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.921e-06/0.4687, allocations: 0 / 383.2 MB, free: 1.758 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001567/0.4688, allocations: 51.97 kB / 383.3 MB, free: 1.707 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006599/0.4695, allocations: 344.6 kB / 383.6 MB, free: 1.32 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002072/0.4697, allocations: 74.55 kB / 383.7 MB, free: 1.238 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.536e-05/0.4698, allocations: 0 / 383.7 MB, free: 1.238 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002939/0.4701, allocations: 162.5 kB / 383.8 MB, free: 1.059 MB / 314.7 MB Notification: Performance of pre-optimization done (n=11): time 2.334e-06/0.4701, allocations: 0 / 383.8 MB, free: 1.059 MB / 314.7 MB Notification: Performance of matching and sorting (n=11): time 0.0007641/0.4709, allocations: 427.1 kB / 384.3 MB, free: 0.5859 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001101/0.471, allocations: 166.2 kB / 384.4 MB, free: 396 kB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001616/0.4712, allocations: 125.1 kB / 384.5 MB, free: 260 kB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.222e-05/0.4712, allocations: 37.7 kB / 384.6 MB, free: 216 kB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.702e-05/0.4713, allocations: 96.12 kB / 384.7 MB, free: 116 kB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.88e-05/0.4714, allocations: 23.84 kB / 384.7 MB, free: 92 kB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.017e-05/0.4714, allocations: 0 / 384.7 MB, free: 92 kB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001604/0.4716, allocations: 322.8 kB / 385 MB, free: 15.77 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001368/0.4717, allocations: 35.98 kB / 385 MB, free: 15.73 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000111/0.4718, allocations: 42.47 kB / 385.1 MB, free: 15.69 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001811/0.472, allocations: 138.8 kB / 385.2 MB, free: 15.53 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.606e-06/0.472, allocations: 0 / 385.2 MB, free: 15.53 MB / 330.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0005076/0.4726, allocations: 276.2 kB / 385.5 MB, free: 15.23 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.997e-05/0.4727, allocations: 114.8 kB / 385.6 MB, free: 15.09 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.02e-05/0.4727, allocations: 3.984 kB / 385.6 MB, free: 15.09 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.969e-05/0.4727, allocations: 4 kB / 385.6 MB, free: 15.09 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.858e-05/0.4728, allocations: 3.984 kB / 385.6 MB, free: 15.08 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.227e-06/0.4728, allocations: 3.953 kB / 385.6 MB, free: 15.08 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001221/0.4729, allocations: 15.94 kB / 385.6 MB, free: 15.06 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.734e-05/0.473, allocations: 4 kB / 385.6 MB, free: 15.06 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 18 ($whenCondition1,$whenCondition2,$PRE.table2.y,table2.y,$PRE.table2.nextTime,table2.nextTime,$PRE.table2.index,table2.index,$PRE.table1.y,table1.y,$PRE.table1.nextTime,table1.nextTime,$PRE.table1.index,table1.index,And1.u2,And1.y,$PRE.Pre1.u,Pre1.u) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 4 * 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.000229/0.4732, allocations: 195.1 kB / 385.8 MB, free: 14.85 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.833e-05/0.4733, allocations: 15.89 kB / 385.8 MB, free: 14.83 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.51e-05/0.4733, allocations: 12.38 kB / 385.9 MB, free: 14.82 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.717e-06/0.4733, allocations: 0 / 385.9 MB, free: 14.82 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.925e-06/0.4734, allocations: 0 / 385.9 MB, free: 14.82 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.372e-06/0.4734, allocations: 7.891 kB / 385.9 MB, free: 14.81 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000233/0.4736, allocations: 213.4 kB / 386.1 MB, free: 14.55 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.434e-06/0.4736, allocations: 4 kB / 386.1 MB, free: 14.55 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.302e-05/0.4737, allocations: 0 / 386.1 MB, free: 14.55 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.468e-06/0.4737, allocations: 0 / 386.1 MB, free: 14.55 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.476e-05/0.4737, allocations: 12 kB / 386.1 MB, free: 14.54 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.775e-06/0.4737, allocations: 0 / 386.1 MB, free: 14.54 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.4737, allocations: 64 / 386.1 MB, free: 14.54 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005879/0.4743, allocations: 284.6 kB / 386.4 MB, free: 14.23 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.4e-05/0.4744, allocations: 77.11 kB / 386.4 MB, free: 14.13 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.884e-05/0.4745, allocations: 7.984 kB / 386.5 MB, free: 14.12 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001488/0.4746, allocations: 12 kB / 386.5 MB, free: 14.11 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.461e-05/0.4747, allocations: 15.92 kB / 386.5 MB, free: 14.1 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.051e-05/0.4747, allocations: 8 kB / 386.5 MB, free: 14.09 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001037/0.4749, allocations: 104 kB / 386.6 MB, free: 13.99 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.465e-06/0.4749, allocations: 0 / 386.6 MB, free: 13.99 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004255/0.4753, allocations: 51.94 kB / 386.6 MB, free: 13.94 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: 11 ($whenCondition1,$whenCondition2,table2.y,table2.nextTime,table2.index,table1.y,table1.nextTime,table1.index,And1.u2,And1.y,Pre1.u) * Number of discrete states: 9 (Pre1.u,table1.y,table1.nextTime,table1.index,$whenCondition1,table2.y,table2.nextTime,table2.index,$whenCondition2) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 2 * 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.001176/0.4765, allocations: 0.8499 MB / 387.5 MB, free: 13.05 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0005195/0.4771, allocations: 333.5 kB / 387.8 MB, free: 12.68 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.058e-06/0.4771, allocations: 0 / 387.8 MB, free: 12.68 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002743/0.4774, allocations: 202.8 kB / 388 MB, free: 12.45 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001693/0.4776, allocations: 8 kB / 388 MB, free: 12.45 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00175/0.4793, allocations: 0.739 MB / 388.8 MB, free: 11.66 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003558/0.4798, allocations: 0.7043 MB / 389.5 MB, free: 10.93 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 3.532e-05/0.4798, allocations: 4 kB / 389.5 MB, free: 10.92 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.499e-05/0.4799, allocations: 27.42 kB / 389.5 MB, free: 10.89 MB / 330.7 MB Notification: Performance of SimCode: time 1.162e-06/0.4799, allocations: 0 / 389.5 MB, free: 10.89 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02781/0.5077, allocations: 2.503 MB / 392 MB, free: 8.434 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003598/0.5082, allocations: 165.4 kB / 392.2 MB, free: 8.195 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.659/3.167, allocations: 0 / 392.2 MB, free: 8.195 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Blocks.Examples.LogicalNetwork1_res.mat does not exist to compare? outputFormat=mat