Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Digital.Examples.MUX2x1.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.MUX2x1,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_Digital_Examples_MUX2x1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.008/2.008, allocations: 194.9 MB / 211.1 MB, free: 7.586 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005738/0.0005738, allocations: 8 kB / 264.1 MB, free: 2.5 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3304/0.331, allocations: 44.5 MB / 308.6 MB, free: 12.64 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1697/0.5008, allocations: 77.66 MB / 386.2 MB, free: 14.88 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003282/0.5011, allocations: 67.97 kB / 386.3 MB, free: 14.81 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1114/0.6126, allocations: 27.61 MB / 413.9 MB, free: 3.262 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.134e-06/0.6127, allocations: 0 / 413.9 MB, free: 3.262 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.687e-05/0.6127, allocations: 4 kB / 413.9 MB, free: 3.258 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.001075/0.6138, allocations: 0.7515 MB / 414.7 MB, free: 2.426 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.995e-05/0.6138, allocations: 8.031 kB / 414.7 MB, free: 2.418 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.358e-05/0.6139, allocations: 42.55 kB / 414.7 MB, free: 2.367 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001187/0.6141, allocations: 51.39 kB / 414.8 MB, free: 2.316 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004539/0.6145, allocations: 273.4 kB / 415 MB, free: 2.008 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.682e-05/0.6146, allocations: 4 kB / 415 MB, free: 2.004 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.872e-05/0.6147, allocations: 20 kB / 415 MB, free: 1.984 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005057/0.6152, allocations: 165.5 kB / 415.2 MB, free: 1.816 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.639e-06/0.6152, allocations: 0 / 415.2 MB, free: 1.816 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.118e-05/0.6153, allocations: 8 kB / 415.2 MB, free: 1.809 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.189e-06/0.6153, allocations: 0 / 415.2 MB, free: 1.809 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002949/0.6156, allocations: 95.89 kB / 415.3 MB, free: 1.715 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001124/0.6167, allocations: 0.4887 MB / 415.8 MB, free: 1.176 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003402/0.6171, allocations: 122.5 kB / 415.9 MB, free: 1.047 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.124e-05/0.6171, allocations: 0 / 415.9 MB, free: 1.047 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005043/0.6176, allocations: 246.6 kB / 416.2 MB, free: 0.7812 MB / 346.7 MB Notification: Performance of pre-optimization done (n=14): time 1.984e-06/0.6176, allocations: 0 / 416.2 MB, free: 0.7812 MB / 346.7 MB Notification: Performance of matching and sorting (n=14): time 0.2511/0.8687, allocations: 0.7385 MB / 416.9 MB, free: 93.35 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001168/0.8689, allocations: 196.5 kB / 417.1 MB, free: 93.13 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001184/0.8701, allocations: 0.4957 MB / 417.6 MB, free: 92.97 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.236e-05/0.8702, allocations: 31.55 kB / 417.6 MB, free: 92.94 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001049/0.8703, allocations: 117.1 kB / 417.7 MB, free: 92.86 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.629e-05/0.8704, allocations: 29.33 kB / 417.8 MB, free: 92.86 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.137e-05/0.8704, allocations: 5.188 kB / 417.8 MB, free: 92.86 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 8.941e-05/0.8705, allocations: 333.2 kB / 418.1 MB, free: 92.55 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003256/0.8709, allocations: 81.03 kB / 418.2 MB, free: 92.55 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003287/0.8712, allocations: 104.2 kB / 418.3 MB, free: 92.53 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000327/0.8715, allocations: 214.8 kB / 418.5 MB, free: 92.37 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.318e-06/0.8716, allocations: 0 / 418.5 MB, free: 92.37 MB / 346.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.001085/0.8727, allocations: 482.8 kB / 419 MB, free: 92.18 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001024/0.8728, allocations: 155.1 kB / 419.1 MB, free: 92.02 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.428e-06/0.8728, allocations: 7.047 kB / 419.1 MB, free: 92.02 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.008e-05/0.8728, allocations: 5.594 kB / 419.1 MB, free: 92.02 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.499e-05/0.8729, allocations: 0.75 kB / 419.1 MB, free: 92.02 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.324e-06/0.8729, allocations: 0.875 kB / 419.1 MB, free: 92.02 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002688/0.8732, allocations: 20.42 kB / 419.1 MB, free: 92.02 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001913/0.8734, allocations: 100.4 kB / 419.2 MB, free: 92.02 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 16 ($PRE.Mux2x1.inertialDelaySensitive.y,$whenCondition1,$whenCondition2,Mux2x1.sel,Mux2x1.nextstate,Mux2x1.yy,$PRE.Mux2x1.inertialDelaySensitive.x,Mux2x1.inertialDelaySensitive.x,Mux2x1.inertialDelaySensitive.y,Mux2x1.inertialDelaySensitive.delayTime,Mux2x1.inertialDelaySensitive.y_auxiliary,Mux2x1.inertialDelaySensitive.y_old,Mux2x1.inertialDelaySensitive.lh,Mux2x1.inertialDelaySensitive.t_next,Input1.y,Input0.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 3 * 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.0005945/0.874, allocations: 393.9 kB / 419.6 MB, free: 91.72 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001106/0.8741, allocations: 49.19 kB / 419.7 MB, free: 91.7 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000175/0.8743, allocations: 67.78 kB / 419.7 MB, free: 91.67 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.761e-06/0.8743, allocations: 1.062 kB / 419.7 MB, free: 91.67 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.751e-06/0.8743, allocations: 0 / 419.7 MB, free: 91.67 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.068e-06/0.8743, allocations: 1.062 kB / 419.7 MB, free: 91.67 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001658/0.876, allocations: 0.9371 MB / 420.7 MB, free: 91.18 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.759e-06/0.876, allocations: 0 / 420.7 MB, free: 91.18 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.471e-05/0.8761, allocations: 3.938 kB / 420.7 MB, free: 91.18 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.136e-06/0.8761, allocations: 7.031 kB / 420.7 MB, free: 91.18 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.807e-05/0.8761, allocations: 18.89 kB / 420.7 MB, free: 91.18 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.939e-06/0.8762, allocations: 0.625 kB / 420.7 MB, free: 91.18 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.817e-06/0.8762, allocations: 2.047 kB / 420.7 MB, free: 91.18 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001142/0.8773, allocations: 0.644 MB / 421.3 MB, free: 90.87 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005489/0.8779, allocations: 255.4 kB / 421.6 MB, free: 90.73 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001079/0.878, allocations: 13.39 kB / 421.6 MB, free: 90.73 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002808/0.8783, allocations: 24.42 kB / 421.6 MB, free: 90.73 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000228/0.8786, allocations: 57.95 kB / 421.7 MB, free: 90.73 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001359/0.8787, allocations: 104.5 kB / 421.8 MB, free: 90.73 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0007175/0.8794, allocations: 421 kB / 422.2 MB, free: 90.58 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.8795, allocations: 0 / 422.2 MB, free: 90.58 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004438/0.8799, allocations: 47.5 kB / 422.3 MB, free: 90.58 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: 14 ($whenCondition1,$whenCondition2,Mux2x1.sel,Mux2x1.nextstate,Mux2x1.yy,Mux2x1.inertialDelaySensitive.x,Mux2x1.inertialDelaySensitive.y,Mux2x1.inertialDelaySensitive.delayTime,Mux2x1.inertialDelaySensitive.y_auxiliary,Mux2x1.inertialDelaySensitive.y_old,Mux2x1.inertialDelaySensitive.lh,Mux2x1.inertialDelaySensitive.t_next,Input1.y,Input0.y) * Number of discrete states: 14 (Input1.y,Mux2x1.sel,Input0.y,Mux2x1.yy,Mux2x1.nextstate,Mux2x1.inertialDelaySensitive.y,Mux2x1.inertialDelaySensitive.y_auxiliary,Mux2x1.inertialDelaySensitive.t_next,Mux2x1.inertialDelaySensitive.delayTime,Mux2x1.inertialDelaySensitive.lh,Mux2x1.inertialDelaySensitive.y_old,$whenCondition2,$whenCondition1,Mux2x1.inertialDelaySensitive.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 1 * 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 Backend phase and start with SimCode phase: time 0.001395/0.8813, allocations: 1.197 MB / 423.4 MB, free: 89.75 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0008094/0.8822, allocations: 0.5282 MB / 424 MB, free: 89.43 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.537e-06/0.8822, allocations: 0 / 424 MB, free: 89.43 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004805/0.8827, allocations: 465.6 kB / 424.4 MB, free: 89.12 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001096/0.8838, allocations: 161.6 kB / 424.6 MB, free: 89.11 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003842/0.8876, allocations: 1.942 MB / 426.5 MB, free: 88.24 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000439/0.8881, allocations: 0.8263 MB / 427.4 MB, free: 87.52 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001243/0.8883, allocations: 16.34 kB / 427.4 MB, free: 87.51 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.68e-05/0.8884, allocations: 38.59 kB / 427.4 MB, free: 87.5 MB / 346.7 MB Notification: Performance of SimCode: time 1.082e-06/0.8884, allocations: 4 kB / 427.4 MB, free: 87.5 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04065/0.929, allocations: 8.269 MB / 435.7 MB, free: 85.02 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002365/0.9294, allocations: 176.9 kB / 435.9 MB, free: 84.77 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.604/3.534, allocations: 3.062 kB / 435.9 MB, free: 84.77 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Electrical.Digital.Examples.MUX2x1_res.mat does not exist to compare? outputFormat=mat