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.00175/0.00175, allocations: 202.1 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.801/1.801, allocations: 225.6 MB / 234.8 MB, free: 3.262 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008573/0.0008573, allocations: 99.42 kB / 286.7 MB, free: 5.262 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.438e-05/2.432e-05, allocations: 4 kB / 343.8 MB, free: 8.184 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1266/0.1266, allocations: 51.48 MB / 395.3 MB, free: 4.66 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3705/0.4972, allocations: 84.25 MB / 479.5 MB, free: 8.609 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002218/0.4975, allocations: 71.45 kB / 479.6 MB, free: 8.582 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1025/0.6, allocations: 55.54 MB / 0.5226 GB, free: 6.68 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.6001, allocations: 0 / 0.5226 GB, free: 6.68 MB / 394.7 MB Notification: Performance of Transformations before backend: time 4.653e-05/0.6001, allocations: 15.94 kB / 0.5226 GB, free: 6.664 MB / 394.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.002147/0.6023, allocations: 0.9784 MB / 0.5236 GB, free: 5.609 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.015e-05/0.6024, allocations: 12.03 kB / 0.5236 GB, free: 5.598 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003995/0.6028, allocations: 75.16 kB / 0.5236 GB, free: 5.523 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009602/0.6037, allocations: 461 kB / 0.5241 GB, free: 5.027 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.368e-05/0.6038, allocations: 27.89 kB / 0.5241 GB, free: 5 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002009/0.604, allocations: 36 kB / 0.5241 GB, free: 4.965 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001159/0.6052, allocations: 0.5765 MB / 0.5247 GB, free: 4.391 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001283/0.6065, allocations: 0.7415 MB / 0.5254 GB, free: 3.641 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.693e-05/0.6065, allocations: 0 / 0.5254 GB, free: 3.641 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001054/0.6066, allocations: 8 kB / 0.5254 GB, free: 3.633 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.368e-05/0.6066, allocations: 12 kB / 0.5254 GB, free: 3.621 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002998/0.6096, allocations: 1.586 MB / 0.527 GB, free: 1.996 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007684/0.6104, allocations: 0.535 MB / 0.5275 GB, free: 1.449 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003711/0.6108, allocations: 270.4 kB / 0.5278 GB, free: 1.184 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001253/0.6109, allocations: 8.562 kB / 0.5278 GB, free: 1.176 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007308/0.6117, allocations: 0.5306 MB / 0.5283 GB, free: 0.6328 MB / 394.7 MB Notification: Performance of pre-optimization done (n=58): time 3.446e-06/0.6117, allocations: 0 / 0.5283 GB, free: 0.6328 MB / 394.7 MB Notification: Performance of matching and sorting (n=58): time 0.001436/0.6131, allocations: 0.8302 MB / 0.5291 GB, free: 15.79 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001186/0.6133, allocations: 192.5 kB / 0.5293 GB, free: 15.56 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005081/0.6138, allocations: 349.9 kB / 0.5296 GB, free: 15.22 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001155/0.6139, allocations: 41.7 kB / 0.5297 GB, free: 15.17 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002043/0.6141, allocations: 236.8 kB / 0.5299 GB, free: 14.93 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001892/0.6143, allocations: 126.5 kB / 0.53 GB, free: 14.81 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.263e-05/0.6144, allocations: 4 kB / 0.53 GB, free: 14.8 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001629/0.6146, allocations: 354.8 kB / 0.5304 GB, free: 14.45 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004334/0.615, allocations: 273.5 kB / 0.5306 GB, free: 14.18 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004802/0.6155, allocations: 352.1 kB / 0.531 GB, free: 13.82 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004961/0.616, allocations: 294.1 kB / 0.5312 GB, free: 13.53 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.258e-06/0.616, allocations: 3.938 kB / 0.5312 GB, free: 13.53 MB / 410.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001473/0.6175, allocations: 0.9197 MB / 0.5321 GB, free: 12.6 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001041/0.6176, allocations: 140.5 kB / 0.5323 GB, free: 12.43 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.252e-05/0.6177, allocations: 8.062 kB / 0.5323 GB, free: 12.43 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.366e-05/0.6177, allocations: 4 kB / 0.5323 GB, free: 12.42 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002876/0.618, allocations: 111.8 kB / 0.5324 GB, free: 12.31 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.601e-05/0.618, allocations: 9.828 kB / 0.5324 GB, free: 12.3 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006053/0.6186, allocations: 71.7 kB / 0.5325 GB, free: 12.23 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005583/0.6192, allocations: 0.5619 MB / 0.533 GB, free: 11.67 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.0004576/0.6197, allocations: 309.3 kB / 0.5333 GB, free: 11.33 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001341/0.621, allocations: 0.8186 MB / 0.5341 GB, free: 10.51 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001398/0.6212, allocations: 55.36 kB / 0.5342 GB, free: 10.45 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001402/0.6213, allocations: 53.03 kB / 0.5342 GB, free: 10.4 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.153e-06/0.6213, allocations: 8 kB / 0.5342 GB, free: 10.39 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.386e-06/0.6213, allocations: 0 / 0.5342 GB, free: 10.39 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.187e-06/0.6214, allocations: 3.984 kB / 0.5342 GB, free: 10.39 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001025/0.6224, allocations: 0.5765 MB / 0.5348 GB, free: 9.773 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.4e-06/0.6224, allocations: 3.984 kB / 0.5348 GB, free: 9.77 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002048/0.6226, allocations: 91.89 kB / 0.5349 GB, free: 9.68 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.055e-06/0.6226, allocations: 4 kB / 0.5349 GB, free: 9.676 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001274/0.6228, allocations: 87.94 kB / 0.535 GB, free: 9.59 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.069e-06/0.6228, allocations: 4 kB / 0.535 GB, free: 9.586 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.09e-06/0.6228, allocations: 6.453 kB / 0.535 GB, free: 9.582 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001277/0.6241, allocations: 0.8638 MB / 0.5358 GB, free: 8.699 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004764/0.6246, allocations: 256.5 kB / 0.5361 GB, free: 8.43 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001957/0.6248, allocations: 16 kB / 0.5361 GB, free: 8.414 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004222/0.6252, allocations: 57.67 kB / 0.5361 GB, free: 8.359 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003166/0.6255, allocations: 152.4 kB / 0.5363 GB, free: 8.211 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005201/0.6261, allocations: 0.5696 MB / 0.5368 GB, free: 7.641 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0002515/0.6263, allocations: 232.6 kB / 0.5371 GB, free: 7.418 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.6263, allocations: 0 / 0.5371 GB, free: 7.418 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0007387/0.6271, allocations: 127.9 kB / 0.5372 GB, free: 7.293 MB / 410.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.001805/0.6289, allocations: 1.466 MB / 0.5386 GB, free: 5.793 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001277/0.6302, allocations: 0.9684 MB / 0.5396 GB, free: 4.766 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.6302, allocations: 0 / 0.5396 GB, free: 4.766 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007117/0.6309, allocations: 0.6669 MB / 0.5402 GB, free: 4.035 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002138/0.6331, allocations: 471.2 kB / 0.5407 GB, free: 3.602 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00224/0.6353, allocations: 0.9479 MB / 0.5416 GB, free: 2.617 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005225/0.6358, allocations: 0.8984 MB / 0.5425 GB, free: 1.688 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.002546/0.6384, allocations: 1.502 MB / 0.5439 GB, free: 212 kB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001544/0.64, allocations: 0.6155 MB / 0.5445 GB, free: 15.59 MB / 426.7 MB Notification: Performance of SimCode: time 6.91e-07/0.64, allocations: 4 kB / 0.5445 GB, free: 15.58 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05092/0.6909, allocations: 21.36 MB / 0.5654 GB, free: 9.84 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000185/0.6911, allocations: 135.3 kB / 0.5655 GB, free: 9.648 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.328/3.019, allocations: 3.938 kB / 0.5655 GB, free: 9.645 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