Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Digital.Examples.Multiplexer.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.Multiplexer,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_Multiplexer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.Multiplexer,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_Multiplexer",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001628/0.001628, allocations: 196.8 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.42/1.42, allocations: 225.4 MB / 240.1 MB, free: 15.12 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008362/0.0008365, allocations: 86.83 kB / 292.1 MB, free: 6.012 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.115e-05/4.154e-05, allocations: 0 / 350.6 MB, free: 2.441 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1132/0.1133, allocations: 51.49 MB / 402.1 MB, free: 14.9 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3803/0.4937, allocations: 84.92 MB / 487 MB, free: 4.535 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002195/0.4939, allocations: 67.47 kB / 487.1 MB, free: 4.5 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1062/0.6002, allocations: 55.95 MB / 0.5303 GB, free: 14.43 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.363e-06/0.6002, allocations: 0 / 0.5303 GB, free: 14.43 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.555e-05/0.6003, allocations: 15.94 kB / 0.5303 GB, free: 14.41 MB / 410.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.001909/0.6022, allocations: 0.9705 MB / 0.5313 GB, free: 13.37 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.607e-05/0.6022, allocations: 12.03 kB / 0.5313 GB, free: 13.36 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000272/0.6025, allocations: 108.7 kB / 0.5314 GB, free: 13.25 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002511/0.6028, allocations: 75.16 kB / 0.5315 GB, free: 13.17 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008386/0.6036, allocations: 476.9 kB / 0.5319 GB, free: 12.66 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.187e-05/0.6037, allocations: 45.31 kB / 0.532 GB, free: 12.62 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001696/0.6039, allocations: 56 kB / 0.532 GB, free: 12.57 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001378/0.6052, allocations: 0.8145 MB / 0.5328 GB, free: 11.74 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.589e-05/0.6053, allocations: 0 / 0.5328 GB, free: 11.74 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001087/0.6054, allocations: 24 kB / 0.5328 GB, free: 11.72 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.386e-05/0.6054, allocations: 12 kB / 0.5328 GB, free: 11.71 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001103/0.6065, allocations: 0.6064 MB / 0.5334 GB, free: 11.1 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002984/0.6095, allocations: 1.697 MB / 0.5351 GB, free: 9.355 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009656/0.6105, allocations: 0.5562 MB / 0.5356 GB, free: 8.789 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004793/0.611, allocations: 286.4 kB / 0.5359 GB, free: 8.504 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001246/0.6111, allocations: 8.562 kB / 0.5359 GB, free: 8.496 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008348/0.612, allocations: 0.5533 MB / 0.5365 GB, free: 7.934 MB / 410.7 MB Notification: Performance of pre-optimization done (n=58): time 2.214e-06/0.612, allocations: 0 / 0.5365 GB, free: 7.934 MB / 410.7 MB Notification: Performance of matching and sorting (n=58): time 0.001676/0.6137, allocations: 0.991 MB / 0.5374 GB, free: 6.902 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001165/0.6138, allocations: 196.5 kB / 0.5376 GB, free: 6.668 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004903/0.6143, allocations: 363.1 kB / 0.538 GB, free: 6.301 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000113/0.6144, allocations: 49.7 kB / 0.538 GB, free: 6.246 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001654/0.6146, allocations: 236.8 kB / 0.5382 GB, free: 6.012 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001841/0.6148, allocations: 135.7 kB / 0.5384 GB, free: 5.879 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.952e-05/0.6149, allocations: 16 kB / 0.5384 GB, free: 5.863 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001436/0.615, allocations: 354.8 kB / 0.5387 GB, free: 5.508 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005119/0.6156, allocations: 293.5 kB / 0.539 GB, free: 5.223 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005446/0.6161, allocations: 365.7 kB / 0.5394 GB, free: 4.844 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006415/0.6168, allocations: 468 kB / 0.5398 GB, free: 4.359 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.677e-06/0.6168, allocations: 0 / 0.5398 GB, free: 4.359 MB / 410.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001697/0.6185, allocations: 1.092 MB / 0.5409 GB, free: 3.23 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.862e-05/0.6186, allocations: 148.5 kB / 0.541 GB, free: 3.055 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.628e-06/0.6186, allocations: 3.953 kB / 0.541 GB, free: 3.051 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.972e-05/0.6186, allocations: 4 kB / 0.541 GB, free: 3.047 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002575/0.6189, allocations: 111.8 kB / 0.5411 GB, free: 2.938 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.266e-05/0.6189, allocations: 4 kB / 0.5411 GB, free: 2.934 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005261/0.6194, allocations: 93.72 kB / 0.5412 GB, free: 2.844 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005152/0.62, allocations: 0.558 MB / 0.5418 GB, free: 2.285 MB / 410.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 () * 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.0003812/0.6204, allocations: 325.3 kB / 0.5421 GB, free: 1.93 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001317/0.6205, allocations: 55.42 kB / 0.5421 GB, free: 1.875 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.461e-05/0.6206, allocations: 52.77 kB / 0.5422 GB, free: 1.824 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.153e-05/0.6206, allocations: 11.94 kB / 0.5422 GB, free: 1.812 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.572e-06/0.6206, allocations: 3.938 kB / 0.5422 GB, free: 1.809 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.053e-06/0.6206, allocations: 7.984 kB / 0.5422 GB, free: 1.801 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000862/0.6215, allocations: 0.6579 MB / 0.5428 GB, free: 1.094 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.026e-06/0.6215, allocations: 0 / 0.5428 GB, free: 1.094 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001791/0.6217, allocations: 95.88 kB / 0.5429 GB, free: 1 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.464e-06/0.6217, allocations: 4 kB / 0.5429 GB, free: 0.9961 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001342/0.6219, allocations: 95.94 kB / 0.543 GB, free: 0.9023 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.438e-06/0.6219, allocations: 4 kB / 0.543 GB, free: 0.8984 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/0.6219, allocations: 3.953 kB / 0.543 GB, free: 0.8945 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001529/0.6234, allocations: 1.032 MB / 0.544 GB, free: 15.81 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004897/0.6239, allocations: 252.5 kB / 0.5443 GB, free: 15.55 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001661/0.6241, allocations: 20 kB / 0.5443 GB, free: 15.53 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003831/0.6245, allocations: 75.78 kB / 0.5444 GB, free: 15.45 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003182/0.6248, allocations: 156.4 kB / 0.5445 GB, free: 15.3 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005189/0.6254, allocations: 0.5618 MB / 0.5451 GB, free: 14.74 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0002499/0.6256, allocations: 250.8 kB / 0.5453 GB, free: 14.49 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.6256, allocations: 0 / 0.5453 GB, free: 14.49 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0006092/0.6262, allocations: 143.9 kB / 0.5454 GB, free: 14.35 MB / 426.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) * 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.001966/0.6282, allocations: 1.646 MB / 0.5471 GB, free: 12.64 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.00137/0.6296, allocations: 1.012 MB / 0.548 GB, free: 11.57 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.6296, allocations: 0 / 0.548 GB, free: 11.57 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008131/0.6304, allocations: 0.6758 MB / 0.5487 GB, free: 10.83 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001861/0.6323, allocations: 475 kB / 0.5492 GB, free: 10.39 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00204/0.6344, allocations: 1.013 MB / 0.5501 GB, free: 9.34 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004975/0.6349, allocations: 0.9026 MB / 0.551 GB, free: 8.41 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.002486/0.6374, allocations: 1.503 MB / 0.5525 GB, free: 6.922 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001504/0.6389, allocations: 0.6115 MB / 0.5531 GB, free: 6.309 MB / 426.7 MB Notification: Performance of SimCode: time 5.11e-07/0.6389, allocations: 0 / 0.5531 GB, free: 6.309 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04006/0.679, allocations: 22.02 MB / 0.5746 GB, free: 20 kB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.2719/0.9509, allocations: 156.4 kB / 0.5747 GB, free: 117.2 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.276/3.227, allocations: 0 / 0.5747 GB, free: 117.2 MB / 442.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Digital.Examples.Multiplexer.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Digital.Examples.Multiplexer.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Digital.Examples.Multiplexer.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.Multiplexer.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Digital.Examples.Multiplexer_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Digital_Examples_Multiplexer_fmu --startTime=0 --stopTime=250 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Digital_Examples_Multiplexer.fmu > Modelica_trunk_Modelica.Electrical.Digital.Examples.Multiplexer.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Digital.Examples.Multiplexer_res.mat does not exist to compare? outputFormat=mat