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.001104/0.001104, allocations: 197 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.346/1.346, allocations: 225.4 MB / 240.1 MB, free: 15.13 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009386/0.0009385, allocations: 93 kB / 292.1 MB, free: 5.949 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.795e-05/4.804e-05, allocations: 7.984 kB / 350.6 MB, free: 2.445 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1156/0.1157, allocations: 51.49 MB / 402.1 MB, free: 14.91 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3409/0.4566, allocations: 83.52 MB / 485.6 MB, free: 5.906 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002114/0.4569, allocations: 66.78 kB / 485.7 MB, free: 5.871 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05306/0.51, allocations: 28.26 MB / 0.5019 GB, free: 11.53 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.262e-06/0.51, allocations: 0 / 0.5019 GB, free: 11.53 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.222e-05/0.5101, allocations: 4 kB / 0.5019 GB, free: 11.52 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.0006928/0.5108, allocations: 0.6882 MB / 0.5026 GB, free: 10.77 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.483e-05/0.5108, allocations: 12.03 kB / 0.5026 GB, free: 10.76 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.367e-05/0.5109, allocations: 43.78 kB / 0.5027 GB, free: 10.71 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.191e-05/0.511, allocations: 39.53 kB / 0.5027 GB, free: 10.67 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003575/0.5113, allocations: 273.3 kB / 0.503 GB, free: 10.37 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.217e-05/0.5114, allocations: 8 kB / 0.503 GB, free: 10.36 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.777e-05/0.5114, allocations: 8 kB / 0.503 GB, free: 10.35 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003114/0.5117, allocations: 169.5 kB / 0.5031 GB, free: 10.18 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.784e-06/0.5117, allocations: 0 / 0.5031 GB, free: 10.18 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.858e-05/0.5118, allocations: 11.98 kB / 0.5031 GB, free: 10.17 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.356e-06/0.5118, allocations: 7.984 kB / 0.5032 GB, free: 10.16 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001497/0.512, allocations: 79.98 kB / 0.5032 GB, free: 10.08 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008027/0.5128, allocations: 0.4984 MB / 0.5037 GB, free: 9.555 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000189/0.513, allocations: 122.5 kB / 0.5038 GB, free: 9.426 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001634/0.5132, allocations: 108.9 kB / 0.5039 GB, free: 9.316 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.111e-05/0.5132, allocations: 0 / 0.5039 GB, free: 9.316 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003147/0.5135, allocations: 242.6 kB / 0.5042 GB, free: 9.055 MB / 378.7 MB Notification: Performance of pre-optimization done (n=14): time 3.166e-06/0.5135, allocations: 112 / 0.5042 GB, free: 9.055 MB / 378.7 MB Notification: Performance of matching and sorting (n=14): time 0.0007379/0.5142, allocations: 0.5093 MB / 0.5047 GB, free: 8.508 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001265/0.5144, allocations: 191.9 kB / 0.5048 GB, free: 8.277 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005971/0.515, allocations: 0.4988 MB / 0.5053 GB, free: 7.773 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.594e-05/0.515, allocations: 29.7 kB / 0.5054 GB, free: 7.738 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.015e-05/0.5151, allocations: 117.1 kB / 0.5055 GB, free: 7.621 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.364e-05/0.5152, allocations: 27.7 kB / 0.5055 GB, free: 7.594 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.187e-05/0.5152, allocations: 8 kB / 0.5055 GB, free: 7.586 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001246/0.5153, allocations: 330.8 kB / 0.5058 GB, free: 7.254 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001393/0.5155, allocations: 75.98 kB / 0.5059 GB, free: 7.18 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001321/0.5156, allocations: 83.97 kB / 0.506 GB, free: 7.098 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002242/0.5158, allocations: 206.6 kB / 0.5062 GB, free: 6.867 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.5159, allocations: 4 kB / 0.5062 GB, free: 6.863 MB / 378.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0006249/0.5165, allocations: 491.8 kB / 0.5066 GB, free: 6.348 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001068/0.5166, allocations: 152.5 kB / 0.5068 GB, free: 6.168 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.31e-06/0.5166, allocations: 0 / 0.5068 GB, free: 6.168 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.475e-05/0.5166, allocations: 0 / 0.5068 GB, free: 6.168 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.081e-05/0.5167, allocations: 4 kB / 0.5068 GB, free: 6.164 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.406e-06/0.5167, allocations: 3.953 kB / 0.5068 GB, free: 6.16 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001459/0.5168, allocations: 19.98 kB / 0.5068 GB, free: 6.141 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001216/0.517, allocations: 96.25 kB / 0.5069 GB, free: 6.051 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 16 ($whenCondition1,$whenCondition2,Mux2x1.sel,Mux2x1.nextstate,Mux2x1.yy,$PRE.Mux2x1.inertialDelaySensitive.x,Mux2x1.inertialDelaySensitive.x,$PRE.Mux2x1.inertialDelaySensitive.y,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 () * 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.0002008/0.5172, allocations: 271.2 kB / 0.5072 GB, free: 5.746 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.649e-05/0.5172, allocations: 43.53 kB / 0.5072 GB, free: 5.703 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001159/0.5174, allocations: 71.75 kB / 0.5073 GB, free: 5.633 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/0.5174, allocations: 0 / 0.5073 GB, free: 5.633 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.51e-06/0.5174, allocations: 0 / 0.5073 GB, free: 5.633 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.869e-06/0.5174, allocations: 3.953 kB / 0.5073 GB, free: 5.629 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001114/0.5185, allocations: 0.9322 MB / 0.5082 GB, free: 4.609 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.525e-06/0.5185, allocations: 0 / 0.5082 GB, free: 4.609 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.338e-06/0.5185, allocations: 0 / 0.5082 GB, free: 4.609 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-06/0.5185, allocations: 4 kB / 0.5082 GB, free: 4.605 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.785e-05/0.5186, allocations: 19.98 kB / 0.5082 GB, free: 4.586 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.5186, allocations: 0 / 0.5082 GB, free: 4.586 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.275e-06/0.5186, allocations: 3.953 kB / 0.5082 GB, free: 4.582 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007283/0.5193, allocations: 0.6321 MB / 0.5088 GB, free: 3.906 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003467/0.5197, allocations: 256.4 kB / 0.5091 GB, free: 3.637 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.131e-05/0.5198, allocations: 12.19 kB / 0.5091 GB, free: 3.625 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001625/0.5199, allocations: 23.98 kB / 0.5091 GB, free: 3.602 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000162/0.5201, allocations: 63.88 kB / 0.5092 GB, free: 3.539 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001047/0.5202, allocations: 97.23 kB / 0.5093 GB, free: 3.445 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004931/0.5207, allocations: 416.9 kB / 0.5097 GB, free: 3.039 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5207, allocations: 0 / 0.5097 GB, free: 3.039 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002742/0.521, allocations: 48 kB / 0.5097 GB, free: 2.992 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) * 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.00106/0.5221, allocations: 1.189 MB / 0.5109 GB, free: 1.742 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005582/0.5226, allocations: 0.5255 MB / 0.5114 GB, free: 1.156 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.5226, allocations: 0 / 0.5114 GB, free: 1.156 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003602/0.523, allocations: 457 kB / 0.5118 GB, free: 0.6484 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006896/0.5237, allocations: 154.1 kB / 0.512 GB, free: 0.5039 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001234/0.525, allocations: 0.7095 MB / 0.5127 GB, free: 15.75 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004459/0.5254, allocations: 0.8264 MB / 0.5135 GB, free: 14.9 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 5.463e-05/0.5255, allocations: 14.12 kB / 0.5135 GB, free: 14.89 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.998e-05/0.5255, allocations: 43.42 kB / 0.5135 GB, free: 14.84 MB / 394.7 MB Notification: Performance of SimCode: time 2.71e-07/0.5255, allocations: 0 / 0.5135 GB, free: 14.84 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01933/0.5449, allocations: 8.298 MB / 0.5216 GB, free: 6.566 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001623/0.5451, allocations: 144.9 kB / 0.5218 GB, free: 6.344 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.726/2.272, allocations: 3.375 kB / 0.5218 GB, free: 6.344 MB / 394.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