Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Electrical.Digital.Examples.Multiplexer.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.Electrical.Digital.Examples.Multiplexer,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Digital_Examples_Multiplexer",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.899/1.899, allocations: 194.8 MB / 211.7 MB, free: 2.984 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003553/0.0003554, allocations: 19.94 kB / 264 MB, free: 13.48 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1005/0.1009, allocations: 44.51 MB / 308.5 MB, free: 0.9023 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4709/0.5719, allocations: 79.05 MB / 387.6 MB, free: 14.98 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000345/0.5723, allocations: 74.91 kB / 387.7 MB, free: 14.98 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1665/0.7388, allocations: 54.78 MB / 442.4 MB, free: 12.12 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.515e-06/0.7388, allocations: 3.938 kB / 442.4 MB, free: 12.11 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.149e-05/0.7389, allocations: 19.94 kB / 442.5 MB, free: 12.09 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.002217/0.7411, allocations: 1.025 MB / 443.5 MB, free: 10.99 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.361e-05/0.7412, allocations: 12.02 kB / 443.5 MB, free: 10.98 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003049/0.7415, allocations: 102.5 kB / 443.6 MB, free: 10.87 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000296/0.7418, allocations: 79.16 kB / 443.7 MB, free: 10.79 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001128/0.743, allocations: 466 kB / 444.1 MB, free: 10.3 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001116/0.7431, allocations: 45.3 kB / 444.2 MB, free: 10.25 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002755/0.7434, allocations: 64 kB / 444.2 MB, free: 10.19 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002509/0.7459, allocations: 0.83 MB / 445.1 MB, free: 9.352 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.124e-05/0.746, allocations: 0 / 445.1 MB, free: 9.352 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001811/0.7461, allocations: 24 kB / 445.1 MB, free: 9.328 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.441e-05/0.7462, allocations: 16 kB / 445.1 MB, free: 9.312 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002186/0.7484, allocations: 0.6531 MB / 445.8 MB, free: 8.66 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004709/0.7531, allocations: 1.672 MB / 447.4 MB, free: 6.969 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002112/0.7553, allocations: 0.6029 MB / 448 MB, free: 6.352 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002068/0.7555, allocations: 16.48 kB / 448.1 MB, free: 6.336 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001595/0.7571, allocations: 0.5611 MB / 448.6 MB, free: 5.762 MB / 330.7 MB Notification: Performance of pre-optimization done (n=56): time 5.21e-06/0.7572, allocations: 0 / 448.6 MB, free: 5.762 MB / 330.7 MB Notification: Performance of matching and sorting (n=56): time 0.004234/0.7614, allocations: 1.303 MB / 449.9 MB, free: 4.422 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002063/0.7617, allocations: 196.5 kB / 450.1 MB, free: 4.188 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000806/0.7625, allocations: 364.4 kB / 450.5 MB, free: 3.824 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002224/0.7628, allocations: 45.7 kB / 450.5 MB, free: 3.773 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003091/0.7631, allocations: 283.3 kB / 450.8 MB, free: 3.496 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003155/0.7634, allocations: 126.2 kB / 450.9 MB, free: 3.375 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001547/0.7636, allocations: 20 kB / 450.9 MB, free: 3.355 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001836/0.7638, allocations: 330.8 kB / 451.3 MB, free: 3.023 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001096/0.7649, allocations: 313.1 kB / 451.6 MB, free: 2.719 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001143/0.766, allocations: 380.4 kB / 451.9 MB, free: 2.324 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001268/0.7673, allocations: 468.3 kB / 452.4 MB, free: 1.84 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.083e-06/0.7674, allocations: 0 / 452.4 MB, free: 1.84 MB / 330.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.003302/0.7707, allocations: 1.123 MB / 453.5 MB, free: 0.6797 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001411/0.7709, allocations: 144.5 kB / 453.7 MB, free: 0.5078 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.132e-05/0.7709, allocations: 0 / 453.7 MB, free: 0.5078 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.904e-05/0.7709, allocations: 4 kB / 453.7 MB, free: 0.5039 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004086/0.7713, allocations: 99.88 kB / 453.8 MB, free: 416 kB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.994e-05/0.7714, allocations: 11.94 kB / 453.8 MB, free: 404 kB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009132/0.7723, allocations: 91.62 kB / 453.9 MB, free: 312 kB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008925/0.7732, allocations: 0.5658 MB / 454.4 MB, free: 15.74 MB / 346.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.001011/0.7742, allocations: 446.1 kB / 454.9 MB, free: 15.26 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002693/0.7745, allocations: 51.39 kB / 454.9 MB, free: 15.21 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001459/0.7747, allocations: 52.77 kB / 455 MB, free: 15.16 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.106e-05/0.7747, allocations: 4 kB / 455 MB, free: 15.16 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.089e-05/0.7747, allocations: 4 kB / 455 MB, free: 15.15 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.209e-05/0.7747, allocations: 3.984 kB / 455 MB, free: 15.15 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001565/0.7763, allocations: 0.653 MB / 455.6 MB, free: 14.46 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.721e-06/0.7764, allocations: 0 / 455.6 MB, free: 14.46 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002748/0.7766, allocations: 91.86 kB / 455.7 MB, free: 14.37 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.332e-05/0.7767, allocations: 7.953 kB / 455.7 MB, free: 14.36 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002268/0.7769, allocations: 87.95 kB / 455.8 MB, free: 14.28 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.416e-06/0.7769, allocations: 8.156 kB / 455.8 MB, free: 14.27 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.103e-06/0.7769, allocations: 0 / 455.8 MB, free: 14.27 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003108/0.7801, allocations: 1.063 MB / 456.9 MB, free: 13.16 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007002/0.7808, allocations: 260.5 kB / 457.1 MB, free: 12.88 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003015/0.7811, allocations: 23.95 kB / 457.2 MB, free: 12.86 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000648/0.7818, allocations: 67.8 kB / 457.2 MB, free: 12.79 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005685/0.7824, allocations: 152.4 kB / 457.4 MB, free: 12.64 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008892/0.7833, allocations: 0.558 MB / 457.9 MB, free: 12.09 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0005123/0.7838, allocations: 259.1 kB / 458.2 MB, free: 11.83 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.7e-07/0.7838, allocations: 0 / 458.2 MB, free: 11.83 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001066/0.7849, allocations: 148 kB / 458.3 MB, free: 11.69 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.003793/0.7887, allocations: 1.676 MB / 460 MB, free: 9.949 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002823/0.7916, allocations: 1.029 MB / 461 MB, free: 8.859 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.921e-06/0.7916, allocations: 0.5625 kB / 461 MB, free: 8.859 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001524/0.7932, allocations: 0.691 MB / 461.7 MB, free: 8.109 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00338/0.7966, allocations: 486.6 kB / 462.2 MB, free: 7.645 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01019/0.8068, allocations: 4.222 MB / 466.4 MB, free: 3.324 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007523/0.8076, allocations: 0.8985 MB / 467.3 MB, free: 2.398 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003739/0.8114, allocations: 0.814 MB / 468.1 MB, free: 1.582 MB / 346.7 MB Notification: Performance of SimCode: time 1.463e-06/0.8114, allocations: 0 / 468.1 MB, free: 1.582 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.89/3.701, allocations: 16.8 MB / 484.9 MB, free: 52 kB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Digital.Examples.Multiplexer_res.mat does not exist to compare? outputFormat=mat