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.001582/0.001581, allocations: 186.1 kB / 16.4 MB, free: 5.75 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.965/1.965, allocations: 205.4 MB / 222.5 MB, free: 9.121 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.001164/0.001164, allocations: 97.47 kB / 270.9 MB, free: 8.359 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000385/0.0003851, allocations: 8 kB / 327.1 MB, free: 108 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3322/0.3326, allocations: 47.56 MB / 374.6 MB, free: 45.32 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1351/0.4678, allocations: 83.28 MB / 457.9 MB, free: 13.36 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002973/0.4681, allocations: 71.91 kB / 458 MB, free: 13.29 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4619/0.9301, allocations: 54.87 MB / 0.5008 GB, free: 102.1 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.975e-06/0.9301, allocations: 1.062 kB / 0.5008 GB, free: 102.1 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.786e-05/0.9302, allocations: 16.06 kB / 0.5008 GB, free: 102.1 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.002551/0.9328, allocations: 1.021 MB / 0.5018 GB, free: 101.5 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.71e-05/0.9329, allocations: 8.219 kB / 0.5018 GB, free: 101.5 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004521/0.9333, allocations: 111.7 kB / 0.5019 GB, free: 101.5 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00035/0.9337, allocations: 76.59 kB / 0.502 GB, free: 101.4 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001314/0.935, allocations: 468.9 kB / 0.5025 GB, free: 101.2 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.864e-05/0.9351, allocations: 47.62 kB / 0.5025 GB, free: 101.2 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002928/0.9354, allocations: 56.16 kB / 0.5026 GB, free: 101.2 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00259/0.938, allocations: 0.8379 MB / 0.5034 GB, free: 101.1 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.27e-05/0.9381, allocations: 0 / 0.5034 GB, free: 101.1 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001991/0.9383, allocations: 26.09 kB / 0.5034 GB, free: 101.1 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.87e-05/0.9384, allocations: 15.67 kB / 0.5034 GB, free: 101.1 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002275/0.9407, allocations: 0.6512 MB / 0.5041 GB, free: 101.1 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005014/0.9457, allocations: 1.693 MB / 0.5057 GB, free: 100.8 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002004/0.9478, allocations: 0.603 MB / 0.5063 GB, free: 100.8 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003327/0.9482, allocations: 4.5 kB / 0.5063 GB, free: 100.8 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001501/0.9497, allocations: 0.5764 MB / 0.5069 GB, free: 100.7 MB / 378.7 MB Notification: Performance of pre-optimization done (n=58): time 5.1e-06/0.9498, allocations: 7.781 kB / 0.5069 GB, free: 100.7 MB / 378.7 MB Notification: Performance of matching and sorting (n=58): time 0.004267/0.954, allocations: 1.313 MB / 0.5082 GB, free: 100.5 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.781e-05/0.9542, allocations: 193 kB / 0.5083 GB, free: 100.3 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006684/0.9549, allocations: 371 kB / 0.5087 GB, free: 100.2 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002954/0.9552, allocations: 45.83 kB / 0.5087 GB, free: 100.1 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002136/0.9554, allocations: 284.9 kB / 0.509 GB, free: 99.88 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000309/0.9558, allocations: 129.7 kB / 0.5091 GB, free: 99.8 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001936/0.956, allocations: 11.06 kB / 0.5091 GB, free: 99.79 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.123e-05/0.9561, allocations: 340.7 kB / 0.5095 GB, free: 99.46 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001047/0.9571, allocations: 306.8 kB / 0.5098 GB, free: 99.39 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001127/0.9583, allocations: 391.7 kB / 0.5101 GB, free: 99.25 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001248/0.9596, allocations: 484.6 kB / 0.5106 GB, free: 98.98 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.766e-06/0.9596, allocations: 0 / 0.5106 GB, free: 98.98 MB / 378.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.003256/0.9629, allocations: 1.126 MB / 0.5117 GB, free: 98.57 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001103/0.9631, allocations: 142.6 kB / 0.5118 GB, free: 98.41 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.425e-05/0.9631, allocations: 3.562 kB / 0.5118 GB, free: 98.41 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.64e-05/0.9631, allocations: 10.7 kB / 0.5118 GB, free: 98.41 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004307/0.9636, allocations: 106.6 kB / 0.512 GB, free: 98.41 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.528e-05/0.9636, allocations: 3.094 kB / 0.512 GB, free: 98.41 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009488/0.9646, allocations: 84.56 kB / 0.512 GB, free: 98.39 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000717/0.9653, allocations: 0.5698 MB / 0.5126 GB, free: 98.34 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.000971/0.9663, allocations: 440.1 kB / 0.513 GB, free: 98 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002818/0.9666, allocations: 46.81 kB / 0.5131 GB, free: 97.97 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001768/0.9668, allocations: 57.09 kB / 0.5131 GB, free: 97.94 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.095e-05/0.9668, allocations: 14.48 kB / 0.5131 GB, free: 97.93 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.25e-05/0.9668, allocations: 3.875 kB / 0.5131 GB, free: 97.93 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.001e-05/0.9669, allocations: 6 kB / 0.5131 GB, free: 97.93 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001403/0.9683, allocations: 0.6636 MB / 0.5138 GB, free: 97.59 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.151e-06/0.9683, allocations: 0 / 0.5138 GB, free: 97.59 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002963/0.9686, allocations: 99.06 kB / 0.5139 GB, free: 97.58 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.618e-06/0.9686, allocations: 0 / 0.5139 GB, free: 97.58 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002061/0.9689, allocations: 90.92 kB / 0.514 GB, free: 97.57 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.903e-06/0.9689, allocations: 3.906 kB / 0.514 GB, free: 97.57 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.055e-06/0.9689, allocations: 3.953 kB / 0.514 GB, free: 97.57 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003373/0.9723, allocations: 1.075 MB / 0.515 GB, free: 97.1 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007626/0.9731, allocations: 261.2 kB / 0.5153 GB, free: 96.92 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003054/0.9734, allocations: 23.81 kB / 0.5153 GB, free: 96.91 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007103/0.9741, allocations: 65.61 kB / 0.5154 GB, free: 96.89 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005602/0.9747, allocations: 151.9 kB / 0.5155 GB, free: 96.83 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006673/0.9754, allocations: 0.5596 MB / 0.516 GB, free: 96.77 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004347/0.9759, allocations: 262.5 kB / 0.5163 GB, free: 96.61 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.9759, allocations: 0 / 0.5163 GB, free: 96.61 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001116/0.977, allocations: 141.7 kB / 0.5164 GB, free: 96.59 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.003873/0.9809, allocations: 1.678 MB / 0.5181 GB, free: 95.21 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002612/0.9836, allocations: 1.043 MB / 0.5191 GB, free: 94.12 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 9.478e-06/0.9836, allocations: 0.5625 kB / 0.5191 GB, free: 94.12 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001449/0.9851, allocations: 0.695 MB / 0.5198 GB, free: 93.38 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003373/0.9885, allocations: 480.1 kB / 0.5202 GB, free: 92.91 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009053/0.9976, allocations: 4.26 MB / 0.5244 GB, free: 88.59 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005195/0.9982, allocations: 0.9025 MB / 0.5253 GB, free: 87.66 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003398/1.002, allocations: 0.818 MB / 0.5261 GB, free: 86.84 MB / 378.7 MB Notification: Performance of SimCode: time 1.744e-06/1.002, allocations: 0 / 0.5261 GB, free: 86.84 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.788/3.79, allocations: 16.89 MB / 0.5426 GB, free: 69.39 MB / 378.7 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