Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.1_cpp_Modelica.Blocks.Examples.LogicalNetwork1.conf.json Using package ModelicaServices with version 1.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.LogicalNetwork1,fileNamePrefix="Modelica_3_1_cpp_Modelica_Blocks_Examples_LogicalNetwork1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.016/1.016, allocations: 111.1 MB / 126.7 MB, free: 6.133 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002668/0.0002668, allocations: 8 kB / 158.4 MB, free: 15.07 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05445/0.05476, allocations: 25.17 MB / 183.6 MB, free: 5.867 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.214/0.2688, allocations: 33.81 MB / 217.4 MB, free: 6.367 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002139/0.2691, allocations: 59.31 kB / 217.5 MB, free: 6.359 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008903/0.278, allocations: 1.974 MB / 219.4 MB, free: 5.402 MB / 170.7 MB Notification: Performance of FrontEnd: time 3.075e-06/0.2781, allocations: 0 / 219.4 MB, free: 5.402 MB / 170.7 MB Notification: Performance of Transformations before backend: time 9.177e-06/0.2781, allocations: 7.562 kB / 219.4 MB, free: 5.398 MB / 170.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.0004959/0.2786, allocations: 498.7 kB / 219.9 MB, free: 4.879 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.573e-05/0.2787, allocations: 7.594 kB / 219.9 MB, free: 4.879 MB / 170.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.991e-05/0.2787, allocations: 45.38 kB / 220 MB, free: 4.836 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.776e-05/0.2788, allocations: 11.53 kB / 220 MB, free: 4.832 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001035/0.2789, allocations: 166.8 kB / 220.2 MB, free: 4.633 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.124e-05/0.2789, allocations: 11.45 kB / 220.2 MB, free: 4.629 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.116e-05/0.279, allocations: 6.719 kB / 220.2 MB, free: 4.629 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002459/0.2792, allocations: 94.03 kB / 220.3 MB, free: 4.582 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.273e-05/0.2792, allocations: 3.938 kB / 220.3 MB, free: 4.578 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.969e-05/0.2793, allocations: 11.42 kB / 220.3 MB, free: 4.574 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.673e-06/0.2793, allocations: 0 / 220.3 MB, free: 4.574 MB / 170.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001386/0.2794, allocations: 51.62 kB / 220.3 MB, free: 4.566 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005489/0.28, allocations: 335.2 kB / 220.7 MB, free: 4.258 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001743/0.2802, allocations: 73.47 kB / 220.7 MB, free: 4.227 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.503e-05/0.2802, allocations: 3.312 kB / 220.7 MB, free: 4.227 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002466/0.2805, allocations: 169.9 kB / 220.9 MB, free: 4.09 MB / 170.7 MB Notification: Performance of pre-optimization done (n=11): time 2.885e-06/0.2805, allocations: 0 / 220.9 MB, free: 4.09 MB / 170.7 MB Notification: Performance of matching and sorting (n=11): time 0.0006252/0.2811, allocations: 422.9 kB / 221.3 MB, free: 3.777 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.686e-05/0.2812, allocations: 161.5 kB / 221.5 MB, free: 3.59 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001144/0.2814, allocations: 123 kB / 221.6 MB, free: 3.484 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 2.579e-05/0.2814, allocations: 32.27 kB / 221.6 MB, free: 3.453 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.31e-05/0.2815, allocations: 170 kB / 221.8 MB, free: 3.297 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.162e-05/0.2815, allocations: 22.42 kB / 221.8 MB, free: 3.285 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.074e-05/0.2815, allocations: 7.875 kB / 221.8 MB, free: 3.281 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 5.991e-05/0.2816, allocations: 318.5 kB / 222.1 MB, free: 2.965 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.38e-05/0.2817, allocations: 36.39 kB / 222.2 MB, free: 2.961 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.205e-05/0.2818, allocations: 36.92 kB / 222.2 MB, free: 2.953 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001318/0.282, allocations: 144.4 kB / 222.3 MB, free: 2.824 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/0.282, allocations: 0 / 222.3 MB, free: 2.824 MB / 170.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003981/0.2824, allocations: 268.8 kB / 222.6 MB, free: 2.641 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.486e-05/0.2825, allocations: 121.8 kB / 222.7 MB, free: 2.512 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.103e-06/0.2825, allocations: 0 / 222.7 MB, free: 2.512 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.925e-05/0.2825, allocations: 7.938 kB / 222.7 MB, free: 2.504 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.596e-05/0.2826, allocations: 0 / 222.7 MB, free: 2.504 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.985e-06/0.2826, allocations: 3.812 kB / 222.7 MB, free: 2.504 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001197/0.2827, allocations: 18.83 kB / 222.7 MB, free: 2.492 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.655e-05/0.2828, allocations: 4.75 kB / 222.8 MB, free: 2.492 MB / 170.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.000169/0.2829, allocations: 198.2 kB / 222.9 MB, free: 2.305 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.154e-05/0.283, allocations: 15.55 kB / 223 MB, free: 2.297 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.662e-05/0.283, allocations: 15.86 kB / 223 MB, free: 2.285 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.667e-06/0.283, allocations: 0 / 223 MB, free: 2.285 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.921e-06/0.2831, allocations: 3.844 kB / 223 MB, free: 2.285 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.669e-06/0.2831, allocations: 0 / 223 MB, free: 2.285 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001589/0.2832, allocations: 204.6 kB / 223.2 MB, free: 2.07 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/0.2833, allocations: 0.5625 kB / 223.2 MB, free: 2.07 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.054e-05/0.2833, allocations: 3.875 kB / 223.2 MB, free: 2.07 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.959e-06/0.2833, allocations: 3.953 kB / 223.2 MB, free: 2.066 MB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.942e-05/0.2833, allocations: 3.844 kB / 223.2 MB, free: 2.066 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.076e-06/0.2833, allocations: 0.875 kB / 223.2 MB, free: 2.066 MB / 170.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.873e-06/0.2833, allocations: 4 kB / 223.2 MB, free: 2.062 MB / 170.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004732/0.2838, allocations: 271.6 kB / 223.5 MB, free: 1.918 MB / 170.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.907e-05/0.2839, allocations: 84.83 kB / 223.5 MB, free: 1.82 MB / 170.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.308e-05/0.2839, allocations: 7.703 kB / 223.6 MB, free: 1.816 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001374/0.2841, allocations: 19.39 kB / 223.6 MB, free: 1.809 MB / 170.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.632e-05/0.2842, allocations: 11.02 kB / 223.6 MB, free: 1.805 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.159e-05/0.2842, allocations: 15.14 kB / 223.6 MB, free: 1.797 MB / 170.7 MB Notification: Performance of sorting global known variables: time 6.983e-05/0.2843, allocations: 102.1 kB / 223.7 MB, free: 1.711 MB / 170.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.2843, allocations: 0 / 223.7 MB, free: 1.711 MB / 170.7 MB Notification: Performance of remove unused functions: time 0.000415/0.2847, allocations: 56.28 kB / 223.8 MB, free: 1.707 MB / 170.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.0009164/0.2856, allocations: 0.8531 MB / 224.6 MB, free: 1.016 MB / 170.7 MB Notification: Performance of simCode: created initialization part: time 0.0003926/0.2861, allocations: 335.2 kB / 224.9 MB, free: 0.7422 MB / 170.7 MB Notification: Performance of simCode: created event and clocks part: time 3.367e-06/0.2861, allocations: 3.906 kB / 224.9 MB, free: 0.7422 MB / 170.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001872/0.2863, allocations: 193 kB / 225.1 MB, free: 0.6055 MB / 170.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000175/0.2865, allocations: 19.44 kB / 225.1 MB, free: 0.5977 MB / 170.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001447/0.2879, allocations: 0.7556 MB / 225.9 MB, free: 132 kB / 170.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003308/0.2883, allocations: 0.7028 MB / 226.6 MB, free: 15.42 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.522e-05/0.2884, allocations: 21.5 kB / 226.6 MB, free: 15.42 MB / 186.7 MB Notification: Performance of SimCode: time 1.202e-06/0.2884, allocations: 0 / 226.6 MB, free: 15.42 MB / 186.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.538/2.826, allocations: 2.047 MB / 228.7 MB, free: 14.39 MB / 186.7 MB