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/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.ShowLogicalSources,fileNamePrefix="Modelica_3_1_cpp_Modelica_Blocks_Examples_ShowLogicalSources",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.436/1.436, allocations: 111.2 MB / 119.1 MB, free: 11.18 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.285e-05/2.303e-05, allocations: 0 / 148.2 MB, free: 6.133 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05823/0.05832, allocations: 25.18 MB / 173.4 MB, free: 12.91 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2156/0.274, allocations: 33.25 MB / 206.6 MB, free: 4.664 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002096/0.2742, allocations: 58.09 kB / 206.7 MB, free: 4.664 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00682/0.2811, allocations: 1.551 MB / 208.2 MB, free: 4.305 MB / 170.7 MB Notification: Performance of FrontEnd: time 1.423e-06/0.2811, allocations: 0 / 208.2 MB, free: 4.305 MB / 170.7 MB Notification: Performance of Transformations before backend: time 9.087e-06/0.2812, allocations: 1.312 kB / 208.2 MB, free: 4.305 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.0005531/0.2817, allocations: 433.4 kB / 208.7 MB, free: 3.879 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.746e-05/0.2818, allocations: 9.312 kB / 208.7 MB, free: 3.879 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.554e-05/0.2819, allocations: 12.73 kB / 208.7 MB, free: 3.871 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001168/0.282, allocations: 172.9 kB / 208.9 MB, free: 3.672 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.116e-05/0.282, allocations: 1.438 kB / 208.9 MB, free: 3.672 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.545e-05/0.282, allocations: 5.766 kB / 208.9 MB, free: 3.672 MB / 170.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001324/0.2822, allocations: 28.44 kB / 208.9 MB, free: 3.668 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001665/0.2824, allocations: 93.98 kB / 209 MB, free: 3.598 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.143e-05/0.2824, allocations: 1.594 kB / 209 MB, free: 3.598 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.655e-05/0.2824, allocations: 3.953 kB / 209 MB, free: 3.594 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.6e-06/0.2824, allocations: 1.531 kB / 209 MB, free: 3.594 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004225/0.2829, allocations: 362.1 kB / 209.3 MB, free: 3.258 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001483/0.283, allocations: 85.3 kB / 209.4 MB, free: 3.184 MB / 170.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.296e-05/0.2831, allocations: 48.14 kB / 209.5 MB, free: 3.156 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.696e-05/0.2832, allocations: 0 / 209.5 MB, free: 3.156 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002119/0.2834, allocations: 139.4 kB / 209.6 MB, free: 3.047 MB / 170.7 MB Notification: Performance of pre-optimization done (n=10): time 1.934e-06/0.2834, allocations: 0 / 209.6 MB, free: 3.047 MB / 170.7 MB Notification: Performance of matching and sorting (n=10): time 0.0003657/0.2838, allocations: 123.8 kB / 209.7 MB, free: 3.004 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.967e-05/0.2839, allocations: 162.2 kB / 209.9 MB, free: 2.816 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001135/0.284, allocations: 116.6 kB / 210 MB, free: 2.727 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 2.065e-05/0.284, allocations: 30.95 kB / 210 MB, free: 2.691 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.544e-05/0.2841, allocations: 164.4 kB / 210.2 MB, free: 2.539 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.946e-05/0.2841, allocations: 18.88 kB / 210.2 MB, free: 2.527 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.857e-06/0.2841, allocations: 0 / 210.2 MB, free: 2.527 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 6.708e-05/0.2842, allocations: 318 kB / 210.5 MB, free: 2.215 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.889e-05/0.2843, allocations: 21.23 kB / 210.5 MB, free: 2.215 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.093e-05/0.2844, allocations: 49.17 kB / 210.6 MB, free: 2.184 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001139/0.2845, allocations: 27.52 kB / 210.6 MB, free: 2.18 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.2845, allocations: 0 / 210.6 MB, free: 2.18 MB / 170.7 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.000289/0.2848, allocations: 113.3 kB / 210.7 MB, free: 2.145 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.697e-05/0.2849, allocations: 64.48 kB / 210.8 MB, free: 2.082 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.963e-06/0.2849, allocations: 1.188 kB / 210.8 MB, free: 2.082 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.801e-05/0.2849, allocations: 1.312 kB / 210.8 MB, free: 2.082 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.096e-05/0.285, allocations: 9.266 kB / 210.8 MB, free: 2.078 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.534e-06/0.285, allocations: 5.516 kB / 210.8 MB, free: 2.074 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001456/0.2852, allocations: 14.91 kB / 210.8 MB, free: 2.07 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.127e-05/0.2852, allocations: 9.156 kB / 210.8 MB, free: 2.066 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 () * 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.0001232/0.2854, allocations: 145.9 kB / 211 MB, free: 1.926 MB / 170.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002966/0.2857, allocations: 134 kB / 211.1 MB, free: 1.887 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.81e-05/0.2857, allocations: 8.812 kB / 211.1 MB, free: 1.883 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.609e-05/0.2858, allocations: 16.45 kB / 211.1 MB, free: 1.871 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.879e-06/0.2858, allocations: 1.594 kB / 211.1 MB, free: 1.871 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.571e-06/0.2858, allocations: 4.312 kB / 211.1 MB, free: 1.867 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.941e-06/0.2858, allocations: 2.281 kB / 211.1 MB, free: 1.867 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001765/0.286, allocations: 172.1 kB / 211.3 MB, free: 1.703 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.296e-06/0.286, allocations: 1.219 kB / 211.3 MB, free: 1.703 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.643e-05/0.286, allocations: 6.578 kB / 211.3 MB, free: 1.699 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.669e-06/0.286, allocations: 1.375 kB / 211.3 MB, free: 1.699 MB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.96e-05/0.2861, allocations: 8.062 kB / 211.3 MB, free: 1.695 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.026e-06/0.2861, allocations: 0.625 kB / 211.3 MB, free: 1.695 MB / 170.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.378e-06/0.2861, allocations: 5.078 kB / 211.3 MB, free: 1.691 MB / 170.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003193/0.2864, allocations: 198.2 kB / 211.5 MB, free: 1.566 MB / 170.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.58e-05/0.2865, allocations: 83.89 kB / 211.6 MB, free: 1.469 MB / 170.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.454e-05/0.2865, allocations: 7.859 kB / 211.6 MB, free: 1.465 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001535/0.2867, allocations: 14.12 kB / 211.6 MB, free: 1.465 MB / 170.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.559e-05/0.2868, allocations: 17.19 kB / 211.6 MB, free: 1.461 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.721e-05/0.2868, allocations: 3.406 kB / 211.6 MB, free: 1.461 MB / 170.7 MB Notification: Performance of sorting global known variables: time 6.695e-05/0.2869, allocations: 102.4 kB / 211.7 MB, free: 1.387 MB / 170.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.2869, allocations: 0 / 211.7 MB, free: 1.387 MB / 170.7 MB Notification: Performance of remove unused functions: time 0.0003565/0.2873, allocations: 33.84 kB / 211.8 MB, free: 1.383 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) * 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.0006413/0.2879, allocations: 0.8882 MB / 212.7 MB, free: 0.6016 MB / 170.7 MB Notification: Performance of simCode: created initialization part: time 0.0003501/0.2883, allocations: 178.8 kB / 212.8 MB, free: 16.47 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 4.418e-06/0.2883, allocations: 1.406 kB / 212.8 MB, free: 16.47 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001768/0.2885, allocations: 119.2 kB / 213 MB, free: 16.4 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002629/0.2888, allocations: 15.64 kB / 213 MB, free: 16.4 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006354/0.2894, allocations: 219.9 kB / 213.2 MB, free: 16.23 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003373/0.2898, allocations: 0.6961 MB / 213.9 MB, free: 15.53 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.819e-05/0.2899, allocations: 20.14 kB / 213.9 MB, free: 15.53 MB / 186.7 MB Notification: Performance of SimCode: time 8.22e-07/0.2899, allocations: 0 / 213.9 MB, free: 15.53 MB / 186.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.726/3.016, allocations: 1.767 MB / 215.7 MB, free: 15.38 MB / 186.7 MB