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 1.969/1.969, allocations: 194.9 MB / 211.1 MB, free: 7.586 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000352/0.0003524, allocations: 23.92 kB / 264.1 MB, free: 2.508 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2841/0.2845, allocations: 44.5 MB / 308.6 MB, free: 12.64 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.002038/0.2866, allocations: 1.153 MB / 309.7 MB, free: 11.48 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.00128/0.2879, allocations: 0.5506 MB / 310.3 MB, free: 10.92 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.127e-05/0.288, allocations: 0 / 310.3 MB, free: 10.92 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 3.513e-05/0.288, allocations: 0 / 310.3 MB, free: 10.92 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 7.737e-05/0.2881, allocations: 19.91 kB / 310.3 MB, free: 10.9 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007042/0.2888, allocations: 119.8 kB / 310.4 MB, free: 10.79 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001089/0.289, allocations: 47.89 kB / 310.4 MB, free: 10.74 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001001/0.2891, allocations: 23.98 kB / 310.5 MB, free: 10.71 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.52e-05/0.2891, allocations: 23.92 kB / 310.5 MB, free: 10.69 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.68e-05/0.2892, allocations: 35.81 kB / 310.5 MB, free: 10.66 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.254e-05/0.2893, allocations: 7.938 kB / 310.5 MB, free: 10.65 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002175/0.2895, allocations: 75.94 kB / 310.6 MB, free: 10.57 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.66e-05/0.2895, allocations: 15.92 kB / 310.6 MB, free: 10.56 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 5.879e-05/0.2896, allocations: 37.7 kB / 310.7 MB, free: 10.52 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002225/0.2898, allocations: 104.7 kB / 310.8 MB, free: 10.41 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.254e-06/0.2899, allocations: 0 / 310.8 MB, free: 10.41 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.2899, allocations: 0 / 310.8 MB, free: 10.41 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.629e-06/0.2899, allocations: 4 kB / 310.8 MB, free: 10.41 MB / 250.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.0005368/0.2904, allocations: 489.9 kB / 311.2 MB, free: 9.859 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.201e-05/0.2905, allocations: 8.031 kB / 311.2 MB, free: 9.852 MB / 250.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.121e-05/0.2905, allocations: 42.55 kB / 311.3 MB, free: 9.801 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.48e-05/0.2906, allocations: 15.81 kB / 311.3 MB, free: 9.785 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001481/0.2908, allocations: 175 kB / 311.5 MB, free: 9.574 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.584e-05/0.2908, allocations: 4 kB / 311.5 MB, free: 9.57 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.148e-05/0.2908, allocations: 12 kB / 311.5 MB, free: 9.559 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002602/0.2911, allocations: 97.59 kB / 311.6 MB, free: 9.457 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.04e-05/0.2911, allocations: 4 kB / 311.6 MB, free: 9.453 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.641e-05/0.2912, allocations: 0 / 311.6 MB, free: 9.453 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.975e-06/0.2912, allocations: 4 kB / 311.6 MB, free: 9.449 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001559/0.2914, allocations: 51.91 kB / 311.6 MB, free: 9.398 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005891/0.292, allocations: 348.5 kB / 312 MB, free: 9.008 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000181/0.2922, allocations: 70.5 kB / 312.1 MB, free: 8.93 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.344e-05/0.2922, allocations: 3.984 kB / 312.1 MB, free: 8.926 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002987/0.2925, allocations: 166.8 kB / 312.2 MB, free: 8.738 MB / 250.7 MB Notification: Performance of pre-optimization done (n=11): time 1.923e-06/0.2925, allocations: 0 / 312.2 MB, free: 8.738 MB / 250.7 MB Notification: Performance of matching and sorting (n=11): time 0.00073/0.2932, allocations: 423.5 kB / 312.6 MB, free: 8.27 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001076/0.2934, allocations: 162.2 kB / 312.8 MB, free: 8.074 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000147/0.2935, allocations: 142 kB / 312.9 MB, free: 7.926 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.361e-05/0.2936, allocations: 37.62 kB / 313 MB, free: 7.883 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.719e-05/0.2937, allocations: 96.05 kB / 313.1 MB, free: 7.785 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.784e-05/0.2937, allocations: 27.88 kB / 313.1 MB, free: 7.758 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.131e-05/0.2937, allocations: 4 kB / 313.1 MB, free: 7.754 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001413/0.2939, allocations: 322.8 kB / 313.4 MB, free: 7.43 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.4e-05/0.294, allocations: 35.89 kB / 313.4 MB, free: 7.395 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.34e-05/0.2941, allocations: 38.48 kB / 313.5 MB, free: 7.359 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000158/0.2943, allocations: 138.8 kB / 313.6 MB, free: 7.199 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.2943, allocations: 4 kB / 313.6 MB, free: 7.195 MB / 250.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004195/0.2947, allocations: 264.2 kB / 313.9 MB, free: 6.906 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.512e-05/0.2948, allocations: 118.8 kB / 314 MB, free: 6.766 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.781e-06/0.2948, allocations: 0 / 314 MB, free: 6.766 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.644e-05/0.2949, allocations: 3.953 kB / 314 MB, free: 6.762 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.02e-05/0.2949, allocations: 0 / 314 MB, free: 6.762 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.202e-06/0.2949, allocations: 4 kB / 314 MB, free: 6.758 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001185/0.295, allocations: 7.984 kB / 314 MB, free: 6.75 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.07e-05/0.2951, allocations: 8 kB / 314 MB, free: 6.742 MB / 250.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.y,$PRE.Pre1.u,Pre1.u,Pre1.y) * 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.0001944/0.2953, allocations: 191.1 kB / 314.2 MB, free: 6.535 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.904e-05/0.2953, allocations: 15.84 kB / 314.2 MB, free: 6.52 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.803e-05/0.2954, allocations: 12.38 kB / 314.2 MB, free: 6.508 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.971e-06/0.2954, allocations: 3.953 kB / 314.2 MB, free: 6.504 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.2954, allocations: 0 / 314.2 MB, free: 6.504 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.262e-06/0.2954, allocations: 3.984 kB / 314.2 MB, free: 6.5 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002243/0.2956, allocations: 209.6 kB / 314.4 MB, free: 6.246 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.647e-06/0.2957, allocations: 4 kB / 314.4 MB, free: 6.242 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.025e-06/0.2957, allocations: 4 kB / 314.5 MB, free: 6.238 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.555e-06/0.2957, allocations: 0 / 314.5 MB, free: 6.238 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.638e-05/0.2957, allocations: 7.984 kB / 314.5 MB, free: 6.23 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.923e-06/0.2957, allocations: 0 / 314.5 MB, free: 6.23 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.817e-06/0.2957, allocations: 3.953 kB / 314.5 MB, free: 6.227 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005266/0.2963, allocations: 280.3 kB / 314.7 MB, free: 5.922 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.069e-05/0.2963, allocations: 81.02 kB / 314.8 MB, free: 5.824 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.484e-05/0.2964, allocations: 12 kB / 314.8 MB, free: 5.812 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001262/0.2965, allocations: 15.98 kB / 314.8 MB, free: 5.797 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.621e-05/0.2966, allocations: 11.98 kB / 314.9 MB, free: 5.785 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.072e-05/0.2966, allocations: 15.83 kB / 314.9 MB, free: 5.77 MB / 250.7 MB Notification: Performance of sorting global known variables: time 8.969e-05/0.2968, allocations: 99.27 kB / 315 MB, free: 5.672 MB / 250.7 MB Notification: Performance of sort global known variables: time 4.1e-07/0.2968, allocations: 0 / 315 MB, free: 5.672 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0003555/0.2971, allocations: 55.89 kB / 315 MB, free: 5.617 MB / 250.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.y,Pre1.u,Pre1.y) * 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.001018/0.2982, allocations: 0.8506 MB / 315.9 MB, free: 4.727 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0004713/0.2987, allocations: 329.5 kB / 316.2 MB, free: 4.355 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.2987, allocations: 4 kB / 316.2 MB, free: 4.352 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002575/0.2989, allocations: 190.8 kB / 316.4 MB, free: 4.141 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001466/0.2991, allocations: 4 kB / 316.4 MB, free: 4.137 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00158/0.3007, allocations: 0.7346 MB / 317.1 MB, free: 3.359 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003464/0.3011, allocations: 0.7043 MB / 317.8 MB, free: 2.629 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 2.892e-05/0.3011, allocations: 11.98 kB / 317.8 MB, free: 2.617 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.655e-05/0.3012, allocations: 19.44 kB / 317.9 MB, free: 2.598 MB / 250.7 MB Notification: Performance of SimCode: time 9.31e-07/0.3012, allocations: 4 kB / 317.9 MB, free: 2.594 MB / 250.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0272/0.3284, allocations: 2.508 MB / 320.4 MB, free: 128 kB / 250.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003298/0.3288, allocations: 169.3 kB / 320.5 MB, free: 15.88 MB / 266.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.284/2.612, allocations: 0 / 320.5 MB, free: 15.88 MB / 266.7 MB "" Variables in the reference:time,Pre1.u,table1.y,table2.y Variables in the result:And1.u1,And1.u2,And1.y,Not1.u,Not1.y,Or1.u1,Or1.u2,Or1.y,Pre1.pre_u_start,Pre1.u,Pre1.y,table1.index,table1.n,table1.nextTime,table1.startValue,table1.table[1],table1.table[2],table1.table[3],table1.table[4],table1.y,table2.index,table2.n,table2.nextTime,table2.startValue,table2.table[1],table2.table[2],table2.table[3],table2.table[4],table2.y,time