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.001023/0.001023, allocations: 198.9 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.196/1.196, allocations: 227.2 MB / 245 MB, free: 7.613 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000918/0.0009179, allocations: 105 kB / 297.3 MB, free: 6.18 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002226/0.0002226, allocations: 4 kB / 358 MB, free: 9.445 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1937/0.1939, allocations: 51.48 MB / 409.5 MB, free: 26.72 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08986/0.2838, allocations: 84.99 MB / 494.5 MB, free: 5.617 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001962/0.2841, allocations: 71.95 kB / 494.5 MB, free: 5.547 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2322/0.5163, allocations: 55.56 MB / 0.5372 GB, free: 75.09 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.064e-06/0.5164, allocations: 0 / 0.5372 GB, free: 75.09 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.394e-05/0.5164, allocations: 12 kB / 0.5372 GB, free: 75.08 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.001108/0.5175, allocations: 1.038 MB / 0.5382 GB, free: 73.96 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.681e-05/0.5175, allocations: 12.03 kB / 0.5382 GB, free: 73.95 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000146/0.5177, allocations: 106.4 kB / 0.5383 GB, free: 73.84 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001552/0.5179, allocations: 83.11 kB / 0.5384 GB, free: 73.76 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007573/0.5186, allocations: 462.5 kB / 0.5389 GB, free: 73.27 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.448e-05/0.5187, allocations: 45.31 kB / 0.5389 GB, free: 73.22 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001197/0.5188, allocations: 60 kB / 0.539 GB, free: 73.16 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001181/0.52, allocations: 0.8416 MB / 0.5398 GB, free: 72.31 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.351e-05/0.52, allocations: 0 / 0.5398 GB, free: 72.31 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001026/0.5201, allocations: 24 kB / 0.5398 GB, free: 72.29 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.819e-06/0.5201, allocations: 12 kB / 0.5398 GB, free: 72.28 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009784/0.5211, allocations: 0.657 MB / 0.5405 GB, free: 71.62 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002189/0.5233, allocations: 1.689 MB / 0.5421 GB, free: 69.87 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000881/0.5242, allocations: 0.6084 MB / 0.5427 GB, free: 69.26 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.534e-05/0.5243, allocations: 4.562 kB / 0.5427 GB, free: 69.25 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00068/0.525, allocations: 0.5688 MB / 0.5433 GB, free: 68.67 MB / 378.7 MB Notification: Performance of pre-optimization done (n=58): time 1.884e-06/0.525, allocations: 0 / 0.5433 GB, free: 68.67 MB / 378.7 MB Notification: Performance of matching and sorting (n=58): time 0.00181/0.5268, allocations: 1.315 MB / 0.5446 GB, free: 67.32 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.543e-05/0.5269, allocations: 192.5 kB / 0.5447 GB, free: 67.09 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002644/0.5271, allocations: 372.3 kB / 0.5451 GB, free: 66.72 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.762e-05/0.5273, allocations: 57.69 kB / 0.5451 GB, free: 66.66 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.444e-05/0.5274, allocations: 228.9 kB / 0.5454 GB, free: 66.43 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000132/0.5275, allocations: 138.4 kB / 0.5455 GB, free: 66.29 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.023e-05/0.5276, allocations: 12 kB / 0.5455 GB, free: 66.28 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.134e-05/0.5276, allocations: 354.8 kB / 0.5458 GB, free: 65.92 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005151/0.5282, allocations: 313.1 kB / 0.5461 GB, free: 65.62 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005006/0.5287, allocations: 388.3 kB / 0.5465 GB, free: 65.22 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005307/0.5292, allocations: 474.4 kB / 0.547 GB, free: 64.73 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.915e-06/0.5292, allocations: 0 / 0.547 GB, free: 64.73 MB / 378.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.00141/0.5306, allocations: 1.142 MB / 0.5481 GB, free: 63.55 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.523e-05/0.5307, allocations: 144.4 kB / 0.5482 GB, free: 63.38 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.121e-06/0.5307, allocations: 8.062 kB / 0.5482 GB, free: 63.37 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.573e-05/0.5307, allocations: 4 kB / 0.5482 GB, free: 63.36 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000193/0.5309, allocations: 107.9 kB / 0.5483 GB, free: 63.26 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.747e-06/0.531, allocations: 12.09 kB / 0.5483 GB, free: 63.25 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004013/0.5314, allocations: 83.62 kB / 0.5484 GB, free: 63.16 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003556/0.5317, allocations: 0.5656 MB / 0.549 GB, free: 62.6 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.0004242/0.5322, allocations: 442.1 kB / 0.5494 GB, free: 62.13 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001074/0.5323, allocations: 51.39 kB / 0.5495 GB, free: 62.08 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.484e-05/0.5323, allocations: 52.77 kB / 0.5495 GB, free: 62.03 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.26e-06/0.5324, allocations: 8 kB / 0.5495 GB, free: 62.02 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.67e-06/0.5324, allocations: 4 kB / 0.5495 GB, free: 62.02 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.911e-06/0.5324, allocations: 3.984 kB / 0.5495 GB, free: 62.01 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006484/0.533, allocations: 0.6656 MB / 0.5502 GB, free: 61.29 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.533, allocations: 0 / 0.5502 GB, free: 61.29 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001423/0.5332, allocations: 95.88 kB / 0.5503 GB, free: 61.2 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.848e-06/0.5332, allocations: 7.891 kB / 0.5503 GB, free: 61.19 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001122/0.5333, allocations: 95.95 kB / 0.5504 GB, free: 61.1 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.094e-06/0.5333, allocations: 0 / 0.5504 GB, free: 61.1 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.5333, allocations: 0 / 0.5504 GB, free: 61.1 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001332/0.5347, allocations: 1.079 MB / 0.5514 GB, free: 59.97 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004792/0.5352, allocations: 256.5 kB / 0.5517 GB, free: 59.7 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001416/0.5353, allocations: 27.95 kB / 0.5517 GB, free: 59.67 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000321/0.5356, allocations: 67.8 kB / 0.5517 GB, free: 59.61 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002579/0.5359, allocations: 156.4 kB / 0.5519 GB, free: 59.45 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003639/0.5363, allocations: 0.5618 MB / 0.5524 GB, free: 58.89 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001748/0.5365, allocations: 255.2 kB / 0.5527 GB, free: 58.64 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5365, allocations: 0 / 0.5527 GB, free: 58.64 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004891/0.537, allocations: 140 kB / 0.5528 GB, free: 58.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: 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.001595/0.5386, allocations: 1.684 MB / 0.5545 GB, free: 56.77 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001159/0.5397, allocations: 1.051 MB / 0.5555 GB, free: 55.66 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.5397, allocations: 4 kB / 0.5555 GB, free: 55.66 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006246/0.5404, allocations: 0.6836 MB / 0.5562 GB, free: 54.91 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001418/0.5418, allocations: 487.4 kB / 0.5566 GB, free: 54.45 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004112/0.5459, allocations: 4.201 MB / 0.5607 GB, free: 50.16 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002611/0.5462, allocations: 0.9025 MB / 0.5616 GB, free: 49.23 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.00198/0.5482, allocations: 1.504 MB / 0.5631 GB, free: 47.72 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001295/0.5495, allocations: 0.6115 MB / 0.5637 GB, free: 47.11 MB / 378.7 MB Notification: Performance of SimCode: time 4.01e-07/0.5495, allocations: 4 kB / 0.5637 GB, free: 47.11 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02701/0.5765, allocations: 21.97 MB / 0.5851 GB, free: 24.83 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001269/0.5767, allocations: 177.2 kB / 0.5853 GB, free: 24.59 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.09/2.667, allocations: 0 / 0.5853 GB, free: 24.59 MB / 378.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