Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_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_Modelica_Electrical_Digital_Examples_Multiplexer",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.634/1.634, allocations: 171.2 MB / 186.1 MB, free: 1.121 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003576/0.0003577, allocations: 8 kB / 233.4 MB, free: 2.273 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08033/0.08072, allocations: 38.77 MB / 272.1 MB, free: 11.43 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3725/0.4532, allocations: 73.78 MB / 345.9 MB, free: 15.45 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002903/0.4536, allocations: 77.7 kB / 346 MB, free: 15.41 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1899/0.6435, allocations: 54.82 MB / 400.8 MB, free: 14.89 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.775e-06/0.6435, allocations: 0 / 400.8 MB, free: 14.89 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.848e-05/0.6436, allocations: 12 kB / 400.8 MB, free: 14.88 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.002277/0.6459, allocations: 1.032 MB / 401.8 MB, free: 13.77 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.369e-05/0.646, allocations: 12.03 kB / 401.8 MB, free: 13.75 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000318/0.6463, allocations: 98.52 kB / 401.9 MB, free: 13.65 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002875/0.6466, allocations: 75.16 kB / 402 MB, free: 13.57 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001186/0.6478, allocations: 470.5 kB / 402.5 MB, free: 13.07 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.918e-05/0.6479, allocations: 41.31 kB / 402.5 MB, free: 13.04 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002559/0.6481, allocations: 64 kB / 402.6 MB, free: 12.97 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00258/0.6507, allocations: 0.8338 MB / 403.4 MB, free: 12.13 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.108e-05/0.6508, allocations: 0 / 403.4 MB, free: 12.13 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006985/0.6516, allocations: 27.98 kB / 403.4 MB, free: 12.1 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.017e-05/0.6517, allocations: 12 kB / 403.4 MB, free: 12.09 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004579/0.6563, allocations: 0.6493 MB / 404.1 MB, free: 11.44 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008419/0.6648, allocations: 1.678 MB / 405.8 MB, free: 9.707 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001985/0.6668, allocations: 0.5965 MB / 406.4 MB, free: 9.102 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002273/0.6671, allocations: 8.562 kB / 406.4 MB, free: 9.094 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001518/0.6686, allocations: 0.5649 MB / 406.9 MB, free: 8.516 MB / 330.7 MB Notification: Performance of pre-optimization done (n=56): time 4.058e-06/0.6686, allocations: 0 / 406.9 MB, free: 8.516 MB / 330.7 MB Notification: Performance of matching and sorting (n=56): time 0.004091/0.6727, allocations: 1.295 MB / 408.2 MB, free: 7.184 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001617/0.6729, allocations: 204.5 kB / 408.4 MB, free: 6.941 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007586/0.6737, allocations: 364.3 kB / 408.8 MB, free: 6.578 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002466/0.674, allocations: 53.69 kB / 408.8 MB, free: 6.52 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000269/0.6743, allocations: 236.5 kB / 409.1 MB, free: 6.289 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003027/0.6746, allocations: 130.5 kB / 409.2 MB, free: 6.16 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001448/0.6747, allocations: 12 kB / 409.2 MB, free: 6.148 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001977/0.6749, allocations: 354.8 kB / 409.6 MB, free: 5.793 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00114/0.6761, allocations: 305.1 kB / 409.9 MB, free: 5.492 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001252/0.6774, allocations: 388.3 kB / 410.2 MB, free: 5.094 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001376/0.6788, allocations: 468.3 kB / 410.7 MB, free: 4.605 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.009e-05/0.6788, allocations: 0 / 410.7 MB, free: 4.605 MB / 330.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.003423/0.6823, allocations: 1.146 MB / 411.8 MB, free: 3.422 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001355/0.6824, allocations: 140.5 kB / 412 MB, free: 3.254 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.536e-05/0.6825, allocations: 7.984 kB / 412 MB, free: 3.246 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.848e-05/0.6825, allocations: 7.953 kB / 412 MB, free: 3.238 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000389/0.6829, allocations: 107.8 kB / 412.1 MB, free: 3.133 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.504e-05/0.6829, allocations: 4 kB / 412.1 MB, free: 3.129 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009067/0.6839, allocations: 75.7 kB / 412.2 MB, free: 3.055 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009069/0.6848, allocations: 0.5658 MB / 412.7 MB, free: 2.488 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.001035/0.6858, allocations: 442.1 kB / 413.2 MB, free: 2.016 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002618/0.6861, allocations: 51.44 kB / 413.2 MB, free: 1.965 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001835/0.6863, allocations: 56.75 kB / 413.3 MB, free: 1.91 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.618e-05/0.6863, allocations: 15.94 kB / 413.3 MB, free: 1.895 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.967e-06/0.6864, allocations: 0 / 413.3 MB, free: 1.895 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.998e-06/0.6864, allocations: 0 / 413.3 MB, free: 1.895 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001568/0.6879, allocations: 0.6579 MB / 414 MB, free: 1.184 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.132e-06/0.688, allocations: 0 / 414 MB, free: 1.184 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002948/0.6883, allocations: 87.89 kB / 414 MB, free: 1.098 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.128e-05/0.6883, allocations: 7.938 kB / 414.1 MB, free: 1.09 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002656/0.6886, allocations: 91.94 kB / 414.1 MB, free: 1 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.546e-06/0.6886, allocations: 4 kB / 414.1 MB, free: 0.9961 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.209e-06/0.6886, allocations: 7.953 kB / 414.2 MB, free: 0.9883 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003118/0.6918, allocations: 1.06 MB / 415.2 MB, free: 15.88 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008523/0.6927, allocations: 252.5 kB / 415.5 MB, free: 15.61 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002929/0.693, allocations: 24 kB / 415.5 MB, free: 15.59 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006761/0.6937, allocations: 67.8 kB / 415.5 MB, free: 15.52 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005197/0.6942, allocations: 152.4 kB / 415.7 MB, free: 15.38 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001048/0.6953, allocations: 0.5657 MB / 416.3 MB, free: 14.81 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0008269/0.6961, allocations: 255.2 kB / 416.5 MB, free: 14.56 MB / 346.7 MB Notification: Performance of sort global known variables: time 6.01e-07/0.6962, allocations: 4 kB / 416.5 MB, free: 14.55 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.003118/0.6993, allocations: 140 kB / 416.7 MB, free: 14.42 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.008138/0.7075, allocations: 1.68 MB / 418.3 MB, free: 12.68 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.003144/0.7107, allocations: 1.037 MB / 419.4 MB, free: 11.59 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.25e-06/0.7108, allocations: 4 kB / 419.4 MB, free: 11.58 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003153/0.7139, allocations: 0.6797 MB / 420.1 MB, free: 10.84 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006605/0.7206, allocations: 486.4 kB / 420.5 MB, free: 10.38 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01692/0.7376, allocations: 4.161 MB / 424.7 MB, free: 6.125 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007713/0.7384, allocations: 0.8985 MB / 425.6 MB, free: 5.199 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.004136/0.7426, allocations: 1.496 MB / 427.1 MB, free: 3.695 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00258/0.7452, allocations: 0.6076 MB / 427.7 MB, free: 3.086 MB / 346.7 MB Notification: Performance of SimCode: time 1.273e-06/0.7452, allocations: 3.938 kB / 427.7 MB, free: 3.082 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.309/1.054, allocations: 21.88 MB / 449.6 MB, free: 97.31 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002378/1.055, allocations: 178.6 kB / 449.7 MB, free: 97.07 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.058/4.112, allocations: 0 / 449.7 MB, free: 97.07 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Electrical.Digital.Examples.Multiplexer_res.mat does not exist to compare? outputFormat=mat