Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Digital.Examples.Multiplexer.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.Multiplexer,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Digital_Examples_Multiplexer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.Multiplexer,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Digital_Examples_Multiplexer",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001089/0.001089, allocations: 181.2 kB / 17.01 MB, free: 5.125 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.403/1.403, allocations: 205.4 MB / 223.1 MB, free: 9.125 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008612/0.0008612, allocations: 92.09 kB / 271.5 MB, free: 8.371 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002542/0.0002542, allocations: 12 kB / 328.3 MB, free: 15.44 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2294/0.2297, allocations: 47.56 MB / 375.9 MB, free: 45.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1025/0.3322, allocations: 83.27 MB / 459.2 MB, free: 13.39 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002672/0.3326, allocations: 75.95 kB / 459.2 MB, free: 13.32 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2785/0.611, allocations: 54.86 MB / 0.5021 GB, free: 102.5 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.6111, allocations: 0 / 0.5021 GB, free: 102.5 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.183e-05/0.6111, allocations: 24.97 kB / 0.5021 GB, free: 102.5 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: 139 * Number of variables: 139 Notification: Performance of Generate backend data structure: time 0.001366/0.6125, allocations: 1.024 MB / 0.5031 GB, free: 101.9 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.68e-05/0.6126, allocations: 8.656 kB / 0.5031 GB, free: 101.9 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001615/0.6127, allocations: 101.1 kB / 0.5032 GB, free: 101.9 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001784/0.6129, allocations: 75.5 kB / 0.5033 GB, free: 101.9 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006978/0.6136, allocations: 478.7 kB / 0.5037 GB, free: 101.6 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.924e-05/0.6137, allocations: 44.69 kB / 0.5038 GB, free: 101.6 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000126/0.6138, allocations: 64.22 kB / 0.5038 GB, free: 101.6 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001302/0.6151, allocations: 0.8326 MB / 0.5046 GB, free: 101.6 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.486e-05/0.6151, allocations: 0 / 0.5046 GB, free: 101.6 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001142/0.6153, allocations: 25.03 kB / 0.5046 GB, free: 101.6 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.429e-05/0.6153, allocations: 14.34 kB / 0.5047 GB, free: 101.6 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00106/0.6163, allocations: 0.6598 MB / 0.5053 GB, free: 101.6 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002317/0.6187, allocations: 1.685 MB / 0.507 GB, free: 101.2 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009573/0.6196, allocations: 0.5998 MB / 0.5075 GB, free: 101.2 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.972e-05/0.6197, allocations: 12.38 kB / 0.5076 GB, free: 101.2 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008084/0.6206, allocations: 0.571 MB / 0.5081 GB, free: 101.2 MB / 378.7 MB Notification: Performance of pre-optimization done (n=58): time 2.164e-06/0.6206, allocations: 0 / 0.5081 GB, free: 101.2 MB / 378.7 MB Notification: Performance of matching and sorting (n=58): time 0.001958/0.6225, allocations: 1.313 MB / 0.5094 GB, free: 100.9 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.976e-05/0.6226, allocations: 195.2 kB / 0.5096 GB, free: 100.7 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003262/0.6229, allocations: 370.2 kB / 0.5099 GB, free: 100.5 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001006/0.6231, allocations: 52.39 kB / 0.51 GB, free: 100.5 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001106/0.6232, allocations: 239 kB / 0.5102 GB, free: 100.3 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001957/0.6234, allocations: 129.9 kB / 0.5103 GB, free: 100.2 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.173e-05/0.6235, allocations: 15.88 kB / 0.5103 GB, free: 100.2 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.32e-05/0.6236, allocations: 356.3 kB / 0.5107 GB, free: 99.9 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005109/0.6241, allocations: 307.8 kB / 0.511 GB, free: 99.83 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005434/0.6246, allocations: 387.6 kB / 0.5113 GB, free: 99.68 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005905/0.6252, allocations: 487.3 kB / 0.5118 GB, free: 99.41 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.587e-06/0.6252, allocations: 4 kB / 0.5118 GB, free: 99.41 MB / 378.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001493/0.6267, allocations: 1.133 MB / 0.5129 GB, free: 99 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.189e-05/0.6268, allocations: 145.2 kB / 0.5131 GB, free: 98.84 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.315e-06/0.6268, allocations: 3.938 kB / 0.5131 GB, free: 98.84 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.157e-05/0.6269, allocations: 15.8 kB / 0.5131 GB, free: 98.84 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002164/0.6271, allocations: 105.9 kB / 0.5132 GB, free: 98.83 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.244e-05/0.6271, allocations: 9.406 kB / 0.5132 GB, free: 98.83 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005183/0.6276, allocations: 84.64 kB / 0.5133 GB, free: 98.81 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004166/0.6281, allocations: 0.5645 MB / 0.5138 GB, free: 98.77 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 75 ($whenCondition1,MUX.d,$PRE.MUX.Or1.auxiliary_n,MUX.Or1.x[1],MUX.Or1.x[2],MUX.Or1.x[3],MUX.Or1.x[4],MUX.Or1.auxiliary[2],MUX.Or1.auxiliary[3],MUX.Or1.auxiliary_n,$PRE.MUX.And1.auxiliary_n,$PRE.MUX.And2.auxiliary_n,$PRE.MUX.And3.auxiliary_n,$PRE.MUX.And4.auxiliary_n,FF.RS2.Nor2.x[2],FF.RS2.Nor2.auxiliary[2],FF.RS2.Nor2.auxiliary_n,$PRE.FF.RS2.TD1.x,FF.RS2.TD1.x_delayed,FF.And2.y,$PRE.FF.And2.auxiliary_n,FF.RS1.Nor2.x[2],FF.RS1.Nor2.auxiliary[2],FF.RS1.Nor2.auxiliary_n,$PRE.FF.RS1.TD1.x,FF.RS1.TD1.x_delayed,FF.And4.y,$PRE.FF.And4.auxiliary_n,FF.RS2.Nor1.auxiliary[2],$PRE.FF.RS2.Nor1.auxiliary_n,FF.RS2.Nor1.auxiliary_n,$PRE.FF.RS2.Nor2.auxiliary_n,FF.RS2.TD1.x,FF.And1.y,$PRE.FF.And1.auxiliary_n,FF.And3.x[1],FF.And3.x[2],FF.And3.auxiliary_n,FF.And4.auxiliary_n,$PRE.FF.Not1.auxiliary,CLK.y,$PRE.CLK.t_i,CLK.t_i,D0.y,D1.y,MUX.And1.x[1],MUX.And1.x[3],MUX.And1.auxiliary[2],MUX.And1.auxiliary_n,MUX.And2.auxiliary[2],MUX.And2.auxiliary_n,MUX.And3.auxiliary[2],MUX.And3.auxiliary_n,MUX.And4.auxiliary[2],MUX.And4.auxiliary_n,$PRE.MUX.Not1.auxiliary,MUX.Not1.auxiliary,$PRE.MUX.Not2.auxiliary,MUX.Not2.auxiliary,D2.y,D3.y,FF.RS1.Nor1.auxiliary[2],$PRE.FF.RS1.Nor1.auxiliary_n,FF.RS1.Nor1.auxiliary_n,$PRE.FF.RS1.Nor2.auxiliary_n,FF.RS1.TD1.x,FF.And1.auxiliary[2],FF.And1.auxiliary_n,FF.And2.x[1],FF.And2.auxiliary[2],FF.And2.auxiliary_n,FF.And3.y,$PRE.FF.And3.auxiliary_n,FF.Not1.auxiliary,Enable.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (78): * Single equations (assignments): 73 * 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.0004668/0.6285, allocations: 439.9 kB / 0.5142 GB, free: 98.43 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001139/0.6287, allocations: 47.47 kB / 0.5143 GB, free: 98.4 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.434e-05/0.6287, allocations: 62.28 kB / 0.5143 GB, free: 98.36 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.901e-06/0.6288, allocations: 7.891 kB / 0.5144 GB, free: 98.36 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.618e-06/0.6288, allocations: 0 / 0.5144 GB, free: 98.36 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.452e-06/0.6288, allocations: 3.938 kB / 0.5144 GB, free: 98.36 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007083/0.6295, allocations: 0.666 MB / 0.515 GB, free: 98.01 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.294e-06/0.6295, allocations: 0 / 0.515 GB, free: 98.01 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001441/0.6297, allocations: 102.8 kB / 0.5151 GB, free: 98.01 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.98e-06/0.6297, allocations: 3.281 kB / 0.5151 GB, free: 98.01 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001118/0.6298, allocations: 81.98 kB / 0.5152 GB, free: 98 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.005e-06/0.6298, allocations: 6.609 kB / 0.5152 GB, free: 98 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.873e-06/0.6298, allocations: 3.953 kB / 0.5152 GB, free: 98 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00137/0.6312, allocations: 1.074 MB / 0.5162 GB, free: 97.52 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004999/0.6317, allocations: 259.1 kB / 0.5165 GB, free: 97.34 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001543/0.6319, allocations: 25.45 kB / 0.5165 GB, free: 97.32 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003249/0.6322, allocations: 64.98 kB / 0.5166 GB, free: 97.3 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002695/0.6325, allocations: 158.2 kB / 0.5167 GB, free: 97.24 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003684/0.6328, allocations: 0.5609 MB / 0.5173 GB, free: 97.18 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001878/0.633, allocations: 251.8 kB / 0.5175 GB, free: 97.02 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.633, allocations: 0 / 0.5175 GB, free: 97.02 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005538/0.6336, allocations: 150 kB / 0.5177 GB, free: 97 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: 56 ($whenCondition1,CLK.y,CLK.t_i,D0.y,D1.y,MUX.d,MUX.Or1.x[1],MUX.Or1.x[2],MUX.Or1.x[3],MUX.Or1.x[4],MUX.Or1.auxiliary[2],MUX.Or1.auxiliary[3],MUX.Or1.auxiliary_n,MUX.And1.x[1],MUX.And1.x[3],MUX.And1.auxiliary[2],MUX.And1.auxiliary_n,MUX.And2.auxiliary[2],MUX.And2.auxiliary_n,MUX.And3.auxiliary[2],MUX.And3.auxiliary_n,MUX.And4.auxiliary[2],MUX.And4.auxiliary_n,MUX.Not1.auxiliary,MUX.Not2.auxiliary,D2.y,D3.y,FF.RS1.Nor1.auxiliary[2],FF.RS1.Nor1.auxiliary_n,FF.RS1.Nor2.x[2],FF.RS1.Nor2.auxiliary[2],FF.RS1.Nor2.auxiliary_n,FF.RS1.TD1.x,FF.RS1.TD1.x_delayed,FF.RS2.Nor1.auxiliary[2],FF.RS2.Nor1.auxiliary_n,FF.RS2.Nor2.x[2],FF.RS2.Nor2.auxiliary[2],FF.RS2.Nor2.auxiliary_n,FF.RS2.TD1.x,FF.RS2.TD1.x_delayed,FF.And1.y,FF.And1.auxiliary[2],FF.And1.auxiliary_n,FF.And2.x[1],FF.And2.y,FF.And2.auxiliary[2],FF.And2.auxiliary_n,FF.And3.x[1],FF.And3.x[2],FF.And3.y,FF.And3.auxiliary_n,FF.And4.y,FF.And4.auxiliary_n,FF.Not1.auxiliary,Enable.y) * Number of discrete states: 23 (Enable.y,FF.Not1.auxiliary,FF.And4.auxiliary_n,FF.And3.auxiliary_n,FF.And2.auxiliary_n,FF.And1.auxiliary_n,FF.RS2.TD1.x,FF.RS2.Nor2.auxiliary_n,FF.RS2.Nor1.auxiliary_n,FF.RS1.TD1.x,FF.RS1.Nor2.auxiliary_n,FF.RS1.Nor1.auxiliary_n,D3.y,D2.y,MUX.Not2.auxiliary,MUX.Not1.auxiliary,MUX.And4.auxiliary_n,MUX.And3.auxiliary_n,MUX.And2.auxiliary_n,MUX.And1.auxiliary_n,MUX.Or1.auxiliary_n,D1.y,D0.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 5 * Record equations: 0 * When equations: 1 * 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.001688/0.6353, allocations: 1.684 MB / 0.5193 GB, free: 95.29 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001232/0.6365, allocations: 1.043 MB / 0.5203 GB, free: 94.2 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.6366, allocations: 128 / 0.5203 GB, free: 94.2 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006321/0.6372, allocations: 0.6982 MB / 0.521 GB, free: 93.45 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00144/0.6386, allocations: 476.7 kB / 0.5215 GB, free: 93 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004296/0.6429, allocations: 4.197 MB / 0.5256 GB, free: 88.73 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003285/0.6433, allocations: 0.9025 MB / 0.5264 GB, free: 87.8 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.002084/0.6454, allocations: 1.508 MB / 0.5279 GB, free: 86.3 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001261/0.6467, allocations: 0.6076 MB / 0.5285 GB, free: 85.69 MB / 378.7 MB Notification: Performance of SimCode: time 7.52e-07/0.6467, allocations: 0 / 0.5285 GB, free: 85.69 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02954/0.6762, allocations: 21.98 MB / 0.55 GB, free: 63.46 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001595/0.6764, allocations: 186.3 kB / 0.5501 GB, free: 63.21 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.371/3.048, allocations: 0 / 0.5501 GB, free: 63.21 MB / 378.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.Multiplexer.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Digital.Examples.Multiplexer.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Digital.Examples.Multiplexer.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.Multiplexer.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Digital.Examples.Multiplexer_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Digital_Examples_Multiplexer_fmu --startTime=0 --stopTime=250 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Digital_Examples_Multiplexer.fmu > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.Multiplexer.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Digital.Examples.Multiplexer_res.mat does not exist to compare? outputFormat=mat