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.BusUsage.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.BusUsage,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Blocks_Examples_BusUsage",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.641/1.641, allocations: 171.2 MB / 186.8 MB, free: 1.121 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003511/0.0003511, allocations: 16 kB / 233.3 MB, free: 2.941 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08161/0.08199, allocations: 38.77 MB / 272.1 MB, free: 12.1 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3251/0.4072, allocations: 66.49 MB / 338.6 MB, free: 6.984 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002318/0.4075, allocations: 67.16 kB / 338.7 MB, free: 6.949 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005577/0.4131, allocations: 1.446 MB / 340.1 MB, free: 5.68 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.124e-06/0.4131, allocations: 0 / 340.1 MB, free: 5.68 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.308e-06/0.4131, allocations: 4 kB / 340.1 MB, free: 5.676 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0005094/0.4136, allocations: 386.9 kB / 340.5 MB, free: 5.258 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.372e-05/0.4137, allocations: 8.031 kB / 340.5 MB, free: 5.25 MB / 266.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.525e-05/0.4138, allocations: 38.44 kB / 340.5 MB, free: 5.207 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.502e-05/0.4138, allocations: 7.906 kB / 340.5 MB, free: 5.199 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001351/0.4139, allocations: 178.9 kB / 340.7 MB, free: 4.984 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.238e-05/0.414, allocations: 0 / 340.7 MB, free: 4.984 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.022e-05/0.414, allocations: 11.83 kB / 340.7 MB, free: 4.977 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003013/0.4143, allocations: 108.6 kB / 340.8 MB, free: 4.863 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.122e-05/0.4143, allocations: 7.938 kB / 340.8 MB, free: 4.855 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.574e-05/0.4144, allocations: 7.562 kB / 340.8 MB, free: 4.852 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.031e-06/0.4144, allocations: 0 / 340.8 MB, free: 4.852 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003133/0.4147, allocations: 64.95 kB / 340.9 MB, free: 4.797 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007592/0.4155, allocations: 0.6353 MB / 341.5 MB, free: 4.125 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002511/0.4158, allocations: 121 kB / 341.7 MB, free: 3.969 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.952e-05/0.4158, allocations: 11.94 kB / 341.7 MB, free: 3.957 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.66e-05/0.4158, allocations: 34.25 kB / 341.7 MB, free: 3.918 MB / 266.7 MB Notification: Performance of pre-optimization done (n=6): time 2.044e-06/0.4158, allocations: 4 kB / 341.7 MB, free: 3.914 MB / 266.7 MB Notification: Performance of matching and sorting (n=6): time 0.0006639/0.4165, allocations: 135.5 kB / 341.8 MB, free: 3.789 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.8e-05/0.4166, allocations: 162.1 kB / 342 MB, free: 3.594 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001022/0.4167, allocations: 116.2 kB / 342.1 MB, free: 3.48 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.757e-05/0.4168, allocations: 29.7 kB / 342.1 MB, free: 3.445 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.993e-05/0.4168, allocations: 162 kB / 342.3 MB, free: 3.285 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.636e-05/0.4169, allocations: 19.56 kB / 342.3 MB, free: 3.27 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.171e-06/0.4169, allocations: 0 / 342.3 MB, free: 3.27 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000115/0.417, allocations: 322.7 kB / 342.6 MB, free: 2.949 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001388/0.4172, allocations: 19.98 kB / 342.7 MB, free: 2.93 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001609/0.4173, allocations: 60.22 kB / 342.7 MB, free: 2.863 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000154/0.4175, allocations: 34.17 kB / 342.7 MB, free: 2.836 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.4175, allocations: 0 / 342.7 MB, free: 2.836 MB / 266.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003771/0.4179, allocations: 101.5 kB / 342.8 MB, free: 2.738 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.647e-05/0.418, allocations: 9.719 kB / 342.9 MB, free: 2.73 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.54e-06/0.418, allocations: 0 / 342.9 MB, free: 2.73 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.627e-05/0.418, allocations: 11.97 kB / 342.9 MB, free: 2.719 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001411/0.4181, allocations: 17.19 kB / 342.9 MB, free: 2.707 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.232e-06/0.4182, allocations: 3.938 kB / 342.9 MB, free: 2.703 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001166/0.4183, allocations: 11.98 kB / 342.9 MB, free: 2.691 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.25e-05/0.4183, allocations: 4 kB / 342.9 MB, free: 2.688 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 3 (part.booleanExpression.y,booleanStep.y,integerStep.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (6): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * 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.000105/0.4184, allocations: 121.2 kB / 343 MB, free: 2.562 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001089/0.4185, allocations: 7.906 kB / 343 MB, free: 2.555 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.02e-05/0.4186, allocations: 21.97 kB / 343 MB, free: 2.539 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.557e-06/0.4186, allocations: 0 / 343 MB, free: 2.539 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.4186, allocations: 0 / 343 MB, free: 2.539 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.101e-06/0.4186, allocations: 4 kB / 343.1 MB, free: 2.535 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004829/0.4191, allocations: 191.5 kB / 343.2 MB, free: 2.309 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.975e-06/0.4191, allocations: 0.6875 kB / 343.2 MB, free: 2.309 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001165/0.4193, allocations: 15.98 kB / 343.3 MB, free: 2.293 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.506e-06/0.4193, allocations: 4 kB / 343.3 MB, free: 2.289 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.332e-05/0.4193, allocations: 7.312 kB / 343.3 MB, free: 2.285 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.581e-06/0.4193, allocations: 3.938 kB / 343.3 MB, free: 2.281 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.4193, allocations: 128 / 343.3 MB, free: 2.281 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005185/0.4199, allocations: 0.537 MB / 343.8 MB, free: 1.719 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.687e-05/0.4199, allocations: 93 kB / 343.9 MB, free: 1.609 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.551e-05/0.42, allocations: 7.016 kB / 343.9 MB, free: 1.605 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002993/0.4203, allocations: 15.92 kB / 343.9 MB, free: 1.59 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.841e-05/0.4204, allocations: 11.92 kB / 343.9 MB, free: 1.578 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.031e-05/0.4204, allocations: 6.875 kB / 343.9 MB, free: 1.574 MB / 266.7 MB Notification: Performance of sorting global known variables: time 6.345e-05/0.4205, allocations: 87.09 kB / 344 MB, free: 1.492 MB / 266.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.4205, allocations: 0 / 344 MB, free: 1.492 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005076/0.421, allocations: 16 kB / 344 MB, free: 1.477 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 3 (part.booleanExpression.y,booleanStep.y,integerStep.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.0008675/0.4219, allocations: 1.35 MB / 345.4 MB, free: 108 kB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003502/0.4222, allocations: 69.34 kB / 345.5 MB, free: 48 kB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.836e-06/0.4222, allocations: 3.938 kB / 345.5 MB, free: 44 kB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000182/0.4224, allocations: 42.66 kB / 345.5 MB, free: 4 kB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003725/0.4228, allocations: 8.391 kB / 345.5 MB, free: 0 / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009365/0.4238, allocations: 302.8 kB / 345.8 MB, free: 15.64 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003103/0.4241, allocations: 0.6926 MB / 346.5 MB, free: 14.93 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.746e-05/0.4242, allocations: 22.61 kB / 346.5 MB, free: 14.91 MB / 282.7 MB Notification: Performance of SimCode: time 6.71e-07/0.4242, allocations: 0 / 346.5 MB, free: 14.91 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.256/2.68, allocations: 1.198 MB / 347.7 MB, free: 13.73 MB / 282.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Blocks.Examples.BusUsage_res.mat does not exist to compare? outputFormat=mat