Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.MUX2x1,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_MUX2x1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.MUX2x1,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_MUX2x1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00121/0.00121, allocations: 198.3 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.266/1.266, allocations: 227.2 MB / 245 MB, free: 5.871 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008606/0.0008606, allocations: 106.7 kB / 297.3 MB, free: 5.977 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002485/0.0002484, allocations: 8 kB / 358 MB, free: 9.23 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1837/0.184, allocations: 51.49 MB / 409.5 MB, free: 26.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09071/0.2748, allocations: 83.59 MB / 493.1 MB, free: 6.996 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002019/0.275, allocations: 73.7 kB / 493.2 MB, free: 6.926 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2235/0.4985, allocations: 28.05 MB / 0.509 GB, free: 94.68 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.064e-06/0.4986, allocations: 1.375 kB / 0.509 GB, free: 94.68 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.043e-05/0.4986, allocations: 4.125 kB / 0.509 GB, free: 94.68 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.00068/0.4993, allocations: 0.7478 MB / 0.5097 GB, free: 94.09 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.926e-05/0.4993, allocations: 13.09 kB / 0.5097 GB, free: 94.09 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.752e-05/0.4994, allocations: 39.84 kB / 0.5098 GB, free: 94.05 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.503e-05/0.4995, allocations: 41.19 kB / 0.5098 GB, free: 94.04 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003097/0.4998, allocations: 280.8 kB / 0.5101 GB, free: 93.79 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.357e-05/0.4999, allocations: 9.375 kB / 0.5101 GB, free: 93.79 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.294e-05/0.4999, allocations: 12.38 kB / 0.5101 GB, free: 93.79 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002949/0.5002, allocations: 170.6 kB / 0.5103 GB, free: 93.76 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.885e-06/0.5002, allocations: 0 / 0.5103 GB, free: 93.76 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.816e-05/0.5003, allocations: 7.5 kB / 0.5103 GB, free: 93.76 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.669e-06/0.5003, allocations: 1.375 kB / 0.5103 GB, free: 93.76 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001785/0.5005, allocations: 85.61 kB / 0.5104 GB, free: 93.75 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007563/0.5012, allocations: 0.5022 MB / 0.5109 GB, free: 93.46 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002027/0.5014, allocations: 123.1 kB / 0.511 GB, free: 93.43 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.202e-06/0.5014, allocations: 0 / 0.511 GB, free: 93.43 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002808/0.5017, allocations: 249.6 kB / 0.5112 GB, free: 93.32 MB / 378.7 MB Notification: Performance of pre-optimization done (n=14): time 1.403e-06/0.5017, allocations: 4 kB / 0.5112 GB, free: 93.32 MB / 378.7 MB Notification: Performance of matching and sorting (n=14): time 0.0008768/0.5026, allocations: 0.7454 MB / 0.5119 GB, free: 92.93 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.268e-05/0.5027, allocations: 190.5 kB / 0.5121 GB, free: 92.71 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004684/0.5032, allocations: 0.4966 MB / 0.5126 GB, free: 92.52 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.069e-05/0.5032, allocations: 31.67 kB / 0.5126 GB, free: 92.49 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.373e-05/0.5033, allocations: 121.1 kB / 0.5128 GB, free: 92.39 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.813e-05/0.5033, allocations: 34.3 kB / 0.5128 GB, free: 92.36 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.9e-05/0.5033, allocations: 3.656 kB / 0.5128 GB, free: 92.36 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.932e-05/0.5034, allocations: 338 kB / 0.5131 GB, free: 92.04 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001301/0.5035, allocations: 80.77 kB / 0.5132 GB, free: 92.02 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001276/0.5037, allocations: 97.78 kB / 0.5133 GB, free: 91.97 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001488/0.5038, allocations: 217.2 kB / 0.5135 GB, free: 91.79 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.574e-06/0.5038, allocations: 0 / 0.5135 GB, free: 91.79 MB / 378.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0005079/0.5044, allocations: 480 kB / 0.5139 GB, free: 91.53 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.598e-05/0.5044, allocations: 156.2 kB / 0.5141 GB, free: 91.37 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.198e-06/0.5044, allocations: 0 / 0.5141 GB, free: 91.37 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.473e-05/0.5045, allocations: 7.688 kB / 0.5141 GB, free: 91.36 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.613e-05/0.5045, allocations: 0 / 0.5141 GB, free: 91.36 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.94e-06/0.5045, allocations: 0 / 0.5141 GB, free: 91.36 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001416/0.5046, allocations: 22.77 kB / 0.5141 GB, free: 91.36 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.564e-05/0.5047, allocations: 99.19 kB / 0.5142 GB, free: 91.36 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.0002577/0.505, allocations: 410 kB / 0.5146 GB, free: 91.02 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.771e-05/0.505, allocations: 39.31 kB / 0.5146 GB, free: 91 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.505e-05/0.5051, allocations: 70.42 kB / 0.5147 GB, free: 90.96 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.863e-06/0.5051, allocations: 4 kB / 0.5147 GB, free: 90.96 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.5052, allocations: 3.969 kB / 0.5147 GB, free: 90.96 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.866e-06/0.5052, allocations: 0 / 0.5147 GB, free: 90.96 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000814/0.506, allocations: 0.9393 MB / 0.5156 GB, free: 90.33 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-06/0.506, allocations: 0 / 0.5156 GB, free: 90.33 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.08e-06/0.506, allocations: 2.156 kB / 0.5156 GB, free: 90.33 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.455e-06/0.506, allocations: 0 / 0.5156 GB, free: 90.33 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.216e-05/0.5061, allocations: 22.11 kB / 0.5157 GB, free: 90.33 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.5061, allocations: 3.938 kB / 0.5157 GB, free: 90.32 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.5061, allocations: 4 kB / 0.5157 GB, free: 90.32 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005634/0.5066, allocations: 0.6352 MB / 0.5163 GB, free: 89.93 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002836/0.5069, allocations: 260.2 kB / 0.5165 GB, free: 89.75 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.166e-05/0.507, allocations: 10.98 kB / 0.5165 GB, free: 89.75 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001522/0.5072, allocations: 15.62 kB / 0.5166 GB, free: 89.74 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001178/0.5073, allocations: 54.77 kB / 0.5166 GB, free: 89.73 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.279e-05/0.5074, allocations: 97.22 kB / 0.5167 GB, free: 89.72 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003848/0.5078, allocations: 426.6 kB / 0.5171 GB, free: 89.51 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.5078, allocations: 0 / 0.5171 GB, free: 89.51 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003011/0.5081, allocations: 52.19 kB / 0.5172 GB, free: 89.51 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.0008185/0.5089, allocations: 1.205 MB / 0.5183 GB, free: 88.57 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004488/0.5094, allocations: 0.5291 MB / 0.5189 GB, free: 88.16 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.5094, allocations: 0 / 0.5189 GB, free: 88.16 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002799/0.5097, allocations: 470.1 kB / 0.5193 GB, free: 87.76 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006265/0.5103, allocations: 151.7 kB / 0.5194 GB, free: 87.74 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002237/0.5125, allocations: 1.936 MB / 0.5213 GB, free: 86.61 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002625/0.5128, allocations: 0.8234 MB / 0.5221 GB, free: 85.88 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 6.982e-05/0.5129, allocations: 11.78 kB / 0.5222 GB, free: 85.87 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.505e-05/0.513, allocations: 38.42 kB / 0.5222 GB, free: 85.84 MB / 378.7 MB Notification: Performance of SimCode: time 9.52e-07/0.513, allocations: 7.062 kB / 0.5222 GB, free: 85.84 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01916/0.5321, allocations: 8.295 MB / 0.5303 GB, free: 79.18 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001719/0.5323, allocations: 180.1 kB / 0.5305 GB, free: 78.93 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.579/2.111, allocations: 4 kB / 0.5305 GB, free: 78.93 MB / 378.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Digital_Examples_MUX2x1_fmu --startTime=0 --stopTime=15 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Digital_Examples_MUX2x1.fmu > Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1_res.mat does not exist to compare? outputFormat=mat