Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_Modelica_Electrical_Digital_Examples_Multiplexer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.Multiplexer,fileNamePrefix="Modelica_3_2_3_cpp_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.002163/0.002163, allocations: 177.8 kB / 8.36 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.65/2.65, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001167/0.001167, allocations: 91.38 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.009e-05/2.022e-05, allocations: 0 / 314.9 MB, free: 9.055 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3589/0.359, allocations: 47.55 MB / 362.4 MB, free: 45.71 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1432/0.5022, allocations: 82.53 MB / 444.9 MB, free: 3.684 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002956/0.5026, allocations: 77.12 kB / 445 MB, free: 3.609 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.195/0.6976, allocations: 54.85 MB / 499.9 MB, free: 12.91 MB / 395.1 MB Notification: Performance of FrontEnd: time 4.328e-06/0.6977, allocations: 8 kB / 499.9 MB, free: 12.91 MB / 395.1 MB Notification: Performance of Transformations before backend: time 5.442e-05/0.6978, allocations: 16 kB / 499.9 MB, free: 12.89 MB / 395.1 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.002458/0.7002, allocations: 0.972 MB / 0.4891 GB, free: 11.84 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.625e-05/0.7003, allocations: 12.03 kB / 0.4891 GB, free: 11.83 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000439/0.7008, allocations: 77.69 kB / 0.4892 GB, free: 11.75 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001547/0.7023, allocations: 465 kB / 0.4897 GB, free: 11.26 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.066e-05/0.7024, allocations: 23.95 kB / 0.4897 GB, free: 11.23 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002556/0.7027, allocations: 40 kB / 0.4897 GB, free: 11.2 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001849/0.7046, allocations: 0.5804 MB / 0.4903 GB, free: 10.61 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002056/0.7067, allocations: 0.7377 MB / 0.491 GB, free: 9.867 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.41e-05/0.7067, allocations: 0 / 0.491 GB, free: 9.867 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001609/0.7069, allocations: 8 kB / 0.491 GB, free: 9.859 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.966e-05/0.7069, allocations: 12 kB / 0.491 GB, free: 9.848 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005297/0.7122, allocations: 1.59 MB / 0.4926 GB, free: 8.219 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001381/0.7137, allocations: 0.5311 MB / 0.4931 GB, free: 7.672 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006871/0.7144, allocations: 266.5 kB / 0.4933 GB, free: 7.41 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002074/0.7146, allocations: 8.562 kB / 0.4934 GB, free: 7.402 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001225/0.7159, allocations: 0.5288 MB / 0.4939 GB, free: 6.859 MB / 395.1 MB Notification: Performance of pre-optimization done (n=58): time 4.358e-06/0.7159, allocations: 0 / 0.4939 GB, free: 6.859 MB / 395.1 MB Notification: Performance of matching and sorting (n=58): time 0.002374/0.7183, allocations: 0.8341 MB / 0.4947 GB, free: 6.016 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001504/0.7185, allocations: 196.5 kB / 0.4949 GB, free: 5.781 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006807/0.7192, allocations: 349.8 kB / 0.4952 GB, free: 5.441 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001849/0.7194, allocations: 41.7 kB / 0.4952 GB, free: 5.395 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002789/0.7197, allocations: 283.3 kB / 0.4955 GB, free: 5.113 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002888/0.72, allocations: 114.5 kB / 0.4956 GB, free: 5 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001378/0.7201, allocations: 8 kB / 0.4956 GB, free: 4.992 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001754/0.7203, allocations: 334.8 kB / 0.496 GB, free: 4.656 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000742/0.721, allocations: 281.5 kB / 0.4962 GB, free: 4.379 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007949/0.7219, allocations: 344.1 kB / 0.4966 GB, free: 4.023 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00087/0.7227, allocations: 304.1 kB / 0.4968 GB, free: 3.727 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.811e-06/0.7228, allocations: 0 / 0.4968 GB, free: 3.727 MB / 395.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.002456/0.7252, allocations: 0.893 MB / 0.4977 GB, free: 2.828 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001441/0.7254, allocations: 144.5 kB / 0.4979 GB, free: 2.656 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.877e-05/0.7255, allocations: 4 kB / 0.4979 GB, free: 2.652 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.874e-05/0.7255, allocations: 4 kB / 0.4979 GB, free: 2.648 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004191/0.7259, allocations: 109.8 kB / 0.498 GB, free: 2.543 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.746e-05/0.726, allocations: 11.95 kB / 0.498 GB, free: 2.531 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009016/0.7269, allocations: 67.64 kB / 0.498 GB, free: 2.465 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000848/0.7277, allocations: 0.5658 MB / 0.4986 GB, free: 1.898 MB / 395.1 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.0005778/0.7283, allocations: 309.4 kB / 0.4989 GB, free: 1.559 MB / 395.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002327/0.7307, allocations: 0.8264 MB / 0.4997 GB, free: 0.7266 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002107/0.7309, allocations: 51.44 kB / 0.4997 GB, free: 0.6758 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001814/0.7311, allocations: 49.03 kB / 0.4998 GB, free: 0.625 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.961e-05/0.7312, allocations: 11.98 kB / 0.4998 GB, free: 0.6133 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.588e-06/0.7312, allocations: 0 / 0.4998 GB, free: 0.6133 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.176e-05/0.7312, allocations: 7.922 kB / 0.4998 GB, free: 0.6055 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2973/1.029, allocations: 0.5692 MB / 0.5004 GB, free: 113.4 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.807e-05/1.029, allocations: 3.266 kB / 0.5004 GB, free: 113.4 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006986/1.029, allocations: 92.83 kB / 0.5005 GB, free: 113.4 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.989e-05/1.029, allocations: 2.5 kB / 0.5005 GB, free: 113.4 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004855/1.03, allocations: 87.3 kB / 0.5005 GB, free: 113.4 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-05/1.03, allocations: 3.453 kB / 0.5005 GB, free: 113.4 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.945e-06/1.03, allocations: 6.031 kB / 0.5006 GB, free: 113.4 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003544/1.033, allocations: 0.8643 MB / 0.5014 GB, free: 113.3 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00123/1.035, allocations: 259.8 kB / 0.5016 GB, free: 113.2 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004836/1.035, allocations: 17.94 kB / 0.5017 GB, free: 113.2 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001178/1.037, allocations: 56.94 kB / 0.5017 GB, free: 113.2 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007825/1.037, allocations: 154.7 kB / 0.5019 GB, free: 113.2 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001346/1.039, allocations: 0.5599 MB / 0.5024 GB, free: 113.2 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.0006086/1.039, allocations: 232.9 kB / 0.5026 GB, free: 113.1 MB / 395.1 MB Notification: Performance of sort global known variables: time 8.31e-07/1.039, allocations: 0 / 0.5026 GB, free: 113.1 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.001729/1.041, allocations: 122.2 kB / 0.5027 GB, free: 113.1 MB / 395.1 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.004293/1.046, allocations: 1.472 MB / 0.5042 GB, free: 112.5 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.003094/1.049, allocations: 0.964 MB / 0.5051 GB, free: 112.2 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 1.219e-05/1.049, allocations: 2.062 kB / 0.5051 GB, free: 112.2 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001826/1.051, allocations: 0.6604 MB / 0.5058 GB, free: 111.9 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004564/1.055, allocations: 468.9 kB / 0.5062 GB, free: 111.9 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004696/1.06, allocations: 1.013 MB / 0.5072 GB, free: 111.6 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008957/1.061, allocations: 0.9023 MB / 0.5081 GB, free: 110.9 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005176/1.066, allocations: 0.8207 MB / 0.5089 GB, free: 110.5 MB / 395.1 MB Notification: Performance of SimCode: time 1.793e-06/1.066, allocations: 0 / 0.5089 GB, free: 110.5 MB / 395.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.919/3.985, allocations: 16.91 MB / 0.5254 GB, free: 107.7 MB / 395.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.Multiplexer.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.Multiplexer.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.Multiplexer.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.Multiplexer.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.Multiplexer_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_Multiplexer_fmu --startTime=0 --stopTime=250 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_Multiplexer.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.Multiplexer.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.Multiplexer_res.mat does not exist to compare? outputFormat=mat