Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.MUX2x1,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_MUX2x1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.MUX2x1,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_MUX2x1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00177/0.00177, allocations: 180.6 kB / 16.39 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.318/1.318, allocations: 223.2 MB / 240.3 MB, free: 11.89 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000896/0.000896, allocations: 96.44 kB / 291.5 MB, free: 10.89 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002552/0.0002553, allocations: 12 kB / 351.2 MB, free: 15.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1948/0.1951, allocations: 50.4 MB / 401.6 MB, free: 32.45 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09366/0.2888, allocations: 82.78 MB / 484.4 MB, free: 13.56 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001964/0.289, allocations: 68.66 kB / 484.4 MB, free: 13.49 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05137/0.3404, allocations: 28.02 MB / 0.5004 GB, free: 1.598 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.322e-06/0.3404, allocations: 0 / 0.5004 GB, free: 1.598 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.155e-05/0.3404, allocations: 4 kB / 0.5004 GB, free: 1.594 MB / 378.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.0007182/0.3412, allocations: 0.7477 MB / 0.5012 GB, free: 0.7656 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.087e-05/0.3412, allocations: 8.031 kB / 0.5012 GB, free: 0.7578 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.69e-05/0.3413, allocations: 46.5 kB / 0.5012 GB, free: 0.7031 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.926e-05/0.3414, allocations: 43.44 kB / 0.5013 GB, free: 0.6602 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003397/0.3417, allocations: 261.5 kB / 0.5015 GB, free: 372 kB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.329e-05/0.3417, allocations: 16 kB / 0.5015 GB, free: 356 kB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.231e-05/0.3418, allocations: 11.95 kB / 0.5015 GB, free: 344 kB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003331/0.3421, allocations: 169.5 kB / 0.5017 GB, free: 168 kB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.094e-06/0.3421, allocations: 7.938 kB / 0.5017 GB, free: 160 kB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.625e-05/0.3422, allocations: 4 kB / 0.5017 GB, free: 156 kB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.228e-06/0.3422, allocations: 0 / 0.5017 GB, free: 156 kB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001643/0.3423, allocations: 83.95 kB / 0.5018 GB, free: 72 kB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1694/0.5118, allocations: 499.7 kB / 0.5023 GB, free: 97.1 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003821/0.5122, allocations: 124.8 kB / 0.5024 GB, free: 97.08 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.268e-05/0.5122, allocations: 2.062 kB / 0.5024 GB, free: 97.08 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005059/0.5128, allocations: 245.4 kB / 0.5026 GB, free: 96.97 MB / 378.7 MB Notification: Performance of pre-optimization done (n=14): time 2.735e-06/0.5128, allocations: 0.6562 kB / 0.5026 GB, free: 96.97 MB / 378.7 MB Notification: Performance of matching and sorting (n=14): time 0.001498/0.5143, allocations: 0.7458 MB / 0.5033 GB, free: 96.59 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.894e-05/0.5144, allocations: 197 kB / 0.5035 GB, free: 96.37 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009116/0.5153, allocations: 0.4982 MB / 0.504 GB, free: 96.18 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.081e-05/0.5153, allocations: 29.83 kB / 0.5041 GB, free: 96.15 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.783e-05/0.5154, allocations: 112.8 kB / 0.5042 GB, free: 96.07 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.818e-05/0.5155, allocations: 34.55 kB / 0.5042 GB, free: 96.05 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.887e-05/0.5155, allocations: 3.812 kB / 0.5042 GB, free: 96.05 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.009e-05/0.5156, allocations: 328.8 kB / 0.5045 GB, free: 95.74 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002441/0.5159, allocations: 80.23 kB / 0.5046 GB, free: 95.74 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002526/0.5161, allocations: 109.5 kB / 0.5047 GB, free: 95.73 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002609/0.5164, allocations: 213.3 kB / 0.5049 GB, free: 95.57 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.444e-06/0.5164, allocations: 1.25 kB / 0.5049 GB, free: 95.57 MB / 378.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0009252/0.5173, allocations: 484.9 kB / 0.5054 GB, free: 95.38 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.44e-05/0.5174, allocations: 149.1 kB / 0.5055 GB, free: 95.22 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.654e-06/0.5175, allocations: 5.328 kB / 0.5055 GB, free: 95.21 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.61e-05/0.5175, allocations: 0.7031 kB / 0.5055 GB, free: 95.21 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.215e-05/0.5175, allocations: 7.938 kB / 0.5055 GB, free: 95.21 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.843e-06/0.5175, allocations: 2.031 kB / 0.5055 GB, free: 95.21 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002446/0.5178, allocations: 14.86 kB / 0.5055 GB, free: 95.21 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001994/0.518, allocations: 104.1 kB / 0.5056 GB, free: 95.21 MB / 378.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.000519/0.5185, allocations: 398.8 kB / 0.506 GB, free: 94.92 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001075/0.5187, allocations: 47.52 kB / 0.5061 GB, free: 94.9 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001406/0.5188, allocations: 72.75 kB / 0.5061 GB, free: 94.86 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.909e-06/0.5188, allocations: 6.984 kB / 0.5061 GB, free: 94.86 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.478e-06/0.5188, allocations: 0.5625 kB / 0.5061 GB, free: 94.86 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.5189, allocations: 1.156 kB / 0.5061 GB, free: 94.86 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001035/0.5199, allocations: 0.9348 MB / 0.507 GB, free: 94.37 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.344e-06/0.5199, allocations: 3.922 kB / 0.507 GB, free: 94.37 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.871e-06/0.5199, allocations: 1.125 kB / 0.507 GB, free: 94.37 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.278e-06/0.5199, allocations: 6.828 kB / 0.5071 GB, free: 94.37 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.704e-05/0.52, allocations: 20.42 kB / 0.5071 GB, free: 94.37 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.352e-06/0.52, allocations: 0.75 kB / 0.5071 GB, free: 94.37 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.52, allocations: 0.6875 kB / 0.5071 GB, free: 94.37 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001023/0.521, allocations: 0.6283 MB / 0.5077 GB, free: 94.06 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004517/0.5215, allocations: 257 kB / 0.5079 GB, free: 93.93 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.371e-05/0.5216, allocations: 25.95 kB / 0.508 GB, free: 93.92 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000255/0.5219, allocations: 17.86 kB / 0.508 GB, free: 93.92 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001752/0.5221, allocations: 56.36 kB / 0.508 GB, free: 93.92 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001184/0.5222, allocations: 98.8 kB / 0.5081 GB, free: 93.92 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0006258/0.5228, allocations: 421.9 kB / 0.5085 GB, free: 93.77 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.41e-07/0.5228, allocations: 0 / 0.5085 GB, free: 93.77 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005286/0.5234, allocations: 49.91 kB / 0.5086 GB, free: 93.77 MB / 378.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.001248/0.5246, allocations: 1.195 MB / 0.5097 GB, free: 92.93 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.000669/0.5253, allocations: 0.5374 MB / 0.5103 GB, free: 92.62 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.5253, allocations: 7.469 kB / 0.5103 GB, free: 92.62 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003959/0.5257, allocations: 461.8 kB / 0.5107 GB, free: 92.3 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008778/0.5266, allocations: 153.8 kB / 0.5109 GB, free: 92.3 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003425/0.5301, allocations: 1.939 MB / 0.5128 GB, free: 91.41 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000394/0.5305, allocations: 0.8308 MB / 0.5136 GB, free: 90.69 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 8.603e-05/0.5306, allocations: 14.47 kB / 0.5136 GB, free: 90.68 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.365e-05/0.5307, allocations: 42.59 kB / 0.5136 GB, free: 90.67 MB / 378.7 MB Notification: Performance of SimCode: time 5.41e-07/0.5307, allocations: 0 / 0.5136 GB, free: 90.67 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02371/0.5544, allocations: 8.284 MB / 0.5217 GB, free: 88.25 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001827/0.5546, allocations: 172.2 kB / 0.5219 GB, free: 88.01 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.684/2.239, allocations: 0 / 0.5219 GB, free: 88.01 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Digital_Examples_MUX2x1_fmu --startTime=0 --stopTime=15 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Digital_Examples_MUX2x1.fmu > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1_res.mat does not exist to compare? outputFormat=mat