Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_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_cpp_Modelica_Blocks_Examples_ShowLogicalSources",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.058/2.058, allocations: 194.8 MB / 211.7 MB, free: 3 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003596/0.0003595, allocations: 12 kB / 264 MB, free: 13.49 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09324/0.09364, allocations: 44.51 MB / 308.5 MB, free: 0.9141 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4048/0.4985, allocations: 71.91 MB / 380.4 MB, free: 14.54 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002615/0.4988, allocations: 64.31 kB / 380.5 MB, free: 14.54 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008226/0.5071, allocations: 1.716 MB / 382.2 MB, free: 14.17 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.093e-06/0.5071, allocations: 2.734 kB / 382.2 MB, free: 14.17 MB / 314.7 MB Notification: Performance of Transformations before backend: time 9.498e-06/0.5072, allocations: 5.469 kB / 382.2 MB, free: 14.17 MB / 314.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.0006237/0.5078, allocations: 440.4 kB / 382.7 MB, free: 13.73 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.946e-05/0.5079, allocations: 12.66 kB / 382.7 MB, free: 13.73 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.984e-05/0.5079, allocations: 33.94 kB / 382.7 MB, free: 13.69 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.959e-05/0.508, allocations: 9.969 kB / 382.7 MB, free: 13.69 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000133/0.5081, allocations: 185.7 kB / 382.9 MB, free: 13.48 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.262e-05/0.5082, allocations: 6.281 kB / 382.9 MB, free: 13.48 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.551e-05/0.5082, allocations: 4.625 kB / 382.9 MB, free: 13.48 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002454/0.5084, allocations: 95.44 kB / 383 MB, free: 13.41 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.098e-05/0.5085, allocations: 3.938 kB / 383 MB, free: 13.41 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.683e-05/0.5085, allocations: 2.859 kB / 383 MB, free: 13.41 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.013e-06/0.5085, allocations: 1.312 kB / 383 MB, free: 13.41 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001739/0.5087, allocations: 48.14 kB / 383.1 MB, free: 13.4 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004888/0.5092, allocations: 382.6 kB / 383.4 MB, free: 13.04 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002039/0.5094, allocations: 96.55 kB / 383.5 MB, free: 12.96 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.162e-05/0.5095, allocations: 3.031 kB / 383.5 MB, free: 12.96 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002524/0.5097, allocations: 143.2 kB / 383.7 MB, free: 12.85 MB / 314.7 MB Notification: Performance of pre-optimization done (n=10): time 2.645e-06/0.5098, allocations: 4 kB / 383.7 MB, free: 12.85 MB / 314.7 MB Notification: Performance of matching and sorting (n=10): time 0.0006271/0.5104, allocations: 275.1 kB / 383.9 MB, free: 12.68 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.855e-05/0.5105, allocations: 170 kB / 384.1 MB, free: 12.49 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001278/0.5106, allocations: 125.7 kB / 384.2 MB, free: 12.39 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.317e-05/0.5107, allocations: 31.3 kB / 384.3 MB, free: 12.36 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.129e-05/0.5107, allocations: 158.1 kB / 384.4 MB, free: 12.21 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.513e-05/0.5108, allocations: 20.77 kB / 384.4 MB, free: 12.2 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.837e-06/0.5108, allocations: 7.938 kB / 384.4 MB, free: 12.2 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.121e-05/0.5109, allocations: 321.8 kB / 384.8 MB, free: 11.88 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001093/0.511, allocations: 26.44 kB / 384.8 MB, free: 11.88 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00012/0.5111, allocations: 54.23 kB / 384.8 MB, free: 11.85 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000128/0.5112, allocations: 89.77 kB / 384.9 MB, free: 11.78 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.927e-06/0.5113, allocations: 1.25 kB / 384.9 MB, free: 11.78 MB / 314.7 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003742/0.5116, allocations: 185.5 kB / 385.1 MB, free: 11.68 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.913e-05/0.5117, allocations: 61.86 kB / 385.2 MB, free: 11.61 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.276e-06/0.5117, allocations: 1.562 kB / 385.2 MB, free: 11.61 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.591e-05/0.5118, allocations: 1.406 kB / 385.2 MB, free: 11.61 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.645e-05/0.5118, allocations: 5.312 kB / 385.2 MB, free: 11.61 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.466e-06/0.5119, allocations: 1.469 kB / 385.2 MB, free: 11.61 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001936/0.5121, allocations: 17.02 kB / 385.2 MB, free: 11.61 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.602e-05/0.5121, allocations: 11.09 kB / 385.2 MB, free: 11.61 MB / 314.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.0001521/0.5123, allocations: 163.9 kB / 385.4 MB, free: 11.45 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.644e-05/0.5123, allocations: 15.08 kB / 385.4 MB, free: 11.45 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.887e-05/0.5124, allocations: 16.05 kB / 385.4 MB, free: 11.45 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.232e-06/0.5124, allocations: 1.125 kB / 385.4 MB, free: 11.45 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.602e-06/0.5124, allocations: 1.094 kB / 385.4 MB, free: 11.45 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.253e-06/0.5124, allocations: 6.125 kB / 385.4 MB, free: 11.44 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002014/0.5126, allocations: 190.5 kB / 385.6 MB, free: 11.25 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.5127, allocations: 1.281 kB / 385.6 MB, free: 11.25 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.67e-05/0.5127, allocations: 5.938 kB / 385.6 MB, free: 11.25 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.15e-06/0.5127, allocations: 1.281 kB / 385.6 MB, free: 11.25 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.996e-05/0.5127, allocations: 5.531 kB / 385.6 MB, free: 11.25 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.607e-06/0.5127, allocations: 2.453 kB / 385.6 MB, free: 11.25 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.876e-06/0.5127, allocations: 1.469 kB / 385.6 MB, free: 11.25 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004518/0.5132, allocations: 242 kB / 385.8 MB, free: 11.09 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.591e-05/0.5133, allocations: 85.89 kB / 385.9 MB, free: 11 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.556e-05/0.5133, allocations: 3.562 kB / 385.9 MB, free: 11 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000148/0.5135, allocations: 15.62 kB / 385.9 MB, free: 11 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.534e-05/0.5136, allocations: 19.7 kB / 386 MB, free: 10.99 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.822e-05/0.5136, allocations: 4.5 kB / 386 MB, free: 10.99 MB / 314.7 MB Notification: Performance of sorting global known variables: time 8.184e-05/0.5137, allocations: 110.2 kB / 386.1 MB, free: 10.91 MB / 314.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.5137, allocations: 0 / 386.1 MB, free: 10.91 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003749/0.5141, allocations: 36.81 kB / 386.1 MB, free: 10.9 MB / 314.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.0007829/0.5149, allocations: 0.9375 MB / 387 MB, free: 10.08 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0003823/0.5153, allocations: 205 kB / 387.2 MB, free: 9.945 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.868e-06/0.5153, allocations: 4.062 kB / 387.2 MB, free: 9.941 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002011/0.5155, allocations: 120.9 kB / 387.4 MB, free: 9.875 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002668/0.5158, allocations: 13.77 kB / 387.4 MB, free: 9.875 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001529/0.5173, allocations: 1.14 MB / 388.5 MB, free: 8.992 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001677/0.5175, allocations: 0.7007 MB / 389.2 MB, free: 8.293 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.52e-05/0.5176, allocations: 23.62 kB / 389.2 MB, free: 8.285 MB / 314.7 MB Notification: Performance of SimCode: time 1.343e-06/0.5176, allocations: 0 / 389.2 MB, free: 8.285 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.502/3.02, allocations: 1.739 MB / 391 MB, free: 8.145 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Blocks.Examples.ShowLogicalSources_res.mat does not exist to compare? outputFormat=mat