Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Blocks.Examples.LogicalNetwork1.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.Blocks.Examples.LogicalNetwork1,fileNamePrefix="Modelica_3_2_1_Modelica_Blocks_Examples_LogicalNetwork1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.741/1.741, allocations: 171.1 MB / 186.1 MB, free: 1.137 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005753/0.0005754, allocations: 8 kB / 233.4 MB, free: 2.277 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09372/0.09435, allocations: 38.76 MB / 272.1 MB, free: 11.43 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3288/0.4232, allocations: 66.31 MB / 338.4 MB, free: 6.555 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002365/0.4235, allocations: 70.11 kB / 338.5 MB, free: 6.52 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009879/0.4334, allocations: 2.156 MB / 340.6 MB, free: 4.594 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.565e-06/0.4334, allocations: 0 / 340.6 MB, free: 4.594 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.904e-06/0.4335, allocations: 0 / 340.6 MB, free: 4.594 MB / 266.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.0005559/0.434, allocations: 488.8 kB / 341.1 MB, free: 4.055 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.66e-05/0.4341, allocations: 8.031 kB / 341.1 MB, free: 4.047 MB / 266.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.242e-05/0.4341, allocations: 38.55 kB / 341.2 MB, free: 4 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.543e-05/0.4342, allocations: 15.53 kB / 341.2 MB, free: 3.988 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001432/0.4344, allocations: 178.8 kB / 341.4 MB, free: 3.773 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.069e-05/0.4344, allocations: 7.984 kB / 341.4 MB, free: 3.766 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.602e-05/0.4344, allocations: 19.7 kB / 341.4 MB, free: 3.75 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002548/0.4347, allocations: 99.02 kB / 341.5 MB, free: 3.668 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.03e-05/0.4347, allocations: 0 / 341.5 MB, free: 3.668 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.673e-05/0.4348, allocations: 4 kB / 341.5 MB, free: 3.664 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.751e-06/0.4348, allocations: 0 / 341.5 MB, free: 3.664 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001673/0.435, allocations: 49.8 kB / 341.5 MB, free: 3.633 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006086/0.4356, allocations: 345 kB / 341.9 MB, free: 3.277 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001774/0.4358, allocations: 71.62 kB / 341.9 MB, free: 3.219 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.408e-06/0.4358, allocations: 0 / 341.9 MB, free: 3.219 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002723/0.4361, allocations: 163.9 kB / 342.1 MB, free: 3.051 MB / 266.7 MB Notification: Performance of pre-optimization done (n=11): time 2.054e-06/0.4361, allocations: 0 / 342.1 MB, free: 3.051 MB / 266.7 MB Notification: Performance of matching and sorting (n=11): time 0.0007143/0.4368, allocations: 429.6 kB / 342.5 MB, free: 2.621 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001062/0.4369, allocations: 162.2 kB / 342.7 MB, free: 2.43 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000137/0.4371, allocations: 123.6 kB / 342.8 MB, free: 2.309 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.45e-05/0.4371, allocations: 32.77 kB / 342.8 MB, free: 2.273 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.067e-05/0.4372, allocations: 106.9 kB / 342.9 MB, free: 2.172 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.508e-05/0.4373, allocations: 22.98 kB / 343 MB, free: 2.156 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.065e-05/0.4373, allocations: 0 / 343 MB, free: 2.156 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001306/0.4374, allocations: 326.2 kB / 343.3 MB, free: 1.832 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000104/0.4376, allocations: 38.47 kB / 343.3 MB, free: 1.805 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001023/0.4377, allocations: 40.95 kB / 343.4 MB, free: 1.777 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001593/0.4378, allocations: 140.4 kB / 343.5 MB, free: 1.629 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.036e-06/0.4379, allocations: 4 kB / 343.5 MB, free: 1.625 MB / 266.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004549/0.4383, allocations: 273.2 kB / 343.8 MB, free: 1.363 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.902e-05/0.4384, allocations: 118.2 kB / 343.9 MB, free: 1.227 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.542e-06/0.4384, allocations: 4 kB / 343.9 MB, free: 1.223 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.553e-05/0.4385, allocations: 0 / 343.9 MB, free: 1.223 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.712e-05/0.4385, allocations: 0 / 343.9 MB, free: 1.223 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.793e-06/0.4385, allocations: 3.938 kB / 343.9 MB, free: 1.219 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001119/0.4387, allocations: 15.94 kB / 343.9 MB, free: 1.203 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.822e-05/0.4387, allocations: 7.812 kB / 343.9 MB, free: 1.199 MB / 266.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.0002231/0.4389, allocations: 200 kB / 344.1 MB, free: 0.9883 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.407e-05/0.439, allocations: 11.91 kB / 344.1 MB, free: 0.9766 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.317e-05/0.439, allocations: 12.31 kB / 344.1 MB, free: 0.9648 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.417e-06/0.4391, allocations: 0 / 344.1 MB, free: 0.9648 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.4391, allocations: 0 / 344.1 MB, free: 0.9648 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.937e-06/0.4391, allocations: 0 / 344.1 MB, free: 0.9648 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002143/0.4393, allocations: 217.5 kB / 344.3 MB, free: 0.7188 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.993e-06/0.4393, allocations: 0 / 344.3 MB, free: 0.7188 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.358e-06/0.4393, allocations: 0 / 344.3 MB, free: 0.7188 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.667e-06/0.4394, allocations: 3.938 kB / 344.3 MB, free: 0.7148 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.21e-05/0.4394, allocations: 4 kB / 344.4 MB, free: 0.7109 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.408e-06/0.4394, allocations: 3.984 kB / 344.4 MB, free: 0.707 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.4394, allocations: 0 / 344.4 MB, free: 0.707 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005195/0.4399, allocations: 285.5 kB / 344.6 MB, free: 460 kB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.253e-05/0.44, allocations: 85.02 kB / 344.7 MB, free: 356 kB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.709e-05/0.4401, allocations: 11.5 kB / 344.7 MB, free: 348 kB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001477/0.4402, allocations: 12.86 kB / 344.7 MB, free: 336 kB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.162e-05/0.4403, allocations: 11.92 kB / 344.8 MB, free: 324 kB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.046e-05/0.4403, allocations: 6.938 kB / 344.8 MB, free: 320 kB / 266.7 MB Notification: Performance of sorting global known variables: time 9.362e-05/0.4404, allocations: 97.7 kB / 344.9 MB, free: 228 kB / 266.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.4405, allocations: 0 / 344.9 MB, free: 228 kB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004081/0.4409, allocations: 50.69 kB / 344.9 MB, free: 180 kB / 266.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.001109/0.442, allocations: 0.8561 MB / 345.8 MB, free: 15.33 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0004719/0.4425, allocations: 326.5 kB / 346.1 MB, free: 15 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 7.834e-06/0.4425, allocations: 4 kB / 346.1 MB, free: 14.99 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002329/0.4428, allocations: 189.7 kB / 346.3 MB, free: 14.82 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001627/0.4429, allocations: 10.61 kB / 346.3 MB, free: 14.81 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001572/0.4445, allocations: 0.7326 MB / 347 MB, free: 14.13 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003155/0.4449, allocations: 0.7076 MB / 347.7 MB, free: 13.4 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 3.316e-05/0.4449, allocations: 4 kB / 347.7 MB, free: 13.4 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.427e-05/0.445, allocations: 25.48 kB / 347.7 MB, free: 13.39 MB / 282.7 MB Notification: Performance of SimCode: time 1.132e-06/0.445, allocations: 0 / 347.7 MB, free: 13.39 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.027/0.472, allocations: 2.515 MB / 350.3 MB, free: 10.93 MB / 282.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003227/0.4724, allocations: 168.9 kB / 350.4 MB, free: 10.69 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.367/2.839, allocations: 4.062 kB / 350.4 MB, free: 10.69 MB / 282.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Blocks.Examples.LogicalNetwork1_res.mat does not exist to compare? outputFormat=mat