Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Blocks.Examples.ShowLogicalSources.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.ShowLogicalSources,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Blocks_Examples_ShowLogicalSources",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.547/1.547, allocations: 171.2 MB / 186.8 MB, free: 1.031 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003421/0.000342, allocations: 8 kB / 233.3 MB, free: 2.93 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07747/0.07785, allocations: 38.76 MB / 272.1 MB, free: 12.09 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3211/0.399, allocations: 66.61 MB / 338.7 MB, free: 7.262 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002403/0.3993, allocations: 60.59 kB / 338.8 MB, free: 7.23 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008098/0.4074, allocations: 1.72 MB / 340.5 MB, free: 5.715 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.813e-06/0.4075, allocations: 0 / 340.5 MB, free: 5.715 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.394e-06/0.4075, allocations: 0 / 340.5 MB, free: 5.715 MB / 266.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.0006665/0.4082, allocations: 453.1 kB / 340.9 MB, free: 5.219 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.755e-05/0.4083, allocations: 12.03 kB / 340.9 MB, free: 5.207 MB / 266.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.523e-05/0.4083, allocations: 34 kB / 341 MB, free: 5.168 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.514e-05/0.4084, allocations: 7.906 kB / 341 MB, free: 5.16 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001464/0.4085, allocations: 175 kB / 341.2 MB, free: 4.949 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.931e-05/0.4086, allocations: 0 / 341.2 MB, free: 4.949 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.746e-05/0.4086, allocations: 15.89 kB / 341.2 MB, free: 4.938 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000259/0.4089, allocations: 94.36 kB / 341.3 MB, free: 4.84 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.111e-05/0.4089, allocations: 3.984 kB / 341.3 MB, free: 4.836 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.776e-05/0.4089, allocations: 7.5 kB / 341.3 MB, free: 4.832 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.405e-06/0.409, allocations: 3.984 kB / 341.3 MB, free: 4.828 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001754/0.4091, allocations: 39.11 kB / 341.3 MB, free: 4.797 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005227/0.4097, allocations: 396 kB / 341.7 MB, free: 4.371 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002075/0.4099, allocations: 101 kB / 341.8 MB, free: 4.262 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.726e-05/0.41, allocations: 4 kB / 341.8 MB, free: 4.258 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002673/0.4102, allocations: 137.5 kB / 341.9 MB, free: 4.109 MB / 266.7 MB Notification: Performance of pre-optimization done (n=10): time 1.984e-06/0.4102, allocations: 0 / 341.9 MB, free: 4.109 MB / 266.7 MB Notification: Performance of matching and sorting (n=10): time 0.0006364/0.4109, allocations: 278.6 kB / 342.2 MB, free: 3.84 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.508e-05/0.411, allocations: 169.1 kB / 342.4 MB, free: 3.641 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001353/0.4112, allocations: 119.9 kB / 342.5 MB, free: 3.523 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.075e-05/0.4112, allocations: 32.33 kB / 342.5 MB, free: 3.488 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.221e-05/0.4113, allocations: 154.2 kB / 342.7 MB, free: 3.336 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.099e-05/0.4113, allocations: 30.25 kB / 342.7 MB, free: 3.312 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.398e-06/0.4114, allocations: 160 / 342.7 MB, free: 3.312 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001163/0.4115, allocations: 318.2 kB / 343 MB, free: 2.996 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001066/0.4116, allocations: 26.92 kB / 343 MB, free: 2.977 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001331/0.4117, allocations: 60.72 kB / 343.1 MB, free: 2.914 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001427/0.4119, allocations: 91.44 kB / 343.2 MB, free: 2.824 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.779e-06/0.4119, allocations: 7.953 kB / 343.2 MB, free: 2.816 MB / 266.7 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0004/0.4123, allocations: 181.3 kB / 343.4 MB, free: 2.645 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.654e-05/0.4124, allocations: 59.41 kB / 343.4 MB, free: 2.574 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.402e-06/0.4124, allocations: 0 / 343.4 MB, free: 2.574 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.922e-05/0.4124, allocations: 4 kB / 343.4 MB, free: 2.57 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.783e-05/0.4125, allocations: 7.984 kB / 343.4 MB, free: 2.562 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.683e-06/0.4125, allocations: 0 / 343.4 MB, free: 2.562 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001442/0.4127, allocations: 15.44 kB / 343.5 MB, free: 2.551 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.068e-05/0.4127, allocations: 4 kB / 343.5 MB, free: 2.547 MB / 266.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.0001493/0.4129, allocations: 158.4 kB / 343.6 MB, free: 2.383 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.192e-05/0.4129, allocations: 15.86 kB / 343.6 MB, free: 2.367 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.354e-05/0.413, allocations: 15.67 kB / 343.6 MB, free: 2.344 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.127e-06/0.413, allocations: 0 / 343.6 MB, free: 2.344 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.82e-06/0.413, allocations: 0 / 343.6 MB, free: 2.344 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.843e-06/0.413, allocations: 4 kB / 343.6 MB, free: 2.34 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002203/0.4133, allocations: 200.8 kB / 343.8 MB, free: 2.109 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.4133, allocations: 0 / 343.8 MB, free: 2.109 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.554e-05/0.4133, allocations: 3.953 kB / 343.8 MB, free: 2.105 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.03e-06/0.4133, allocations: 4 kB / 343.9 MB, free: 2.102 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.945e-05/0.4134, allocations: 7 kB / 343.9 MB, free: 2.098 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.535e-06/0.4134, allocations: 0 / 343.9 MB, free: 2.098 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.4134, allocations: 0 / 343.9 MB, free: 2.098 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004702/0.4139, allocations: 247.2 kB / 344.1 MB, free: 1.848 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.517e-05/0.4139, allocations: 89 kB / 344.2 MB, free: 1.742 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.836e-05/0.414, allocations: 8.125 kB / 344.2 MB, free: 1.738 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001541/0.4141, allocations: 15.98 kB / 344.2 MB, free: 1.723 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.234e-05/0.4142, allocations: 11.17 kB / 344.2 MB, free: 1.715 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.677e-05/0.4143, allocations: 8 kB / 344.2 MB, free: 1.707 MB / 266.7 MB Notification: Performance of sorting global known variables: time 9.446e-05/0.4144, allocations: 108 kB / 344.3 MB, free: 1.609 MB / 266.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.4144, allocations: 3.938 kB / 344.3 MB, free: 1.605 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003407/0.4147, allocations: 38.81 kB / 344.4 MB, free: 1.57 MB / 266.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.0008867/0.4156, allocations: 0.9323 MB / 345.3 MB, free: 0.6289 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003992/0.416, allocations: 198.9 kB / 345.5 MB, free: 444 kB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.4161, allocations: 0 / 345.5 MB, free: 444 kB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002217/0.4163, allocations: 129.1 kB / 345.6 MB, free: 324 kB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002477/0.4166, allocations: 14.89 kB / 345.6 MB, free: 312 kB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001691/0.4183, allocations: 1.156 MB / 346.8 MB, free: 15.16 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002823/0.4186, allocations: 0.6965 MB / 347.5 MB, free: 14.44 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.4e-05/0.4187, allocations: 22.36 kB / 347.5 MB, free: 14.43 MB / 282.7 MB Notification: Performance of SimCode: time 1.062e-06/0.4187, allocations: 0 / 347.5 MB, free: 14.43 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.414/2.833, allocations: 1.735 MB / 349.3 MB, free: 12.71 MB / 282.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Blocks.Examples.ShowLogicalSources_res.mat does not exist to compare? outputFormat=mat