Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Electrical.Digital.Examples.Multiplexer.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.Electrical.Digital.Examples.Multiplexer,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Digital_Examples_Multiplexer",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.651/1.651, allocations: 171.2 MB / 186.8 MB, free: 1.121 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003554/0.0003555, allocations: 8 kB / 233.3 MB, free: 2.934 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07999/0.08038, allocations: 38.77 MB / 272.1 MB, free: 12.09 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3347/0.4151, allocations: 73.77 MB / 345.9 MB, free: 28 kB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000266/0.4154, allocations: 70.09 kB / 345.9 MB, free: 15.99 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1886/0.6041, allocations: 54.82 MB / 400.8 MB, free: 15.49 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.746e-06/0.6041, allocations: 0 / 400.8 MB, free: 15.49 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.779e-05/0.6042, allocations: 12 kB / 400.8 MB, free: 15.48 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 137 * Number of variables: 137 Notification: Performance of Generate backend data structure: time 0.002282/0.6065, allocations: 1.032 MB / 401.8 MB, free: 14.36 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.075e-05/0.6066, allocations: 8.031 kB / 401.8 MB, free: 14.36 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002856/0.6068, allocations: 98.52 kB / 401.9 MB, free: 14.25 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000284/0.6071, allocations: 83.16 kB / 402 MB, free: 14.17 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001074/0.6082, allocations: 474.4 kB / 402.5 MB, free: 13.66 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.691e-05/0.6083, allocations: 45.31 kB / 402.5 MB, free: 13.62 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002555/0.6086, allocations: 56 kB / 402.6 MB, free: 13.57 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002438/0.611, allocations: 0.83 MB / 403.4 MB, free: 12.73 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.346e-05/0.6111, allocations: 0 / 403.4 MB, free: 12.73 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000176/0.6113, allocations: 28 kB / 403.4 MB, free: 12.7 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.615e-05/0.6113, allocations: 15.98 kB / 403.4 MB, free: 12.68 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002151/0.6135, allocations: 0.6492 MB / 404.1 MB, free: 12.04 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004534/0.618, allocations: 1.674 MB / 405.7 MB, free: 10.3 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001888/0.62, allocations: 0.6029 MB / 406.4 MB, free: 9.691 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001948/0.6202, allocations: 4.562 kB / 406.4 MB, free: 9.688 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001442/0.6216, allocations: 0.565 MB / 406.9 MB, free: 9.109 MB / 330.7 MB Notification: Performance of pre-optimization done (n=56): time 4.008e-06/0.6217, allocations: 0 / 406.9 MB, free: 9.109 MB / 330.7 MB Notification: Performance of matching and sorting (n=56): time 0.003981/0.6256, allocations: 1.303 MB / 408.2 MB, free: 7.77 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000142/0.6258, allocations: 196.5 kB / 408.4 MB, free: 7.535 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007331/0.6266, allocations: 368.3 kB / 408.8 MB, free: 7.168 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001865/0.6268, allocations: 45.7 kB / 408.8 MB, free: 7.117 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000235/0.627, allocations: 283.3 kB / 409.1 MB, free: 6.84 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002902/0.6273, allocations: 126.6 kB / 409.2 MB, free: 6.715 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001482/0.6275, allocations: 12 kB / 409.2 MB, free: 6.703 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001591/0.6277, allocations: 342.8 kB / 409.6 MB, free: 6.359 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001036/0.6287, allocations: 301.1 kB / 409.9 MB, free: 6.062 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00111/0.6298, allocations: 384.3 kB / 410.2 MB, free: 5.668 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001219/0.6311, allocations: 477.5 kB / 410.7 MB, free: 5.172 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.12e-06/0.6311, allocations: 0 / 410.7 MB, free: 5.172 MB / 330.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.003164/0.6343, allocations: 1.122 MB / 411.8 MB, free: 4.012 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001257/0.6344, allocations: 145.1 kB / 412 MB, free: 3.84 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.179e-05/0.6344, allocations: 4 kB / 412 MB, free: 3.836 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.758e-05/0.6345, allocations: 7.953 kB / 412 MB, free: 3.828 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003534/0.6348, allocations: 103.8 kB / 412.1 MB, free: 3.727 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.798e-05/0.6349, allocations: 7.938 kB / 412.1 MB, free: 3.719 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008412/0.6357, allocations: 87.72 kB / 412.2 MB, free: 3.633 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008084/0.6365, allocations: 0.5658 MB / 412.7 MB, free: 3.066 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 75 ($whenCondition1,MUX.d,$PRE.MUX.Or1.auxiliary_n,MUX.Or1.x[1],MUX.Or1.x[2],MUX.Or1.x[3],MUX.Or1.x[4],MUX.Or1.auxiliary[2],MUX.Or1.auxiliary[3],MUX.Or1.auxiliary_n,$PRE.MUX.And1.auxiliary_n,$PRE.MUX.And2.auxiliary_n,$PRE.MUX.And3.auxiliary_n,$PRE.MUX.And4.auxiliary_n,FF.RS2.Nor2.x[2],FF.RS2.Nor2.auxiliary[2],FF.RS2.Nor2.auxiliary_n,$PRE.FF.RS2.TD1.x,FF.RS2.TD1.x_delayed,FF.And2.y,$PRE.FF.And2.auxiliary_n,FF.RS1.Nor2.x[2],FF.RS1.Nor2.auxiliary[2],FF.RS1.Nor2.auxiliary_n,$PRE.FF.RS1.TD1.x,FF.RS1.TD1.x_delayed,FF.And4.y,$PRE.FF.And4.auxiliary_n,FF.RS2.Nor1.auxiliary[2],$PRE.FF.RS2.Nor1.auxiliary_n,FF.RS2.Nor1.auxiliary_n,$PRE.FF.RS2.Nor2.auxiliary_n,FF.RS2.TD1.x,FF.And1.y,$PRE.FF.And1.auxiliary_n,FF.And3.x[1],FF.And3.x[2],FF.And3.auxiliary_n,FF.And4.auxiliary_n,$PRE.FF.Not1.auxiliary,CLK.y,$PRE.CLK.t_i,CLK.t_i,D0.y,D1.y,MUX.And1.x[1],MUX.And1.x[3],MUX.And1.auxiliary[2],MUX.And1.auxiliary_n,MUX.And2.auxiliary[2],MUX.And2.auxiliary_n,MUX.And3.auxiliary[2],MUX.And3.auxiliary_n,MUX.And4.auxiliary[2],MUX.And4.auxiliary_n,$PRE.MUX.Not1.auxiliary,MUX.Not1.auxiliary,$PRE.MUX.Not2.auxiliary,MUX.Not2.auxiliary,D2.y,D3.y,FF.RS1.Nor1.auxiliary[2],$PRE.FF.RS1.Nor1.auxiliary_n,FF.RS1.Nor1.auxiliary_n,$PRE.FF.RS1.Nor2.auxiliary_n,FF.RS1.TD1.x,FF.And1.auxiliary[2],FF.And1.auxiliary_n,FF.And2.x[1],FF.And2.auxiliary[2],FF.And2.auxiliary_n,FF.And3.y,$PRE.FF.And3.auxiliary_n,FF.Not1.auxiliary,Enable.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (76): * Single equations (assignments): 71 * Array equations: 0 * Algorithm blocks: 5 * 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.0009588/0.6375, allocations: 442.1 kB / 413.2 MB, free: 2.594 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002496/0.6378, allocations: 47.44 kB / 413.2 MB, free: 2.547 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001571/0.6379, allocations: 48.77 kB / 413.3 MB, free: 2.5 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.913e-05/0.638, allocations: 11.95 kB / 413.3 MB, free: 2.488 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.267e-05/0.638, allocations: 3.984 kB / 413.3 MB, free: 2.484 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.235e-05/0.638, allocations: 3.984 kB / 413.3 MB, free: 2.48 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001505/0.6395, allocations: 0.6501 MB / 413.9 MB, free: 1.777 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.498e-06/0.6396, allocations: 0 / 413.9 MB, free: 1.777 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002685/0.6399, allocations: 99.88 kB / 414 MB, free: 1.68 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.965e-06/0.6399, allocations: 0 / 414 MB, free: 1.68 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002161/0.6401, allocations: 87.95 kB / 414.1 MB, free: 1.594 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.012e-06/0.6401, allocations: 4 kB / 414.1 MB, free: 1.59 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.011e-06/0.6401, allocations: 7.938 kB / 414.1 MB, free: 1.582 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00304/0.6432, allocations: 1.063 MB / 415.2 MB, free: 480 kB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006769/0.6439, allocations: 256.5 kB / 415.4 MB, free: 204 kB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002853/0.6442, allocations: 28 kB / 415.5 MB, free: 176 kB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006344/0.6448, allocations: 59.86 kB / 415.5 MB, free: 116 kB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005479/0.6454, allocations: 160.3 kB / 415.7 MB, free: 15.96 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008367/0.6463, allocations: 0.5735 MB / 416.3 MB, free: 15.38 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0004654/0.6467, allocations: 255.2 kB / 416.5 MB, free: 15.13 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.8e-07/0.6468, allocations: 0 / 416.5 MB, free: 15.13 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0009495/0.6477, allocations: 140 kB / 416.6 MB, free: 15 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 56 ($whenCondition1,CLK.y,CLK.t_i,D0.y,D1.y,MUX.d,MUX.Or1.x[1],MUX.Or1.x[2],MUX.Or1.x[3],MUX.Or1.x[4],MUX.Or1.auxiliary[2],MUX.Or1.auxiliary[3],MUX.Or1.auxiliary_n,MUX.And1.x[1],MUX.And1.x[3],MUX.And1.auxiliary[2],MUX.And1.auxiliary_n,MUX.And2.auxiliary[2],MUX.And2.auxiliary_n,MUX.And3.auxiliary[2],MUX.And3.auxiliary_n,MUX.And4.auxiliary[2],MUX.And4.auxiliary_n,MUX.Not1.auxiliary,MUX.Not2.auxiliary,D2.y,D3.y,FF.RS1.Nor1.auxiliary[2],FF.RS1.Nor1.auxiliary_n,FF.RS1.Nor2.x[2],FF.RS1.Nor2.auxiliary[2],FF.RS1.Nor2.auxiliary_n,FF.RS1.TD1.x,FF.RS1.TD1.x_delayed,FF.RS2.Nor1.auxiliary[2],FF.RS2.Nor1.auxiliary_n,FF.RS2.Nor2.x[2],FF.RS2.Nor2.auxiliary[2],FF.RS2.Nor2.auxiliary_n,FF.RS2.TD1.x,FF.RS2.TD1.x_delayed,FF.And1.y,FF.And1.auxiliary[2],FF.And1.auxiliary_n,FF.And2.x[1],FF.And2.y,FF.And2.auxiliary[2],FF.And2.auxiliary_n,FF.And3.x[1],FF.And3.x[2],FF.And3.y,FF.And3.auxiliary_n,FF.And4.y,FF.And4.auxiliary_n,FF.Not1.auxiliary,Enable.y) * Number of discrete states: 23 (Enable.y,FF.Not1.auxiliary,FF.And4.auxiliary_n,FF.And3.auxiliary_n,FF.And2.auxiliary_n,FF.And1.auxiliary_n,FF.RS2.TD1.x,FF.RS2.Nor2.auxiliary_n,FF.RS2.Nor1.auxiliary_n,FF.RS1.TD1.x,FF.RS1.Nor2.auxiliary_n,FF.RS1.Nor1.auxiliary_n,D3.y,D2.y,MUX.Not2.auxiliary,MUX.Not1.auxiliary,MUX.And4.auxiliary_n,MUX.And3.auxiliary_n,MUX.And2.auxiliary_n,MUX.And1.auxiliary_n,MUX.Or1.auxiliary_n,D1.y,D0.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (56): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 5 * 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.003628/0.6514, allocations: 1.676 MB / 418.3 MB, free: 13.26 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002795/0.6542, allocations: 1.028 MB / 419.3 MB, free: 12.18 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.115e-05/0.6542, allocations: 0.5625 kB / 419.3 MB, free: 12.17 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001558/0.6558, allocations: 0.6876 MB / 420 MB, free: 11.43 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003386/0.6592, allocations: 485.7 kB / 420.5 MB, free: 10.96 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009463/0.6687, allocations: 4.218 MB / 424.7 MB, free: 6.648 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007054/0.6695, allocations: 0.8985 MB / 425.6 MB, free: 5.723 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003651/0.6732, allocations: 0.8063 MB / 426.4 MB, free: 4.914 MB / 346.7 MB Notification: Performance of SimCode: time 1.062e-06/0.6732, allocations: 0 / 426.4 MB, free: 4.914 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.989/3.662, allocations: 16.8 MB / 443.2 MB, free: 97.12 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Electrical.Digital.Examples.Multiplexer_res.mat does not exist to compare? outputFormat=mat