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.202/1.202, allocations: 111.2 MB / 124.2 MB, free: 11.14 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.237e-05/2.251e-05, allocations: 0 / 154.4 MB, free: 13.05 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1782/0.1783, allocations: 25.16 MB / 179.5 MB, free: 0.7734 MB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.06312/0.2415, allocations: 33.92 MB / 213.4 MB, free: 15.16 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000254/0.2418, allocations: 59.97 kB / 213.5 MB, free: 15.1 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007272/0.2491, allocations: 1.566 MB / 215.1 MB, free: 13.54 MB / 186.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.2491, allocations: 0 / 215.1 MB, free: 13.54 MB / 186.7 MB Notification: Performance of Transformations before backend: time 7.584e-06/0.2491, allocations: 0 / 215.1 MB, free: 13.54 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0006634/0.2498, allocations: 425.9 kB / 215.5 MB, free: 13.06 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.082e-05/0.2499, allocations: 8.031 kB / 215.5 MB, free: 13.05 MB / 186.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.125e-05/0.2499, allocations: 42.52 kB / 215.5 MB, free: 13 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.098e-05/0.25, allocations: 11.91 kB / 215.5 MB, free: 12.99 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001832/0.2502, allocations: 179.8 kB / 215.7 MB, free: 12.78 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.215e-05/0.2502, allocations: 4 kB / 215.7 MB, free: 12.77 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.527e-05/0.2503, allocations: 4 kB / 215.7 MB, free: 12.77 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002362/0.2505, allocations: 89.11 kB / 215.8 MB, free: 12.66 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.271e-05/0.2505, allocations: 0 / 215.8 MB, free: 12.66 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.887e-05/0.2506, allocations: 11.94 kB / 215.8 MB, free: 12.65 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.829e-06/0.2506, allocations: 3.953 kB / 215.8 MB, free: 12.65 MB / 186.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001328/0.2507, allocations: 32 kB / 215.9 MB, free: 12.62 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005944/0.2513, allocations: 386.7 kB / 216.2 MB, free: 12.18 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001994/0.2516, allocations: 95.75 kB / 216.3 MB, free: 12.06 MB / 186.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001089/0.2517, allocations: 42.58 kB / 216.4 MB, free: 12.01 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.715e-05/0.2517, allocations: 0 / 216.4 MB, free: 12.01 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002827/0.252, allocations: 151.7 kB / 216.5 MB, free: 11.83 MB / 186.7 MB Notification: Performance of pre-optimization done (n=10): time 1.824e-06/0.252, allocations: 0 / 216.5 MB, free: 11.83 MB / 186.7 MB Notification: Performance of matching and sorting (n=10): time 0.0004334/0.2525, allocations: 155.2 kB / 216.7 MB, free: 11.67 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001133/0.2526, allocations: 170.2 kB / 216.8 MB, free: 11.46 MB / 186.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001493/0.2528, allocations: 119.2 kB / 217 MB, free: 11.34 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 3.154e-05/0.2528, allocations: 33.7 kB / 217 MB, free: 11.3 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.042e-05/0.2529, allocations: 158.8 kB / 217.1 MB, free: 11.14 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.641e-05/0.253, allocations: 19.72 kB / 217.2 MB, free: 11.12 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.257e-06/0.253, allocations: 0 / 217.2 MB, free: 11.12 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.0001369/0.2531, allocations: 320.3 kB / 217.5 MB, free: 10.8 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.299e-05/0.2532, allocations: 24 kB / 217.5 MB, free: 10.78 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001131/0.2533, allocations: 63.28 kB / 217.6 MB, free: 10.7 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001214/0.2535, allocations: 83.39 kB / 217.6 MB, free: 10.61 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.2535, allocations: 0 / 217.6 MB, free: 10.61 MB / 186.7 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003725/0.2539, allocations: 177 kB / 217.8 MB, free: 10.42 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.238e-05/0.254, allocations: 63.34 kB / 217.9 MB, free: 10.34 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.406e-06/0.254, allocations: 4 kB / 217.9 MB, free: 10.34 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.539e-05/0.254, allocations: 0 / 217.9 MB, free: 10.34 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.919e-05/0.2541, allocations: 7.938 kB / 217.9 MB, free: 10.33 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.246e-06/0.2541, allocations: 0 / 217.9 MB, free: 10.33 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001596/0.2543, allocations: 20.05 kB / 217.9 MB, free: 10.31 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.332e-05/0.2543, allocations: 8 kB / 217.9 MB, free: 10.3 MB / 186.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.0001441/0.2545, allocations: 150.6 kB / 218.1 MB, free: 10.14 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.66e-05/0.2545, allocations: 11.91 kB / 218.1 MB, free: 10.13 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.907e-05/0.2546, allocations: 15.98 kB / 218.1 MB, free: 10.11 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.592e-06/0.2546, allocations: 4 kB / 218.1 MB, free: 10.11 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/0.2546, allocations: 0 / 218.1 MB, free: 10.11 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.553e-06/0.2546, allocations: 3.984 kB / 218.1 MB, free: 10.11 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002397/0.2549, allocations: 193.7 kB / 218.3 MB, free: 9.867 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.913e-06/0.2549, allocations: 8 kB / 218.3 MB, free: 9.859 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.881e-05/0.2549, allocations: 3.938 kB / 218.3 MB, free: 9.855 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.667e-06/0.2549, allocations: 0 / 218.3 MB, free: 9.855 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.463e-05/0.255, allocations: 11.98 kB / 218.3 MB, free: 9.844 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.997e-06/0.255, allocations: 3.953 kB / 218.3 MB, free: 9.84 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.255, allocations: 4 kB / 218.3 MB, free: 9.836 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000429/0.2554, allocations: 227.8 kB / 218.5 MB, free: 9.57 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.987e-05/0.2555, allocations: 88.97 kB / 218.6 MB, free: 9.465 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.729e-05/0.2556, allocations: 4 kB / 218.6 MB, free: 9.461 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000161/0.2557, allocations: 15.98 kB / 218.6 MB, free: 9.445 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.931e-05/0.2558, allocations: 11.98 kB / 218.7 MB, free: 9.434 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.709e-05/0.2559, allocations: 8 kB / 218.7 MB, free: 9.426 MB / 186.7 MB Notification: Performance of sorting global known variables: time 0.000101/0.256, allocations: 104.7 kB / 218.8 MB, free: 9.324 MB / 186.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.256, allocations: 0 / 218.8 MB, free: 9.324 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.0003428/0.2563, allocations: 40 kB / 218.8 MB, free: 9.285 MB / 186.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.0009373/0.2573, allocations: 0.9244 MB / 219.7 MB, free: 8.309 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.0003659/0.2577, allocations: 190.7 kB / 219.9 MB, free: 8.098 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.2577, allocations: 0 / 219.9 MB, free: 8.098 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002073/0.2579, allocations: 119.3 kB / 220 MB, free: 7.969 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002644/0.2582, allocations: 21.17 kB / 220.1 MB, free: 7.949 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006674/0.2589, allocations: 223.3 kB / 220.3 MB, free: 7.688 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003235/0.2592, allocations: 0.7004 MB / 221 MB, free: 6.961 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.109e-05/0.2593, allocations: 19.44 kB / 221 MB, free: 6.945 MB / 186.7 MB Notification: Performance of SimCode: time 1.032e-06/0.2593, allocations: 0 / 221 MB, free: 6.945 MB / 186.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.628/2.887, allocations: 1.766 MB / 222.8 MB, free: 5.18 MB / 186.7 MB