Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Blocks.Examples.ShowLogicalSources.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.ShowLogicalSources,fileNamePrefix="Modelica_3_2_2_Modelica_Blocks_Examples_ShowLogicalSources",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.936/1.936, allocations: 194.9 MB / 211.1 MB, free: 8.551 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004757/0.000476, allocations: 8 kB / 264 MB, free: 3.5 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2864/0.2869, allocations: 44.51 MB / 308.5 MB, free: 12.77 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.001893/0.2889, allocations: 1.149 MB / 309.7 MB, free: 11.62 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001137/0.2901, allocations: 0.5272 MB / 310.2 MB, free: 11.08 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.591e-05/0.2901, allocations: 0 / 310.2 MB, free: 11.08 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 3.287e-05/0.2902, allocations: 0 / 310.2 MB, free: 11.08 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001203/0.2903, allocations: 23.91 kB / 310.2 MB, free: 11.06 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004717/0.2908, allocations: 67.84 kB / 310.3 MB, free: 10.99 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001103/0.2909, allocations: 55.86 kB / 310.4 MB, free: 10.94 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.757e-05/0.291, allocations: 4.188 kB / 310.4 MB, free: 10.93 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.214e-05/0.291, allocations: 23.92 kB / 310.4 MB, free: 10.91 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.409e-05/0.2911, allocations: 31.89 kB / 310.4 MB, free: 10.88 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.711e-05/0.2912, allocations: 11.94 kB / 310.4 MB, free: 10.87 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001217/0.2913, allocations: 35.97 kB / 310.5 MB, free: 10.83 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.176e-05/0.2914, allocations: 11.98 kB / 310.5 MB, free: 10.82 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 5.603e-05/0.2914, allocations: 37.64 kB / 310.5 MB, free: 10.78 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001623/0.2916, allocations: 68.86 kB / 310.6 MB, free: 10.71 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.244e-06/0.2916, allocations: 0 / 310.6 MB, free: 10.71 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.452e-06/0.2916, allocations: 0 / 310.6 MB, free: 10.71 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.338e-06/0.2916, allocations: 0 / 310.6 MB, free: 10.71 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0006774/0.2923, allocations: 438.5 kB / 311 MB, free: 10.22 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.953e-05/0.2924, allocations: 8.031 kB / 311 MB, free: 10.21 MB / 250.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.521e-05/0.2924, allocations: 38.56 kB / 311.1 MB, free: 10.17 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.282e-05/0.2925, allocations: 11.91 kB / 311.1 MB, free: 10.16 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001576/0.2926, allocations: 186.8 kB / 311.3 MB, free: 9.934 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.806e-05/0.2927, allocations: 0 / 311.3 MB, free: 9.934 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.49e-05/0.2927, allocations: 4 kB / 311.3 MB, free: 9.93 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002586/0.293, allocations: 97.11 kB / 311.4 MB, free: 9.816 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.756e-06/0.293, allocations: 0 / 311.4 MB, free: 9.816 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.896e-05/0.293, allocations: 7.984 kB / 311.4 MB, free: 9.809 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.034e-06/0.293, allocations: 0 / 311.4 MB, free: 9.809 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001749/0.2932, allocations: 43.86 kB / 311.4 MB, free: 9.766 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005188/0.2938, allocations: 394.7 kB / 311.8 MB, free: 9.32 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000212/0.294, allocations: 91.75 kB / 311.9 MB, free: 9.203 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.721e-05/0.294, allocations: 4.141 kB / 311.9 MB, free: 9.199 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003025/0.2943, allocations: 151.5 kB / 312 MB, free: 9.023 MB / 250.7 MB Notification: Performance of pre-optimization done (n=10): time 1.864e-06/0.2944, allocations: 0 / 312 MB, free: 9.023 MB / 250.7 MB Notification: Performance of matching and sorting (n=10): time 0.0006451/0.295, allocations: 276.3 kB / 312.3 MB, free: 8.723 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.784e-05/0.2951, allocations: 162.4 kB / 312.5 MB, free: 8.527 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001511/0.2953, allocations: 148.9 kB / 312.6 MB, free: 8.375 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.68e-05/0.2953, allocations: 29.7 kB / 312.6 MB, free: 8.34 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.118e-05/0.2954, allocations: 92.33 kB / 312.7 MB, free: 8.246 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.291e-05/0.2954, allocations: 15.81 kB / 312.7 MB, free: 8.23 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.226e-06/0.2955, allocations: 0 / 312.7 MB, free: 8.23 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.000133/0.2956, allocations: 322.8 kB / 313.1 MB, free: 7.906 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001072/0.2957, allocations: 27.98 kB / 313.1 MB, free: 7.879 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001317/0.2959, allocations: 63.34 kB / 313.1 MB, free: 7.805 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001407/0.296, allocations: 79.41 kB / 313.2 MB, free: 7.715 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.175e-06/0.296, allocations: 0 / 313.2 MB, free: 7.715 MB / 250.7 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003852/0.2964, allocations: 188.9 kB / 313.4 MB, free: 7.512 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.89e-05/0.2965, allocations: 63.41 kB / 313.5 MB, free: 7.438 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.091e-06/0.2965, allocations: 0 / 313.5 MB, free: 7.438 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.576e-05/0.2965, allocations: 4 kB / 313.5 MB, free: 7.434 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.782e-05/0.2966, allocations: 7.938 kB / 313.5 MB, free: 7.426 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.586e-06/0.2966, allocations: 3.984 kB / 313.5 MB, free: 7.422 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001406/0.2968, allocations: 19.8 kB / 313.5 MB, free: 7.402 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.398e-05/0.2968, allocations: 12 kB / 313.5 MB, free: 7.391 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition2,step.y,pulse.y,$PRE.pulse.pulsStart,pulse.pulsStart,booleanExpression.y,sample.y,$whenCondition1,$PRE.table.y,table.y,$PRE.table.nextTime,table.nextTime,$PRE.table.index,table.index) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 10 * 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 prepare postOptimizeDAE: time 0.0001468/0.297, allocations: 151.6 kB / 313.7 MB, free: 7.227 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.13e-05/0.297, allocations: 11.91 kB / 313.7 MB, free: 7.215 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.243e-05/0.2971, allocations: 16.3 kB / 313.7 MB, free: 7.195 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.997e-06/0.2971, allocations: 0 / 313.7 MB, free: 7.195 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.81e-06/0.2971, allocations: 0 / 313.7 MB, free: 7.195 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.883e-06/0.2971, allocations: 4 kB / 313.7 MB, free: 7.191 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002246/0.2973, allocations: 194 kB / 313.9 MB, free: 6.953 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.2974, allocations: 3.938 kB / 313.9 MB, free: 6.949 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.391e-05/0.2974, allocations: 15.92 kB / 313.9 MB, free: 6.934 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.126e-06/0.2974, allocations: 4.141 kB / 313.9 MB, free: 6.93 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.843e-05/0.2974, allocations: 4 kB / 313.9 MB, free: 6.926 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.415e-06/0.2974, allocations: 0 / 313.9 MB, free: 6.926 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.957e-06/0.2975, allocations: 3.984 kB / 313.9 MB, free: 6.922 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004559/0.2979, allocations: 220.3 kB / 314.1 MB, free: 6.676 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.633e-05/0.298, allocations: 89 kB / 314.2 MB, free: 6.57 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.458e-05/0.298, allocations: 7.938 kB / 314.2 MB, free: 6.562 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001513/0.2982, allocations: 15.98 kB / 314.2 MB, free: 6.547 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.242e-05/0.2983, allocations: 11.98 kB / 314.3 MB, free: 6.535 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.814e-05/0.2983, allocations: 4 kB / 314.3 MB, free: 6.531 MB / 250.7 MB Notification: Performance of sorting global known variables: time 9.46e-05/0.2984, allocations: 107.2 kB / 314.4 MB, free: 6.426 MB / 250.7 MB Notification: Performance of sort global known variables: time 3.9e-07/0.2984, allocations: 0 / 314.4 MB, free: 6.426 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0003321/0.2988, allocations: 32 kB / 314.4 MB, free: 6.395 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,step.y,pulse.y,pulse.pulsStart,booleanExpression.y,sample.y,$whenCondition1,table.y,table.nextTime,table.index) * Number of discrete states: 4 (table.y,table.nextTime,table.index,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 1 * 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.0008603/0.2996, allocations: 0.7797 MB / 315.2 MB, free: 5.574 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0003952/0.3001, allocations: 202.7 kB / 315.4 MB, free: 5.352 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.3001, allocations: 0 / 315.4 MB, free: 5.352 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002236/0.3003, allocations: 115.3 kB / 315.5 MB, free: 5.227 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002529/0.3006, allocations: 15.98 kB / 315.5 MB, free: 5.211 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001496/0.3021, allocations: 0.671 MB / 316.2 MB, free: 4.473 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002971/0.3024, allocations: 0.7004 MB / 316.9 MB, free: 3.746 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 4.841e-05/0.3025, allocations: 8.609 kB / 316.9 MB, free: 3.738 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.149e-05/0.3025, allocations: 23.42 kB / 316.9 MB, free: 3.715 MB / 250.7 MB Notification: Performance of SimCode: time 1.042e-06/0.3025, allocations: 0 / 316.9 MB, free: 3.715 MB / 250.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0259/0.3285, allocations: 2.268 MB / 319.2 MB, free: 1.488 MB / 250.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003447/0.3289, allocations: 167.8 kB / 319.3 MB, free: 1.254 MB / 250.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.34/2.669, allocations: 0 / 319.3 MB, free: 1.254 MB / 250.7 MB "" Variables in the reference:time,table.y Variables in the result:booleanExpression.y,const.k,const.y,pulse.Twidth,pulse.period,pulse.pulsStart,pulse.startTime,pulse.width,pulse.y,sample.period,sample.startTime,sample.y,step.startTime,step.startValue,step.y,table.index,table.n,table.nextTime,table.startValue,table.table[1],table.table[2],table.table[3],table.table[4],table.y,time