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.MUX2x1.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.MUX2x1,fileNamePrefix="Modelica_3_2_1_Modelica_Electrical_Digital_Examples_MUX2x1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.641/1.641, allocations: 171.1 MB / 186.1 MB, free: 1.125 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003439/0.000344, allocations: 8 kB / 233.4 MB, free: 2.273 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07985/0.08023, allocations: 38.77 MB / 272.1 MB, free: 11.42 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3442/0.4245, allocations: 72.33 MB / 344.5 MB, free: 468 kB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002558/0.4248, allocations: 75.89 kB / 344.5 MB, free: 428 kB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1002/0.5251, allocations: 28.1 MB / 372.6 MB, free: 9.234 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.074e-06/0.5251, allocations: 0 / 372.6 MB, free: 9.234 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.484e-05/0.5252, allocations: 4 kB / 372.6 MB, free: 9.23 MB / 298.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.001045/0.5262, allocations: 0.7574 MB / 373.4 MB, free: 8.418 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.072e-05/0.5263, allocations: 12.03 kB / 373.4 MB, free: 8.406 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.403e-05/0.5264, allocations: 41.67 kB / 373.4 MB, free: 8.359 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001049/0.5265, allocations: 39.53 kB / 373.5 MB, free: 8.32 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004727/0.527, allocations: 277.9 kB / 373.7 MB, free: 8.02 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.021e-05/0.527, allocations: 7.5 kB / 373.8 MB, free: 8.016 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.53e-05/0.5271, allocations: 8 kB / 373.8 MB, free: 8.008 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005076/0.5276, allocations: 167.4 kB / 373.9 MB, free: 7.863 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.017e-05/0.5277, allocations: 4 kB / 373.9 MB, free: 7.859 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.601e-05/0.5277, allocations: 4 kB / 373.9 MB, free: 7.855 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.132e-06/0.5277, allocations: 0 / 373.9 MB, free: 7.855 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002907/0.528, allocations: 89.58 kB / 374 MB, free: 7.789 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001145/0.5292, allocations: 0.5011 MB / 374.5 MB, free: 7.305 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003732/0.5296, allocations: 127.3 kB / 374.6 MB, free: 7.207 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.25e-05/0.5296, allocations: 4 kB / 374.7 MB, free: 7.203 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005013/0.5301, allocations: 238.6 kB / 374.9 MB, free: 6.973 MB / 298.7 MB Notification: Performance of pre-optimization done (n=14): time 2.725e-06/0.5301, allocations: 0 / 374.9 MB, free: 6.973 MB / 298.7 MB Notification: Performance of matching and sorting (n=14): time 0.00164/0.5318, allocations: 0.7486 MB / 375.6 MB, free: 6.238 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001453/0.532, allocations: 199.6 kB / 375.8 MB, free: 6.004 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001047/0.533, allocations: 0.4971 MB / 376.3 MB, free: 5.586 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.831e-05/0.5332, allocations: 29.7 kB / 376.4 MB, free: 5.551 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001176/0.5333, allocations: 114.4 kB / 376.5 MB, free: 5.457 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.758e-05/0.5334, allocations: 27.52 kB / 376.5 MB, free: 5.434 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.605e-05/0.5334, allocations: 7.625 kB / 376.5 MB, free: 5.43 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001532/0.5336, allocations: 325.1 kB / 376.8 MB, free: 5.109 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002846/0.5339, allocations: 79.95 kB / 376.9 MB, free: 5.051 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000278/0.5342, allocations: 101.2 kB / 377 MB, free: 4.969 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003379/0.5345, allocations: 220 kB / 377.2 MB, free: 4.75 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.087e-06/0.5345, allocations: 0 / 377.2 MB, free: 4.75 MB / 298.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.001105/0.5357, allocations: 482.7 kB / 377.7 MB, free: 4.305 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001452/0.5358, allocations: 156.2 kB / 377.8 MB, free: 4.129 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.174e-06/0.5359, allocations: 3.938 kB / 377.8 MB, free: 4.125 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.719e-05/0.5359, allocations: 64 / 377.8 MB, free: 4.125 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.865e-05/0.5359, allocations: 4 kB / 377.8 MB, free: 4.121 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.364e-06/0.5359, allocations: 4 kB / 377.8 MB, free: 4.117 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002837/0.5362, allocations: 27.88 kB / 377.9 MB, free: 4.09 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001725/0.5364, allocations: 97.34 kB / 378 MB, free: 3.992 MB / 298.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.0006303/0.5371, allocations: 395 kB / 378.4 MB, free: 3.598 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001067/0.5372, allocations: 43.53 kB / 378.4 MB, free: 3.555 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002167/0.5374, allocations: 78.53 kB / 378.5 MB, free: 3.484 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.449e-06/0.5374, allocations: 0 / 378.5 MB, free: 3.484 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.701e-06/0.5374, allocations: 0 / 378.5 MB, free: 3.484 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.037e-06/0.5374, allocations: 0 / 378.5 MB, free: 3.484 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00178/0.5392, allocations: 0.9368 MB / 379.4 MB, free: 2.59 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.288e-06/0.5393, allocations: 0 / 379.4 MB, free: 2.59 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.195e-05/0.5393, allocations: 0 / 379.4 MB, free: 2.59 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.372e-06/0.5393, allocations: 0 / 379.4 MB, free: 2.59 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.944e-05/0.5394, allocations: 19.98 kB / 379.4 MB, free: 2.57 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.108e-06/0.5394, allocations: 0 / 379.4 MB, free: 2.57 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.751e-06/0.5394, allocations: 3.953 kB / 379.4 MB, free: 2.566 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001271/0.5407, allocations: 0.6409 MB / 380.1 MB, free: 1.961 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006024/0.5413, allocations: 259.7 kB / 380.3 MB, free: 1.73 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001067/0.5414, allocations: 15.94 kB / 380.3 MB, free: 1.719 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002871/0.5417, allocations: 15.98 kB / 380.4 MB, free: 1.703 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002359/0.542, allocations: 58.55 kB / 380.4 MB, free: 1.656 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000169/0.5422, allocations: 108.4 kB / 380.5 MB, free: 1.555 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0008683/0.5431, allocations: 418.6 kB / 380.9 MB, free: 1.211 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.5431, allocations: 0 / 380.9 MB, free: 1.211 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004544/0.5435, allocations: 51.62 kB / 381 MB, free: 1.164 MB / 298.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.001715/0.5453, allocations: 1.197 MB / 382.2 MB, free: 16 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0009167/0.5462, allocations: 0.5332 MB / 382.7 MB, free: 15.5 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.5462, allocations: 0 / 382.7 MB, free: 15.5 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005664/0.5468, allocations: 463.2 kB / 383.2 MB, free: 15.07 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001137/0.548, allocations: 161.4 kB / 383.3 MB, free: 14.94 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004357/0.5523, allocations: 1.936 MB / 385.3 MB, free: 13.18 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006396/0.553, allocations: 0.834 MB / 386.1 MB, free: 12.33 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001056/0.5532, allocations: 8.547 kB / 386.1 MB, free: 12.32 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.934e-05/0.5533, allocations: 41.48 kB / 386.1 MB, free: 12.31 MB / 314.7 MB Notification: Performance of SimCode: time 1.292e-06/0.5533, allocations: 0 / 386.1 MB, free: 12.31 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03251/0.5858, allocations: 8.282 MB / 394.4 MB, free: 3.91 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003176/0.5862, allocations: 172.4 kB / 394.6 MB, free: 3.668 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.598/3.185, allocations: 0 / 394.6 MB, free: 3.668 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Electrical.Digital.Examples.MUX2x1_res.mat does not exist to compare? outputFormat=mat