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.0009479/0.0009479, allocations: 171.2 kB / 14.1 MB, free: 1.219 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.333/1.333, allocations: 205.2 MB / 219.8 MB, free: 14.21 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.0007758/0.0007759, allocations: 86.7 kB / 268 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.291e-05/3.293e-05, allocations: 4 kB / 322.5 MB, free: 17.27 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08205/0.0821, allocations: 47.58 MB / 370.1 MB, free: 1.621 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2888/0.3709, allocations: 83.17 MB / 453.3 MB, free: 10.11 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002047/0.3711, allocations: 66.16 kB / 453.4 MB, free: 10.08 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1049/0.4761, allocations: 55.26 MB / 0.4967 GB, free: 4.395 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.763e-06/0.4761, allocations: 0 / 0.4967 GB, free: 4.395 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.01e-05/0.4761, allocations: 16 kB / 0.4967 GB, free: 4.379 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.001314/0.4775, allocations: 0.9659 MB / 0.4976 GB, free: 3.332 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.439e-05/0.4775, allocations: 8.031 kB / 0.4977 GB, free: 3.324 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001646/0.4777, allocations: 102.5 kB / 0.4978 GB, free: 3.215 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001885/0.4779, allocations: 83.14 kB / 0.4978 GB, free: 3.133 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007507/0.4786, allocations: 472.9 kB / 0.4983 GB, free: 2.629 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.426e-05/0.4787, allocations: 45.31 kB / 0.4983 GB, free: 2.586 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000148/0.4789, allocations: 56 kB / 0.4984 GB, free: 2.531 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001332/0.4802, allocations: 0.8105 MB / 0.4992 GB, free: 1.711 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.418e-05/0.4802, allocations: 0 / 0.4992 GB, free: 1.711 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001103/0.4803, allocations: 28 kB / 0.4992 GB, free: 1.684 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.594e-05/0.4804, allocations: 19.94 kB / 0.4992 GB, free: 1.664 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00109/0.4815, allocations: 0.6103 MB / 0.4998 GB, free: 1.055 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002744/0.4842, allocations: 1.686 MB / 0.5015 GB, free: 15.32 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009349/0.4852, allocations: 0.5679 MB / 0.502 GB, free: 14.73 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004568/0.4856, allocations: 286.5 kB / 0.5023 GB, free: 14.45 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001292/0.4858, allocations: 8.562 kB / 0.5023 GB, free: 14.44 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007381/0.4865, allocations: 0.5533 MB / 0.5028 GB, free: 13.88 MB / 394.7 MB Notification: Performance of pre-optimization done (n=58): time 3.557e-06/0.4865, allocations: 0 / 0.5028 GB, free: 13.88 MB / 394.7 MB Notification: Performance of matching and sorting (n=58): time 0.001547/0.4881, allocations: 0.9909 MB / 0.5038 GB, free: 12.85 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001031/0.4882, allocations: 204.4 kB / 0.504 GB, free: 12.61 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003793/0.4886, allocations: 359.1 kB / 0.5043 GB, free: 12.24 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001009/0.4887, allocations: 49.7 kB / 0.5044 GB, free: 12.19 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001507/0.4888, allocations: 236.9 kB / 0.5046 GB, free: 11.95 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001599/0.489, allocations: 122.5 kB / 0.5047 GB, free: 11.83 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.185e-05/0.4891, allocations: 23.98 kB / 0.5048 GB, free: 11.81 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001425/0.4892, allocations: 354.8 kB / 0.5051 GB, free: 11.45 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004974/0.4898, allocations: 289.5 kB / 0.5054 GB, free: 11.17 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005487/0.4903, allocations: 361.7 kB / 0.5057 GB, free: 10.8 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006235/0.4909, allocations: 470.2 kB / 0.5062 GB, free: 10.31 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/0.491, allocations: 0 / 0.5062 GB, free: 10.31 MB / 394.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001637/0.4926, allocations: 1.095 MB / 0.5072 GB, free: 9.176 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001003/0.4927, allocations: 144.5 kB / 0.5074 GB, free: 9.004 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.898e-06/0.4927, allocations: 7.953 kB / 0.5074 GB, free: 8.996 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.604e-05/0.4927, allocations: 4 kB / 0.5074 GB, free: 8.992 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002438/0.493, allocations: 107.8 kB / 0.5075 GB, free: 8.887 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.144e-05/0.493, allocations: 4 kB / 0.5075 GB, free: 8.883 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004932/0.4935, allocations: 87.69 kB / 0.5076 GB, free: 8.797 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005057/0.494, allocations: 0.5658 MB / 0.5081 GB, free: 8.23 MB / 394.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.0003513/0.4944, allocations: 329.3 kB / 0.5084 GB, free: 7.871 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001159/0.4945, allocations: 51.44 kB / 0.5085 GB, free: 7.82 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.466e-05/0.4946, allocations: 56.75 kB / 0.5085 GB, free: 7.766 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.914e-06/0.4946, allocations: 7.953 kB / 0.5085 GB, free: 7.758 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.4946, allocations: 3.938 kB / 0.5086 GB, free: 7.754 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.831e-06/0.4947, allocations: 0 / 0.5086 GB, free: 7.754 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000834/0.4955, allocations: 0.6657 MB / 0.5092 GB, free: 7.039 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.395e-06/0.4955, allocations: 0 / 0.5092 GB, free: 7.039 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001746/0.4957, allocations: 91.88 kB / 0.5093 GB, free: 6.949 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.15e-06/0.4957, allocations: 8 kB / 0.5093 GB, free: 6.941 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001275/0.4958, allocations: 87.95 kB / 0.5094 GB, free: 6.855 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.549e-06/0.4958, allocations: 7.938 kB / 0.5094 GB, free: 6.848 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.4958, allocations: 3.953 kB / 0.5094 GB, free: 6.844 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00153/0.4974, allocations: 1.044 MB / 0.5104 GB, free: 5.75 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004628/0.4979, allocations: 252.5 kB / 0.5107 GB, free: 5.484 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001471/0.498, allocations: 24 kB / 0.5107 GB, free: 5.461 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003382/0.4984, allocations: 67.86 kB / 0.5107 GB, free: 5.395 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003176/0.4987, allocations: 164.3 kB / 0.5109 GB, free: 5.234 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005187/0.4992, allocations: 0.5579 MB / 0.5114 GB, free: 4.676 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.000244/0.4995, allocations: 250.1 kB / 0.5117 GB, free: 4.434 MB / 394.7 MB Notification: Performance of sort global known variables: time 3.4e-07/0.4995, allocations: 0 / 0.5117 GB, free: 4.434 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.000512/0.5, allocations: 140 kB / 0.5118 GB, free: 4.297 MB / 394.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.002049/0.502, allocations: 1.653 MB / 0.5134 GB, free: 2.582 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0014/0.5035, allocations: 1.009 MB / 0.5144 GB, free: 1.512 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.5035, allocations: 0 / 0.5144 GB, free: 1.512 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007672/0.5042, allocations: 0.6719 MB / 0.5151 GB, free: 0.7773 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001856/0.5061, allocations: 470.7 kB / 0.5155 GB, free: 324 kB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001878/0.508, allocations: 1.021 MB / 0.5165 GB, free: 15.25 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004952/0.5085, allocations: 0.9065 MB / 0.5174 GB, free: 14.32 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.002416/0.5109, allocations: 1.5 MB / 0.5189 GB, free: 12.81 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001453/0.5124, allocations: 0.6115 MB / 0.5195 GB, free: 12.2 MB / 410.7 MB Notification: Performance of SimCode: time 3.91e-07/0.5124, allocations: 4 kB / 0.5195 GB, free: 12.2 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2174/0.7298, allocations: 22.01 MB / 0.541 GB, free: 116.7 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001333/0.73, allocations: 154.8 kB / 0.5411 GB, free: 116.5 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.185/2.915, allocations: 0 / 0.5411 GB, free: 116.5 MB / 410.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