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/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.235/1.235, allocations: 111.2 MB / 119.1 MB, free: 11.17 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.192e-05/2.195e-05, allocations: 4 kB / 148.2 MB, free: 6.125 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05507/0.05513, allocations: 25.17 MB / 173.4 MB, free: 12.92 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2301/0.2852, allocations: 33.05 MB / 206.4 MB, free: 4.637 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002144/0.2855, allocations: 58.09 kB / 206.5 MB, free: 4.637 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009083/0.2946, allocations: 1.96 MB / 208.4 MB, free: 4.258 MB / 170.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.2947, allocations: 0 / 208.4 MB, free: 4.258 MB / 170.7 MB Notification: Performance of Transformations before backend: time 9.848e-06/0.2947, allocations: 1.375 kB / 208.4 MB, free: 4.258 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.0004668/0.2952, allocations: 489.7 kB / 208.9 MB, free: 3.766 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.531e-05/0.2952, allocations: 9.625 kB / 208.9 MB, free: 3.766 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.071e-05/0.2953, allocations: 10.78 kB / 208.9 MB, free: 3.762 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001023/0.2954, allocations: 174.7 kB / 209.1 MB, free: 3.559 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.911e-05/0.2955, allocations: 6.75 kB / 209.1 MB, free: 3.555 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.913e-05/0.2955, allocations: 6.875 kB / 209.1 MB, free: 3.555 MB / 170.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001972/0.2957, allocations: 48.98 kB / 209.2 MB, free: 3.551 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001908/0.2959, allocations: 82.47 kB / 209.3 MB, free: 3.52 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.032e-05/0.2959, allocations: 0 / 209.3 MB, free: 3.52 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.878e-05/0.296, allocations: 5.297 kB / 209.3 MB, free: 3.516 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.952e-06/0.296, allocations: 2.625 kB / 209.3 MB, free: 3.516 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005207/0.2965, allocations: 313.7 kB / 209.6 MB, free: 3.273 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001666/0.2967, allocations: 69.05 kB / 209.6 MB, free: 3.246 MB / 170.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.761e-05/0.2968, allocations: 48.38 kB / 209.7 MB, free: 3.234 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.511e-05/0.2968, allocations: 0 / 209.7 MB, free: 3.234 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002519/0.2971, allocations: 154.7 kB / 209.8 MB, free: 3.121 MB / 170.7 MB Notification: Performance of pre-optimization done (n=11): time 2.284e-06/0.2971, allocations: 5.5 kB / 209.8 MB, free: 3.117 MB / 170.7 MB Notification: Performance of matching and sorting (n=11): time 0.0004547/0.2976, allocations: 153.5 kB / 210 MB, free: 3.078 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.165e-05/0.2976, allocations: 161 kB / 210.1 MB, free: 2.891 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001211/0.2978, allocations: 119.9 kB / 210.3 MB, free: 2.797 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 2.543e-05/0.2978, allocations: 31.66 kB / 210.3 MB, free: 2.766 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.11e-05/0.2979, allocations: 168.7 kB / 210.5 MB, free: 2.613 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.304e-05/0.2979, allocations: 20.12 kB / 210.5 MB, free: 2.602 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.588e-06/0.2979, allocations: 3.938 kB / 210.5 MB, free: 2.598 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 6.272e-05/0.298, allocations: 325.1 kB / 210.8 MB, free: 2.281 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.831e-05/0.2981, allocations: 33.23 kB / 210.8 MB, free: 2.281 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.338e-05/0.2982, allocations: 25.38 kB / 210.9 MB, free: 2.281 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001689/0.2984, allocations: 37.39 kB / 210.9 MB, free: 2.281 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.717e-06/0.2984, allocations: 1.375 kB / 210.9 MB, free: 2.281 MB / 170.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.000395/0.2988, allocations: 149.8 kB / 211 MB, free: 2.238 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.752e-05/0.2989, allocations: 117.6 kB / 211.2 MB, free: 2.113 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.094e-06/0.2989, allocations: 0 / 211.2 MB, free: 2.113 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.03e-05/0.2989, allocations: 1.281 kB / 211.2 MB, free: 2.113 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.639e-05/0.299, allocations: 11.66 kB / 211.2 MB, free: 2.109 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.908e-06/0.299, allocations: 4 kB / 211.2 MB, free: 2.105 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001118/0.2991, allocations: 8.5 kB / 211.2 MB, free: 2.102 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.706e-05/0.2992, allocations: 5.938 kB / 211.2 MB, free: 2.102 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 () * 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.0001334/0.2993, allocations: 178.4 kB / 211.4 MB, free: 1.934 MB / 170.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004483/0.2998, allocations: 169 kB / 211.5 MB, free: 1.895 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.112e-05/0.2998, allocations: 18.59 kB / 211.5 MB, free: 1.887 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.551e-05/0.2999, allocations: 12.69 kB / 211.6 MB, free: 1.871 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.967e-06/0.2999, allocations: 5.469 kB / 211.6 MB, free: 1.867 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.16e-06/0.2999, allocations: 0 / 211.6 MB, free: 1.867 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.451e-06/0.2999, allocations: 1.406 kB / 211.6 MB, free: 1.867 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001575/0.3001, allocations: 183.2 kB / 211.7 MB, free: 1.707 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.284e-06/0.3001, allocations: 0 / 211.7 MB, free: 1.707 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.249e-05/0.3001, allocations: 1.094 kB / 211.7 MB, free: 1.707 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.633e-06/0.3001, allocations: 6.391 kB / 211.8 MB, free: 1.703 MB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.991e-05/0.3002, allocations: 2.25 kB / 211.8 MB, free: 1.703 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.265e-06/0.3002, allocations: 1.125 kB / 211.8 MB, free: 1.703 MB / 170.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/0.3002, allocations: 0 / 211.8 MB, free: 1.703 MB / 170.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000402/0.3006, allocations: 201.4 kB / 212 MB, free: 1.633 MB / 170.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.028e-05/0.3007, allocations: 84.06 kB / 212 MB, free: 1.535 MB / 170.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.282e-05/0.3007, allocations: 11.23 kB / 212 MB, free: 1.531 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001339/0.3009, allocations: 15.84 kB / 212.1 MB, free: 1.527 MB / 170.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.492e-05/0.3009, allocations: 18.17 kB / 212.1 MB, free: 1.52 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.981e-05/0.301, allocations: 7.562 kB / 212.1 MB, free: 1.516 MB / 170.7 MB Notification: Performance of sorting global known variables: time 6.532e-05/0.3011, allocations: 97.17 kB / 212.2 MB, free: 1.441 MB / 170.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.3011, allocations: 4 kB / 212.2 MB, free: 1.438 MB / 170.7 MB Notification: Performance of remove unused functions: time 0.0004783/0.3016, allocations: 60.55 kB / 212.2 MB, free: 1.43 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) * 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.0008586/0.3024, allocations: 0.7654 MB / 213 MB, free: 0.8359 MB / 170.7 MB Notification: Performance of simCode: created initialization part: time 0.000465/0.3029, allocations: 329.7 kB / 213.3 MB, free: 16.57 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 3.506e-06/0.3029, allocations: 4 kB / 213.3 MB, free: 16.57 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002166/0.3032, allocations: 186.4 kB / 213.5 MB, free: 16.45 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001978/0.3034, allocations: 8.453 kB / 213.5 MB, free: 16.44 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008287/0.3042, allocations: 244.5 kB / 213.8 MB, free: 16.29 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002864/0.3046, allocations: 0.7018 MB / 214.5 MB, free: 15.59 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.749e-05/0.3046, allocations: 27.3 kB / 214.5 MB, free: 15.59 MB / 186.7 MB Notification: Performance of SimCode: time 1.122e-06/0.3046, allocations: 0 / 214.5 MB, free: 15.59 MB / 186.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.499/2.803, allocations: 2.092 MB / 216.6 MB, free: 15.38 MB / 186.7 MB