Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.1_cpp_Modelica.Blocks.Examples.ShowLogicalSources.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.ShowLogicalSources,fileNamePrefix="Modelica_3_1_cpp_Modelica_Blocks_Examples_ShowLogicalSources",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.057/1.057, allocations: 111.1 MB / 126.7 MB, free: 6.141 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004002/0.0004004, allocations: 8 kB / 158.4 MB, free: 15.08 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06875/0.0692, allocations: 25.17 MB / 183.6 MB, free: 5.867 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2169/0.2862, allocations: 34.01 MB / 217.6 MB, free: 6.34 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002409/0.2865, allocations: 57.38 kB / 217.7 MB, free: 6.332 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006921/0.2934, allocations: 1.568 MB / 219.2 MB, free: 5.57 MB / 170.7 MB Notification: Performance of FrontEnd: time 1.773e-06/0.2935, allocations: 0 / 219.2 MB, free: 5.57 MB / 170.7 MB Notification: Performance of Transformations before backend: time 9.248e-06/0.2935, allocations: 3.906 kB / 219.2 MB, free: 5.57 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0006133/0.2941, allocations: 440.6 kB / 219.7 MB, free: 5.121 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.619e-05/0.2942, allocations: 7.625 kB / 219.7 MB, free: 5.121 MB / 170.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.612e-05/0.2943, allocations: 41.8 kB / 219.7 MB, free: 5.078 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.47e-05/0.2943, allocations: 7.844 kB / 219.7 MB, free: 5.074 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001146/0.2944, allocations: 174.8 kB / 219.9 MB, free: 4.867 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.133e-05/0.2945, allocations: 7.672 kB / 219.9 MB, free: 4.867 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.132e-05/0.2945, allocations: 7.281 kB / 219.9 MB, free: 4.867 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002287/0.2947, allocations: 98.25 kB / 220 MB, free: 4.785 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.151e-05/0.2948, allocations: 3.719 kB / 220 MB, free: 4.785 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.588e-05/0.2948, allocations: 0 / 220 MB, free: 4.785 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.883e-06/0.2948, allocations: 3.953 kB / 220 MB, free: 4.781 MB / 170.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001623/0.295, allocations: 40.86 kB / 220 MB, free: 4.773 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004667/0.2955, allocations: 383.6 kB / 220.4 MB, free: 4.383 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001952/0.2957, allocations: 97.89 kB / 220.5 MB, free: 4.301 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.964e-05/0.2957, allocations: 11.78 kB / 220.5 MB, free: 4.293 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000255/0.296, allocations: 142.4 kB / 220.7 MB, free: 4.172 MB / 170.7 MB Notification: Performance of pre-optimization done (n=10): time 2.686e-06/0.296, allocations: 0 / 220.7 MB, free: 4.172 MB / 170.7 MB Notification: Performance of matching and sorting (n=10): time 0.0005838/0.2966, allocations: 281.8 kB / 220.9 MB, free: 3.984 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.471e-05/0.2967, allocations: 165.9 kB / 221.1 MB, free: 3.793 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001348/0.2968, allocations: 128.7 kB / 221.2 MB, free: 3.688 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 2.065e-05/0.2968, allocations: 29.64 kB / 221.3 MB, free: 3.652 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.946e-05/0.2969, allocations: 162.2 kB / 221.4 MB, free: 3.5 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.512e-05/0.297, allocations: 22.75 kB / 221.4 MB, free: 3.488 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.057e-06/0.297, allocations: 0 / 221.4 MB, free: 3.488 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 6.378e-05/0.297, allocations: 318.5 kB / 221.7 MB, free: 3.172 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001015/0.2972, allocations: 30.61 kB / 221.8 MB, free: 3.164 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001109/0.2973, allocations: 53.73 kB / 221.8 MB, free: 3.129 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000124/0.2974, allocations: 90.44 kB / 221.9 MB, free: 3.055 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.327e-06/0.2974, allocations: 0 / 221.9 MB, free: 3.055 MB / 170.7 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003569/0.2978, allocations: 183.9 kB / 222.1 MB, free: 2.941 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.575e-05/0.2979, allocations: 62.78 kB / 222.2 MB, free: 2.879 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.007e-06/0.2979, allocations: 4.578 kB / 222.2 MB, free: 2.875 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.357e-05/0.2979, allocations: 7.828 kB / 222.2 MB, free: 2.871 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.239e-05/0.298, allocations: 3.844 kB / 222.2 MB, free: 2.871 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.007e-06/0.298, allocations: 7.875 kB / 222.2 MB, free: 2.863 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000147/0.2982, allocations: 15.58 kB / 222.2 MB, free: 2.855 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.099e-05/0.2982, allocations: 8.062 kB / 222.2 MB, free: 2.855 MB / 170.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.0001344/0.2983, allocations: 158.3 kB / 222.4 MB, free: 2.703 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.289e-05/0.2984, allocations: 11.31 kB / 222.4 MB, free: 2.699 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.438e-05/0.2984, allocations: 11.97 kB / 222.4 MB, free: 2.695 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.36e-06/0.2985, allocations: 3.953 kB / 222.4 MB, free: 2.691 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.923e-06/0.2985, allocations: 7.844 kB / 222.4 MB, free: 2.688 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.578e-06/0.2985, allocations: 0 / 222.4 MB, free: 2.688 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001823/0.2987, allocations: 190.9 kB / 222.6 MB, free: 2.48 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.796e-06/0.2987, allocations: 3.844 kB / 222.6 MB, free: 2.48 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.479e-05/0.2987, allocations: 7.562 kB / 222.6 MB, free: 2.477 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.208e-06/0.2987, allocations: 0 / 222.6 MB, free: 2.477 MB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.695e-05/0.2988, allocations: 3.844 kB / 222.6 MB, free: 2.477 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.429e-06/0.2988, allocations: 3.844 kB / 222.6 MB, free: 2.477 MB / 170.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.986e-06/0.2988, allocations: 7.891 kB / 222.6 MB, free: 2.469 MB / 170.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004124/0.2992, allocations: 239.8 kB / 222.8 MB, free: 2.305 MB / 170.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.62e-05/0.2993, allocations: 88.81 kB / 222.9 MB, free: 2.203 MB / 170.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.646e-05/0.2993, allocations: 3.844 kB / 222.9 MB, free: 2.203 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001469/0.2995, allocations: 14.77 kB / 222.9 MB, free: 2.199 MB / 170.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.856e-05/0.2995, allocations: 15.05 kB / 223 MB, free: 2.191 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.677e-05/0.2996, allocations: 7.125 kB / 223 MB, free: 2.191 MB / 170.7 MB Notification: Performance of sorting global known variables: time 7.359e-05/0.2996, allocations: 113.8 kB / 223.1 MB, free: 2.102 MB / 170.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.2997, allocations: 3.938 kB / 223.1 MB, free: 2.098 MB / 170.7 MB Notification: Performance of remove unused functions: time 0.000364/0.3, allocations: 34.41 kB / 223.1 MB, free: 2.094 MB / 170.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.0007688/0.3008, allocations: 0.9372 MB / 224.1 MB, free: 1.254 MB / 170.7 MB Notification: Performance of simCode: created initialization part: time 0.000374/0.3012, allocations: 203.2 kB / 224.2 MB, free: 1.113 MB / 170.7 MB Notification: Performance of simCode: created event and clocks part: time 3.637e-06/0.3012, allocations: 0 / 224.2 MB, free: 1.113 MB / 170.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001949/0.3014, allocations: 125 kB / 224.4 MB, free: 1.039 MB / 170.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002651/0.3017, allocations: 15.31 kB / 224.4 MB, free: 1.035 MB / 170.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001448/0.3032, allocations: 1.143 MB / 225.5 MB, free: 100 kB / 170.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003205/0.3035, allocations: 0.7033 MB / 226.2 MB, free: 15.39 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.285e-05/0.3036, allocations: 18.59 kB / 226.3 MB, free: 15.38 MB / 186.7 MB Notification: Performance of SimCode: time 1.343e-06/0.3036, allocations: 0 / 226.3 MB, free: 15.38 MB / 186.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.41/2.713, allocations: 1.76 MB / 228 MB, free: 14.5 MB / 186.7 MB