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.001015/0.001015, allocations: 177 kB / 8.7 MB, free: 384 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.547/1.547, allocations: 205.3 MB / 214.4 MB, free: 1.672 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008188/0.0008187, allocations: 86.36 kB / 262.4 MB, free: 1.613 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.389e-05/2.38e-05, allocations: 4 kB / 315.6 MB, free: 22.62 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08533/0.08538, allocations: 47.59 MB / 363.2 MB, free: 6.973 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3001/0.3856, allocations: 82.76 MB / 445.9 MB, free: 12.61 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001671/0.3858, allocations: 74.83 kB / 446 MB, free: 12.57 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09871/0.4845, allocations: 54.85 MB / 0.4891 GB, free: 11.98 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.482e-06/0.4845, allocations: 0 / 0.4891 GB, free: 11.98 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.129e-05/0.4846, allocations: 16 kB / 0.4891 GB, free: 11.97 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.001356/0.4859, allocations: 0.9698 MB / 0.4901 GB, free: 10.92 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.224e-05/0.486, allocations: 8.031 kB / 0.4901 GB, free: 10.91 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002055/0.4862, allocations: 75.16 kB / 0.4902 GB, free: 10.84 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007279/0.4869, allocations: 465 kB / 0.4906 GB, free: 10.34 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.827e-05/0.487, allocations: 23.95 kB / 0.4906 GB, free: 10.32 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001339/0.4871, allocations: 43.98 kB / 0.4907 GB, free: 10.27 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009173/0.4881, allocations: 0.5726 MB / 0.4912 GB, free: 9.699 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00118/0.4893, allocations: 0.7416 MB / 0.4919 GB, free: 8.949 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.416e-05/0.4893, allocations: 0 / 0.4919 GB, free: 8.949 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.969e-05/0.4894, allocations: 4 kB / 0.4919 GB, free: 8.945 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.32e-05/0.4894, allocations: 16 kB / 0.492 GB, free: 8.93 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002529/0.4919, allocations: 1.59 MB / 0.4935 GB, free: 7.301 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006945/0.4927, allocations: 0.535 MB / 0.494 GB, free: 6.75 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003689/0.493, allocations: 266.5 kB / 0.4943 GB, free: 6.484 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001318/0.4932, allocations: 8.562 kB / 0.4943 GB, free: 6.477 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006536/0.4938, allocations: 0.5327 MB / 0.4948 GB, free: 5.93 MB / 378.7 MB Notification: Performance of pre-optimization done (n=58): time 3.196e-06/0.4938, allocations: 0 / 0.4948 GB, free: 5.93 MB / 378.7 MB Notification: Performance of matching and sorting (n=58): time 0.001241/0.4951, allocations: 0.8263 MB / 0.4956 GB, free: 5.094 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.251e-05/0.4952, allocations: 200.4 kB / 0.4958 GB, free: 4.855 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003522/0.4956, allocations: 345.9 kB / 0.4961 GB, free: 4.52 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001079/0.4957, allocations: 41.7 kB / 0.4962 GB, free: 4.473 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000147/0.4958, allocations: 236.9 kB / 0.4964 GB, free: 4.234 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001715/0.496, allocations: 122.5 kB / 0.4965 GB, free: 4.113 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.066e-05/0.4961, allocations: 4 kB / 0.4965 GB, free: 4.109 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000127/0.4962, allocations: 358.8 kB / 0.4969 GB, free: 3.75 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003849/0.4966, allocations: 273.4 kB / 0.4971 GB, free: 3.48 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004998/0.4971, allocations: 348.1 kB / 0.4975 GB, free: 3.121 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004357/0.4976, allocations: 311.5 kB / 0.4978 GB, free: 2.816 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.835e-06/0.4976, allocations: 0 / 0.4978 GB, free: 2.816 MB / 378.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001271/0.4989, allocations: 0.9079 MB / 0.4987 GB, free: 1.902 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.911e-05/0.499, allocations: 148.5 kB / 0.4988 GB, free: 1.727 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.663e-06/0.499, allocations: 0 / 0.4988 GB, free: 1.727 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.7e-05/0.499, allocations: 4 kB / 0.4988 GB, free: 1.723 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00024/0.4992, allocations: 107.8 kB / 0.4989 GB, free: 1.617 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.957e-06/0.4993, allocations: 12.02 kB / 0.4989 GB, free: 1.605 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004714/0.4997, allocations: 75.62 kB / 0.499 GB, free: 1.531 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004729/0.5002, allocations: 0.5658 MB / 0.4995 GB, free: 0.9648 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 () * 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.0003464/0.5006, allocations: 313.3 kB / 0.4998 GB, free: 0.6211 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001147/0.5017, allocations: 0.8224 MB / 0.5006 GB, free: 15.79 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000116/0.5019, allocations: 51.44 kB / 0.5007 GB, free: 15.74 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001193/0.502, allocations: 53.02 kB / 0.5007 GB, free: 15.69 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.773e-06/0.502, allocations: 4 kB / 0.5007 GB, free: 15.68 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.502, allocations: 3.938 kB / 0.5007 GB, free: 15.68 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.791e-06/0.502, allocations: 4 kB / 0.5007 GB, free: 15.68 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008307/0.5029, allocations: 0.5765 MB / 0.5013 GB, free: 15.06 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.465e-06/0.5029, allocations: 0 / 0.5013 GB, free: 15.06 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001915/0.5031, allocations: 99.88 kB / 0.5014 GB, free: 14.96 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.531e-06/0.5031, allocations: 0 / 0.5014 GB, free: 14.96 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001173/0.5032, allocations: 83.95 kB / 0.5015 GB, free: 14.88 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.697e-06/0.5032, allocations: 4 kB / 0.5015 GB, free: 14.88 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.887e-06/0.5032, allocations: 3.953 kB / 0.5015 GB, free: 14.88 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001202/0.5044, allocations: 0.8715 MB / 0.5023 GB, free: 13.98 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004216/0.5049, allocations: 252.5 kB / 0.5026 GB, free: 13.72 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002012/0.5051, allocations: 20 kB / 0.5026 GB, free: 13.7 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000351/0.5054, allocations: 51.86 kB / 0.5027 GB, free: 13.65 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002811/0.5057, allocations: 160.3 kB / 0.5028 GB, free: 13.49 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004965/0.5062, allocations: 0.5618 MB / 0.5034 GB, free: 12.93 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0002454/0.5065, allocations: 232.6 kB / 0.5036 GB, free: 12.7 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.5065, allocations: 0 / 0.5036 GB, free: 12.7 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.000673/0.5072, allocations: 124 kB / 0.5037 GB, free: 12.58 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.001688/0.5089, allocations: 1.47 MB / 0.5051 GB, free: 11.08 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001301/0.5102, allocations: 0.9686 MB / 0.5061 GB, free: 10.05 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.5102, allocations: 0 / 0.5061 GB, free: 10.05 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008045/0.511, allocations: 0.6552 MB / 0.5067 GB, free: 9.336 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002105/0.5131, allocations: 475.7 kB / 0.5072 GB, free: 8.875 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002061/0.5152, allocations: 0.9644 MB / 0.5081 GB, free: 7.867 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004948/0.5157, allocations: 0.9023 MB / 0.509 GB, free: 6.938 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.002559/0.5183, allocations: 1.5 MB / 0.5105 GB, free: 5.434 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001505/0.5198, allocations: 0.6076 MB / 0.5111 GB, free: 4.824 MB / 394.7 MB Notification: Performance of SimCode: time 9.42e-07/0.5198, allocations: 0 / 0.5111 GB, free: 4.824 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2264/0.7462, allocations: 21.37 MB / 0.5319 GB, free: 123.4 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002593/0.7465, allocations: 134.2 kB / 0.532 GB, free: 123.2 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.185/2.931, allocations: 0 / 0.532 GB, free: 123.2 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