Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_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_cpp_Modelica_Electrical_Digital_Examples_MUX2x1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.618/1.618, allocations: 171.1 MB / 186.7 MB, free: 1.137 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003676/0.0003676, allocations: 11.98 kB / 233.3 MB, free: 2.941 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0801/0.0805, allocations: 38.77 MB / 272.1 MB, free: 12.09 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3366/0.4172, allocations: 72.33 MB / 344.4 MB, free: 1.113 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002593/0.4175, allocations: 73.02 kB / 344.5 MB, free: 1.074 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1034/0.5209, allocations: 28.09 MB / 372.6 MB, free: 9.898 MB / 298.7 MB Notification: Performance of FrontEnd: time 6.973e-06/0.5209, allocations: 4 kB / 372.6 MB, free: 9.895 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.728e-05/0.521, allocations: 11.88 kB / 372.6 MB, free: 9.883 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.001242/0.5222, allocations: 0.7481 MB / 373.4 MB, free: 9.078 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.416e-05/0.5223, allocations: 8.031 kB / 373.4 MB, free: 9.07 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.425e-05/0.5224, allocations: 37.75 kB / 373.4 MB, free: 9.027 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001398/0.5225, allocations: 43.53 kB / 373.5 MB, free: 8.984 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005467/0.5231, allocations: 280.2 kB / 373.7 MB, free: 8.684 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.302e-05/0.5232, allocations: 7.938 kB / 373.7 MB, free: 8.676 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.459e-05/0.5233, allocations: 11 kB / 373.7 MB, free: 8.668 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006675/0.5239, allocations: 169.4 kB / 373.9 MB, free: 8.52 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.065e-05/0.524, allocations: 0 / 373.9 MB, free: 8.52 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.971e-05/0.524, allocations: 7.375 kB / 373.9 MB, free: 8.516 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.165e-05/0.5241, allocations: 4 kB / 373.9 MB, free: 8.512 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003754/0.5245, allocations: 82.02 kB / 374 MB, free: 8.449 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001349/0.5258, allocations: 0.5022 MB / 374.5 MB, free: 7.965 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000461/0.5263, allocations: 126.2 kB / 374.6 MB, free: 7.867 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.338e-05/0.5263, allocations: 0 / 374.6 MB, free: 7.867 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006766/0.527, allocations: 237.7 kB / 374.9 MB, free: 7.637 MB / 298.7 MB Notification: Performance of pre-optimization done (n=14): time 2.555e-06/0.527, allocations: 0 / 374.9 MB, free: 7.637 MB / 298.7 MB Notification: Performance of matching and sorting (n=14): time 0.002346/0.5294, allocations: 0.75 MB / 375.6 MB, free: 6.898 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001718/0.5296, allocations: 199.2 kB / 375.8 MB, free: 6.664 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001496/0.5311, allocations: 0.4963 MB / 376.3 MB, free: 6.246 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.559e-05/0.5312, allocations: 33.02 kB / 376.3 MB, free: 6.211 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001444/0.5314, allocations: 170.2 kB / 376.5 MB, free: 6.059 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000104/0.5315, allocations: 33.89 kB / 376.5 MB, free: 6.031 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.171e-05/0.5316, allocations: 4 kB / 376.5 MB, free: 6.027 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001762/0.5318, allocations: 314.2 kB / 376.8 MB, free: 5.715 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003952/0.5322, allocations: 84.52 kB / 376.9 MB, free: 5.652 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004094/0.5326, allocations: 97.23 kB / 377 MB, free: 5.574 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004763/0.5331, allocations: 209.7 kB / 377.2 MB, free: 5.363 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.837e-06/0.5331, allocations: 0 / 377.2 MB, free: 5.363 MB / 298.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.001556/0.5347, allocations: 480.9 kB / 377.7 MB, free: 4.922 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001693/0.5349, allocations: 158.7 kB / 377.8 MB, free: 4.746 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.333e-06/0.5349, allocations: 0 / 377.8 MB, free: 4.746 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.862e-05/0.5349, allocations: 0 / 377.8 MB, free: 4.746 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.904e-05/0.535, allocations: 4 kB / 377.9 MB, free: 4.742 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.064e-06/0.535, allocations: 32 / 377.9 MB, free: 4.742 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003786/0.5354, allocations: 23.94 kB / 377.9 MB, free: 4.719 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002293/0.5356, allocations: 93.36 kB / 378 MB, free: 4.625 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.0008185/0.5365, allocations: 405.2 kB / 378.4 MB, free: 4.223 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001411/0.5366, allocations: 47.44 kB / 378.4 MB, free: 4.176 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002299/0.5369, allocations: 66.23 kB / 378.5 MB, free: 4.113 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.153e-06/0.5369, allocations: 3.984 kB / 378.5 MB, free: 4.109 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.301e-06/0.5369, allocations: 0 / 378.5 MB, free: 4.109 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.003e-06/0.5369, allocations: 4 kB / 378.5 MB, free: 4.105 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002313/0.5393, allocations: 0.938 MB / 379.4 MB, free: 3.211 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.887e-06/0.5393, allocations: 3.938 kB / 379.4 MB, free: 3.207 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.333e-05/0.5393, allocations: 4.125 kB / 379.4 MB, free: 3.203 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.48e-06/0.5393, allocations: 0 / 379.4 MB, free: 3.203 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.977e-05/0.5394, allocations: 19.98 kB / 379.4 MB, free: 3.184 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.626e-06/0.5395, allocations: 0 / 379.4 MB, free: 3.184 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.039e-06/0.5395, allocations: 3.953 kB / 379.5 MB, free: 3.18 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001714/0.5412, allocations: 0.6484 MB / 380.1 MB, free: 2.566 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000749/0.542, allocations: 256.3 kB / 380.4 MB, free: 2.34 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001499/0.5421, allocations: 11.31 kB / 380.4 MB, free: 2.332 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004043/0.5426, allocations: 11.98 kB / 380.4 MB, free: 2.32 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002917/0.5429, allocations: 60.67 kB / 380.4 MB, free: 2.273 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002266/0.5431, allocations: 107.9 kB / 380.5 MB, free: 2.172 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.001161/0.5443, allocations: 417.3 kB / 380.9 MB, free: 1.828 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.9e-07/0.5443, allocations: 0 / 380.9 MB, free: 1.828 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0007715/0.5451, allocations: 55.75 kB / 381 MB, free: 1.777 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.002357/0.5475, allocations: 1.195 MB / 382.2 MB, free: 0.6094 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001304/0.5488, allocations: 0.5279 MB / 382.7 MB, free: 124 kB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.057e-06/0.5488, allocations: 0 / 382.7 MB, free: 124 kB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008405/0.5497, allocations: 475.5 kB / 383.2 MB, free: 15.68 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001543/0.5512, allocations: 152.4 kB / 383.3 MB, free: 15.56 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00585/0.5571, allocations: 1.99 MB / 385.3 MB, free: 13.75 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008474/0.558, allocations: 0.8285 MB / 386.2 MB, free: 12.91 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001/0.5581, allocations: 42.42 kB / 386.2 MB, free: 12.89 MB / 314.7 MB Notification: Performance of SimCode: time 1.272e-06/0.5581, allocations: 0 / 386.2 MB, free: 12.89 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.743/3.301, allocations: 4.959 MB / 391.2 MB, free: 7.848 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Electrical.Digital.Examples.MUX2x1_res.mat does not exist to compare? outputFormat=mat