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.05/1.05, allocations: 111.2 MB / 124.2 MB, free: 11.21 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 3.143e-05/3.161e-05, allocations: 4 kB / 154.4 MB, free: 13.11 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1722/0.1722, allocations: 25.15 MB / 179.5 MB, free: 0.8359 MB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.06268/0.235, allocations: 33.73 MB / 213.2 MB, free: 15.4 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001951/0.2352, allocations: 55.97 kB / 213.3 MB, free: 15.35 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008875/0.2441, allocations: 1.965 MB / 215.3 MB, free: 13.38 MB / 186.7 MB Notification: Performance of FrontEnd: time 1.794e-06/0.2442, allocations: 0 / 215.3 MB, free: 13.38 MB / 186.7 MB Notification: Performance of Transformations before backend: time 1.74e-05/0.2442, allocations: 4 kB / 215.3 MB, free: 13.38 MB / 186.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.0005472/0.2447, allocations: 489.1 kB / 215.7 MB, free: 12.83 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.705e-05/0.2448, allocations: 11.97 kB / 215.8 MB, free: 12.82 MB / 186.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.249e-05/0.2449, allocations: 38.56 kB / 215.8 MB, free: 12.77 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.075e-05/0.2449, allocations: 11.91 kB / 215.8 MB, free: 12.76 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001513/0.2451, allocations: 178.8 kB / 216 MB, free: 12.55 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.246e-05/0.2451, allocations: 7.984 kB / 216 MB, free: 12.54 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.431e-05/0.2452, allocations: 16 kB / 216 MB, free: 12.52 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002572/0.2454, allocations: 89.66 kB / 216.1 MB, free: 12.43 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.15e-05/0.2455, allocations: 4 kB / 216.1 MB, free: 12.43 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.122e-05/0.2455, allocations: 7.953 kB / 216.1 MB, free: 12.42 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.45e-06/0.2455, allocations: 0 / 216.1 MB, free: 12.42 MB / 186.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001532/0.2457, allocations: 44 kB / 216.1 MB, free: 12.38 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000618/0.2463, allocations: 352.5 kB / 216.5 MB, free: 11.98 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001912/0.2465, allocations: 70.56 kB / 216.6 MB, free: 11.9 MB / 186.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001307/0.2467, allocations: 44.92 kB / 216.6 MB, free: 11.86 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.272e-05/0.2467, allocations: 0 / 216.6 MB, free: 11.86 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002865/0.247, allocations: 162.8 kB / 216.8 MB, free: 11.67 MB / 186.7 MB Notification: Performance of pre-optimization done (n=11): time 2.284e-06/0.247, allocations: 4 kB / 216.8 MB, free: 11.67 MB / 186.7 MB Notification: Performance of matching and sorting (n=11): time 0.0005089/0.2475, allocations: 213 kB / 217 MB, free: 11.44 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001083/0.2477, allocations: 170.2 kB / 217.1 MB, free: 11.24 MB / 186.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001351/0.2478, allocations: 117.2 kB / 217.3 MB, free: 11.11 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 3.873e-05/0.2478, allocations: 33.7 kB / 217.3 MB, free: 11.07 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.553e-05/0.248, allocations: 166.5 kB / 217.4 MB, free: 10.91 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.974e-05/0.248, allocations: 23.7 kB / 217.5 MB, free: 10.89 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.331e-05/0.248, allocations: 7.938 kB / 217.5 MB, free: 10.88 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.0001534/0.2482, allocations: 326.8 kB / 217.8 MB, free: 10.55 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001063/0.2483, allocations: 28 kB / 217.8 MB, free: 10.52 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001147/0.2484, allocations: 39.98 kB / 217.9 MB, free: 10.48 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001735/0.2486, allocations: 152.6 kB / 218 MB, free: 10.31 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.89e-06/0.2486, allocations: 3.953 kB / 218 MB, free: 10.31 MB / 186.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004729/0.2491, allocations: 258.2 kB / 218.3 MB, free: 10.03 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001077/0.2492, allocations: 118.8 kB / 218.4 MB, free: 9.887 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.921e-06/0.2493, allocations: 0 / 218.4 MB, free: 9.887 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.344e-05/0.2493, allocations: 0 / 218.4 MB, free: 9.887 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.729e-05/0.2493, allocations: 7.984 kB / 218.4 MB, free: 9.879 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.005e-06/0.2493, allocations: 0 / 218.4 MB, free: 9.879 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001063/0.2495, allocations: 11.91 kB / 218.4 MB, free: 9.867 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.65e-05/0.2495, allocations: 8 kB / 218.4 MB, free: 9.859 MB / 186.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.0001692/0.2497, allocations: 184.3 kB / 218.6 MB, free: 9.66 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.411e-05/0.2497, allocations: 15.86 kB / 218.6 MB, free: 9.645 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.457e-05/0.2498, allocations: 12.61 kB / 218.6 MB, free: 9.625 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.421e-06/0.2498, allocations: 4 kB / 218.6 MB, free: 9.621 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.2498, allocations: 7.938 kB / 218.6 MB, free: 9.613 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/0.2498, allocations: 0 / 218.6 MB, free: 9.613 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002215/0.2501, allocations: 197.6 kB / 218.8 MB, free: 9.371 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-06/0.2501, allocations: 0 / 218.8 MB, free: 9.371 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.294e-05/0.2501, allocations: 7.938 kB / 218.8 MB, free: 9.363 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.685e-06/0.2501, allocations: 4 kB / 218.8 MB, free: 9.359 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.155e-05/0.2502, allocations: 4 kB / 218.8 MB, free: 9.355 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.888e-06/0.2502, allocations: 4.062 kB / 218.8 MB, free: 9.352 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.2502, allocations: 0 / 218.8 MB, free: 9.352 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005624/0.2507, allocations: 280.3 kB / 219.1 MB, free: 9.047 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.985e-05/0.2508, allocations: 89.09 kB / 219.2 MB, free: 8.941 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.434e-05/0.2509, allocations: 7.953 kB / 219.2 MB, free: 8.934 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001268/0.251, allocations: 15.98 kB / 219.2 MB, free: 8.918 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.885e-05/0.2511, allocations: 7.984 kB / 219.2 MB, free: 8.91 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.587e-05/0.2511, allocations: 8 kB / 219.2 MB, free: 8.902 MB / 186.7 MB Notification: Performance of sorting global known variables: time 8.341e-05/0.2512, allocations: 95.27 kB / 219.3 MB, free: 8.809 MB / 186.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.2512, allocations: 0 / 219.3 MB, free: 8.809 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.0004024/0.2516, allocations: 63.98 kB / 219.4 MB, free: 8.746 MB / 186.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.00106/0.2527, allocations: 0.852 MB / 220.3 MB, free: 7.855 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.0004691/0.2532, allocations: 325.5 kB / 220.6 MB, free: 7.488 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 2.285e-06/0.2532, allocations: 0 / 220.6 MB, free: 7.488 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002485/0.2535, allocations: 198.7 kB / 220.8 MB, free: 7.27 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001478/0.2537, allocations: 19.94 kB / 220.8 MB, free: 7.25 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007002/0.2544, allocations: 250.2 kB / 221 MB, free: 6.965 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003522/0.2547, allocations: 0.7004 MB / 221.7 MB, free: 6.238 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.307e-05/0.2548, allocations: 27.42 kB / 221.8 MB, free: 6.211 MB / 186.7 MB Notification: Performance of SimCode: time 1.012e-06/0.2548, allocations: 0 / 221.8 MB, free: 6.211 MB / 186.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.602/2.857, allocations: 2.064 MB / 223.8 MB, free: 4.145 MB / 186.7 MB