Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Digital.Examples.Multiplexer.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.Multiplexer,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_Multiplexer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.Multiplexer,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_Multiplexer",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.001587/0.001587, allocations: 180.1 kB / 16.38 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.417/1.417, allocations: 223.2 MB / 240.3 MB, free: 11.9 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.0009059/0.0009062, allocations: 87.7 kB / 291.5 MB, free: 10.94 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003102/0.0003103, allocations: 8 kB / 351.2 MB, free: 15.24 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2542/0.2545, allocations: 50.41 MB / 401.6 MB, free: 32.59 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1032/0.3577, allocations: 84.17 MB / 485.7 MB, free: 12.31 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002524/0.358, allocations: 71.97 kB / 485.8 MB, free: 12.24 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3079/0.666, allocations: 55.5 MB / 0.5286 GB, free: 85.59 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.154e-06/0.666, allocations: 0 / 0.5286 GB, free: 85.59 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.187e-05/0.666, allocations: 16 kB / 0.5287 GB, free: 85.58 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.001777/0.6678, allocations: 1.034 MB / 0.5297 GB, free: 84.52 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.003e-05/0.6679, allocations: 12.03 kB / 0.5297 GB, free: 84.51 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000261/0.6682, allocations: 102.4 kB / 0.5298 GB, free: 84.4 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002267/0.6684, allocations: 79.16 kB / 0.5298 GB, free: 84.32 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008418/0.6692, allocations: 461 kB / 0.5303 GB, free: 83.85 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.026e-05/0.6693, allocations: 49.31 kB / 0.5303 GB, free: 83.8 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001362/0.6694, allocations: 63.95 kB / 0.5304 GB, free: 83.74 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001282/0.6707, allocations: 0.8378 MB / 0.5312 GB, free: 82.9 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.692e-05/0.6708, allocations: 3.844 kB / 0.5312 GB, free: 82.9 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001064/0.6709, allocations: 24 kB / 0.5312 GB, free: 82.88 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.668e-06/0.6709, allocations: 12 kB / 0.5312 GB, free: 82.86 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001121/0.672, allocations: 0.6532 MB / 0.5319 GB, free: 82.21 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002396/0.6744, allocations: 1.692 MB / 0.5335 GB, free: 80.51 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000967/0.6754, allocations: 0.599 MB / 0.5341 GB, free: 79.9 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.37e-05/0.6755, allocations: 4.562 kB / 0.5341 GB, free: 79.89 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007719/0.6763, allocations: 0.5727 MB / 0.5347 GB, free: 79.32 MB / 378.7 MB Notification: Performance of pre-optimization done (n=58): time 2.565e-06/0.6763, allocations: 0 / 0.5347 GB, free: 79.32 MB / 378.7 MB Notification: Performance of matching and sorting (n=58): time 0.001934/0.6782, allocations: 1.319 MB / 0.536 GB, free: 77.96 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.911e-05/0.6783, allocations: 196.5 kB / 0.5362 GB, free: 77.73 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003152/0.6786, allocations: 364.3 kB / 0.5365 GB, free: 77.36 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001021/0.6788, allocations: 49.7 kB / 0.5366 GB, free: 77.31 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001094/0.6789, allocations: 236.5 kB / 0.5368 GB, free: 77.09 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001495/0.679, allocations: 133 kB / 0.5369 GB, free: 76.98 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.33e-05/0.6791, allocations: 12 kB / 0.5369 GB, free: 76.96 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.489e-05/0.6792, allocations: 358.8 kB / 0.5373 GB, free: 76.61 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005045/0.6797, allocations: 313.1 kB / 0.5376 GB, free: 76.3 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005163/0.6802, allocations: 380.4 kB / 0.5379 GB, free: 75.91 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005507/0.6808, allocations: 485.2 kB / 0.5384 GB, free: 75.41 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.527e-06/0.6808, allocations: 0 / 0.5384 GB, free: 75.41 MB / 378.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001471/0.6823, allocations: 1.153 MB / 0.5395 GB, free: 74.23 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.587e-05/0.6824, allocations: 136.5 kB / 0.5396 GB, free: 74.07 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.937e-06/0.6824, allocations: 7.938 kB / 0.5397 GB, free: 74.06 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.82e-05/0.6824, allocations: 7.984 kB / 0.5397 GB, free: 74.05 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002089/0.6826, allocations: 107.5 kB / 0.5398 GB, free: 73.95 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.112e-05/0.6826, allocations: 11.95 kB / 0.5398 GB, free: 73.94 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004929/0.6831, allocations: 83.66 kB / 0.5399 GB, free: 73.86 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004223/0.6836, allocations: 0.5617 MB / 0.5404 GB, free: 73.3 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.0005148/0.6841, allocations: 445.7 kB / 0.5408 GB, free: 72.84 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001268/0.6842, allocations: 47.44 kB / 0.5409 GB, free: 72.79 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.337e-05/0.6843, allocations: 56.75 kB / 0.5409 GB, free: 72.74 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.242e-06/0.6843, allocations: 8 kB / 0.5409 GB, free: 72.73 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.021e-05/0.6843, allocations: 0 / 0.5409 GB, free: 72.73 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.891e-06/0.6844, allocations: 3.953 kB / 0.5409 GB, free: 72.73 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007674/0.6851, allocations: 0.6673 MB / 0.5416 GB, free: 72.02 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.159e-06/0.6851, allocations: 0 / 0.5416 GB, free: 72.02 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001522/0.6853, allocations: 95.78 kB / 0.5417 GB, free: 71.93 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.119e-06/0.6853, allocations: 0 / 0.5417 GB, free: 71.93 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00012/0.6854, allocations: 95.95 kB / 0.5418 GB, free: 71.84 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.25e-06/0.6855, allocations: 3.984 kB / 0.5418 GB, free: 71.84 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.6855, allocations: 0 / 0.5418 GB, free: 71.84 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001408/0.6869, allocations: 1.079 MB / 0.5428 GB, free: 70.71 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005372/0.6874, allocations: 256.5 kB / 0.5431 GB, free: 70.44 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001647/0.6876, allocations: 20 kB / 0.5431 GB, free: 70.42 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003681/0.688, allocations: 67.84 kB / 0.5432 GB, free: 70.36 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002838/0.6883, allocations: 156.2 kB / 0.5433 GB, free: 70.2 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004326/0.6887, allocations: 0.5618 MB / 0.5439 GB, free: 69.64 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000208/0.6889, allocations: 255.2 kB / 0.5441 GB, free: 69.39 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.2e-07/0.6889, allocations: 0 / 0.5441 GB, free: 69.39 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006395/0.6896, allocations: 144 kB / 0.5442 GB, free: 69.25 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.001837/0.6914, allocations: 1.692 MB / 0.5459 GB, free: 67.51 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00133/0.6928, allocations: 1.04 MB / 0.5469 GB, free: 66.43 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.6928, allocations: 4.031 kB / 0.5469 GB, free: 66.43 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006758/0.6935, allocations: 0.6877 MB / 0.5476 GB, free: 65.68 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001539/0.695, allocations: 483.1 kB / 0.548 GB, free: 65.22 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004833/0.6998, allocations: 4.19 MB / 0.5521 GB, free: 60.96 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003278/0.7002, allocations: 0.9063 MB / 0.553 GB, free: 60.03 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.002319/0.7025, allocations: 1.496 MB / 0.5545 GB, free: 58.53 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001428/0.704, allocations: 0.6115 MB / 0.5551 GB, free: 57.92 MB / 378.7 MB Notification: Performance of SimCode: time 6.01e-07/0.704, allocations: 0 / 0.5551 GB, free: 57.92 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03084/0.7348, allocations: 21.99 MB / 0.5765 GB, free: 35.72 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001255/0.735, allocations: 174.3 kB / 0.5767 GB, free: 35.48 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.492/3.227, allocations: 3.938 kB / 0.5767 GB, free: 35.48 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.Multiplexer.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.Multiplexer.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.Multiplexer.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.Multiplexer.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Digital.Examples.Multiplexer_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Digital_Examples_Multiplexer_fmu --startTime=0 --stopTime=250 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Digital_Examples_Multiplexer.fmu > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.Multiplexer.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Digital.Examples.Multiplexer_res.mat does not exist to compare? outputFormat=mat