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.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_cpp_Modelica_Electrical_Digital_Examples_MUX2x1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.97/1.97, allocations: 194.8 MB / 211.7 MB, free: 2.996 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003742/0.0003742, allocations: 12 kB / 264 MB, free: 13.5 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09571/0.09613, allocations: 44.51 MB / 308.5 MB, free: 0.9141 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4546/0.5508, allocations: 77.65 MB / 386.2 MB, free: 14.47 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002888/0.5511, allocations: 70.3 kB / 386.3 MB, free: 14.47 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08545/0.6366, allocations: 27.61 MB / 413.9 MB, free: 9.383 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.754e-06/0.6367, allocations: 3.938 kB / 413.9 MB, free: 9.379 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.285e-05/0.6367, allocations: 7.812 kB / 413.9 MB, free: 9.375 MB / 314.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.0007843/0.6375, allocations: 0.7448 MB / 414.6 MB, free: 8.66 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.771e-05/0.6375, allocations: 11.47 kB / 414.6 MB, free: 8.66 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.473e-05/0.6376, allocations: 45.53 kB / 414.7 MB, free: 8.613 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.337e-05/0.6377, allocations: 50.61 kB / 414.7 MB, free: 8.586 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000349/0.6381, allocations: 273.9 kB / 415 MB, free: 8.34 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.479e-05/0.6381, allocations: 3.781 kB / 415 MB, free: 8.34 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.136e-05/0.6382, allocations: 11.25 kB / 415 MB, free: 8.34 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004384/0.6386, allocations: 170.9 kB / 415.2 MB, free: 8.266 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.124e-05/0.6386, allocations: 0 / 415.2 MB, free: 8.266 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.113e-05/0.6387, allocations: 7.219 kB / 415.2 MB, free: 8.266 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.691e-06/0.6387, allocations: 3.938 kB / 415.2 MB, free: 8.262 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002541/0.639, allocations: 86.59 kB / 415.3 MB, free: 8.246 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009491/0.6399, allocations: 0.4907 MB / 415.8 MB, free: 7.891 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002994/0.6403, allocations: 123.5 kB / 415.9 MB, free: 7.852 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.422e-05/0.6403, allocations: 3.469 kB / 415.9 MB, free: 7.852 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004211/0.6407, allocations: 242.4 kB / 416.1 MB, free: 7.691 MB / 314.7 MB Notification: Performance of pre-optimization done (n=14): time 3.076e-06/0.6407, allocations: 0 / 416.1 MB, free: 7.691 MB / 314.7 MB Notification: Performance of matching and sorting (n=14): time 0.001386/0.6421, allocations: 0.7442 MB / 416.9 MB, free: 7.238 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.898e-05/0.6422, allocations: 198.7 kB / 417.1 MB, free: 7.016 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008602/0.6431, allocations: 0.502 MB / 417.6 MB, free: 6.77 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.797e-05/0.6432, allocations: 29.58 kB / 417.6 MB, free: 6.738 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.244e-05/0.6433, allocations: 170.9 kB / 417.8 MB, free: 6.59 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.498e-05/0.6433, allocations: 36.23 kB / 417.8 MB, free: 6.57 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.23e-05/0.6434, allocations: 3.906 kB / 417.8 MB, free: 6.57 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.349e-05/0.6434, allocations: 318.1 kB / 418.1 MB, free: 6.254 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002381/0.6437, allocations: 87.45 kB / 418.2 MB, free: 6.238 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002712/0.644, allocations: 100 kB / 418.3 MB, free: 6.207 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000266/0.6443, allocations: 208.4 kB / 418.5 MB, free: 6.043 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.168e-06/0.6443, allocations: 0 / 418.5 MB, free: 6.043 MB / 314.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0009196/0.6452, allocations: 477.1 kB / 419 MB, free: 5.812 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.044e-05/0.6453, allocations: 147.7 kB / 419.1 MB, free: 5.652 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.346e-06/0.6453, allocations: 11.77 kB / 419.1 MB, free: 5.645 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.663e-05/0.6454, allocations: 0 / 419.1 MB, free: 5.645 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.502e-05/0.6454, allocations: 3.984 kB / 419.1 MB, free: 5.641 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.663e-06/0.6454, allocations: 0 / 419.1 MB, free: 5.641 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002754/0.6457, allocations: 30.5 kB / 419.2 MB, free: 5.629 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001352/0.6458, allocations: 96.11 kB / 419.2 MB, free: 5.617 MB / 314.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.000505/0.6464, allocations: 396.6 kB / 419.6 MB, free: 5.297 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.571e-05/0.6465, allocations: 46.83 kB / 419.7 MB, free: 5.273 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001398/0.6466, allocations: 66.55 kB / 419.7 MB, free: 5.238 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.36e-06/0.6466, allocations: 3.953 kB / 419.7 MB, free: 5.234 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.853e-06/0.6466, allocations: 0 / 419.7 MB, free: 5.234 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.837e-06/0.6467, allocations: 3.938 kB / 419.8 MB, free: 5.23 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00149/0.6482, allocations: 0.9357 MB / 420.7 MB, free: 4.641 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.6482, allocations: 0 / 420.7 MB, free: 4.641 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.112e-05/0.6482, allocations: 0 / 420.7 MB, free: 4.641 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.835e-06/0.6482, allocations: 3.953 kB / 420.7 MB, free: 4.637 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.962e-05/0.6483, allocations: 22.64 kB / 420.7 MB, free: 4.633 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.566e-06/0.6483, allocations: 0 / 420.7 MB, free: 4.633 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.6483, allocations: 0 / 420.7 MB, free: 4.633 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001061/0.6494, allocations: 0.6426 MB / 421.4 MB, free: 4.273 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004738/0.6499, allocations: 260.8 kB / 421.6 MB, free: 4.094 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001043/0.65, allocations: 14.55 kB / 421.6 MB, free: 4.09 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002682/0.6503, allocations: 11.62 kB / 421.6 MB, free: 4.09 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002161/0.6505, allocations: 58.2 kB / 421.7 MB, free: 4.07 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000129/0.6506, allocations: 105.1 kB / 421.8 MB, free: 4.055 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0007055/0.6513, allocations: 421.5 kB / 422.2 MB, free: 3.855 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.6514, allocations: 3.812 kB / 422.2 MB, free: 3.855 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004768/0.6518, allocations: 46.38 kB / 422.3 MB, free: 3.855 MB / 314.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.001371/0.6532, allocations: 1.205 MB / 423.5 MB, free: 2.961 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0007861/0.654, allocations: 0.5364 MB / 424 MB, free: 2.613 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.616e-06/0.6541, allocations: 0 / 424 MB, free: 2.613 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004844/0.6546, allocations: 463.7 kB / 424.4 MB, free: 2.281 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001079/0.6557, allocations: 163.1 kB / 424.6 MB, free: 2.223 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003714/0.6594, allocations: 1.977 MB / 426.6 MB, free: 1.141 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004455/0.6599, allocations: 0.8243 MB / 427.4 MB, free: 376 kB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.59e-05/0.66, allocations: 48.86 kB / 427.5 MB, free: 360 kB / 314.7 MB Notification: Performance of SimCode: time 1.152e-06/0.66, allocations: 0 / 427.5 MB, free: 360 kB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.818/3.478, allocations: 4.969 MB / 432.4 MB, free: 13.8 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Digital.Examples.MUX2x1_res.mat does not exist to compare? outputFormat=mat