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.001573/0.001572, allocations: 181.2 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.102/2.102, allocations: 205.2 MB / 219.4 MB, free: 14.28 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.001068/0.001068, allocations: 90.64 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.042e-05/3.045e-05, allocations: 4 kB / 321.6 MB, free: 17.76 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09802/0.09807, allocations: 47.57 MB / 369.2 MB, free: 2.117 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4132/0.5113, allocations: 83.18 MB / 452.4 MB, free: 9.621 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002482/0.5116, allocations: 68.12 kB / 452.4 MB, free: 9.59 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1937/0.7054, allocations: 55.24 MB / 0.4958 GB, free: 4.629 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.525e-06/0.7055, allocations: 0 / 0.4958 GB, free: 4.629 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.248e-05/0.7055, allocations: 16 kB / 0.4958 GB, free: 4.613 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.002389/0.7079, allocations: 0.9698 MB / 0.4967 GB, free: 3.562 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.418e-05/0.708, allocations: 8.031 kB / 0.4967 GB, free: 3.555 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003792/0.7084, allocations: 106.5 kB / 0.4968 GB, free: 3.441 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003193/0.7087, allocations: 75.16 kB / 0.4969 GB, free: 3.367 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001393/0.7101, allocations: 472.9 kB / 0.4974 GB, free: 2.863 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.159e-05/0.7103, allocations: 45.31 kB / 0.4974 GB, free: 2.82 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002768/0.7105, allocations: 56 kB / 0.4975 GB, free: 2.766 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002395/0.713, allocations: 0.8183 MB / 0.4983 GB, free: 1.938 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.456e-05/0.713, allocations: 0 / 0.4983 GB, free: 1.938 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001739/0.7132, allocations: 31.94 kB / 0.4983 GB, free: 1.906 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.361e-05/0.7133, allocations: 19.98 kB / 0.4983 GB, free: 1.887 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002102/0.7154, allocations: 0.6142 MB / 0.4989 GB, free: 1.273 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005726/0.7211, allocations: 1.678 MB / 0.5005 GB, free: 15.54 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001725/0.7229, allocations: 0.564 MB / 0.5011 GB, free: 14.96 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000897/0.7239, allocations: 290.4 kB / 0.5014 GB, free: 14.68 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002469/0.7241, allocations: 4.562 kB / 0.5014 GB, free: 14.67 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001423/0.7256, allocations: 0.5533 MB / 0.5019 GB, free: 14.11 MB / 394.7 MB Notification: Performance of pre-optimization done (n=58): time 4.749e-06/0.7256, allocations: 0 / 0.5019 GB, free: 14.11 MB / 394.7 MB Notification: Performance of matching and sorting (n=58): time 0.002857/0.7285, allocations: 0.9948 MB / 0.5029 GB, free: 13.07 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001536/0.7287, allocations: 200.4 kB / 0.5031 GB, free: 12.84 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007794/0.7295, allocations: 363.1 kB / 0.5034 GB, free: 12.47 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002262/0.7297, allocations: 45.7 kB / 0.5035 GB, free: 12.42 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002765/0.73, allocations: 287.3 kB / 0.5037 GB, free: 12.14 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003035/0.7303, allocations: 126.5 kB / 0.5039 GB, free: 12.01 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001588/0.7305, allocations: 16 kB / 0.5039 GB, free: 12 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001715/0.7307, allocations: 334.8 kB / 0.5042 GB, free: 11.66 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009211/0.7316, allocations: 289.5 kB / 0.5045 GB, free: 11.38 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009939/0.7326, allocations: 373.6 kB / 0.5048 GB, free: 10.99 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00114/0.7338, allocations: 456.6 kB / 0.5053 GB, free: 10.52 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.488e-06/0.7338, allocations: 4 kB / 0.5053 GB, free: 10.51 MB / 394.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.002979/0.7368, allocations: 1.074 MB / 0.5063 GB, free: 9.402 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001512/0.737, allocations: 144.5 kB / 0.5065 GB, free: 9.23 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.389e-05/0.737, allocations: 3.953 kB / 0.5065 GB, free: 9.227 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.694e-05/0.7371, allocations: 4 kB / 0.5065 GB, free: 9.223 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004669/0.7376, allocations: 107.8 kB / 0.5066 GB, free: 9.117 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.298e-05/0.7376, allocations: 12.2 kB / 0.5066 GB, free: 9.105 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009277/0.7385, allocations: 95.56 kB / 0.5067 GB, free: 9.012 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008754/0.7394, allocations: 0.558 MB / 0.5072 GB, free: 8.453 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.0006126/0.7401, allocations: 337.3 kB / 0.5075 GB, free: 8.086 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002604/0.7403, allocations: 47.44 kB / 0.5076 GB, free: 8.039 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001856/0.7405, allocations: 52.77 kB / 0.5076 GB, free: 7.988 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.123e-05/0.7406, allocations: 7.953 kB / 0.5076 GB, free: 7.98 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.114e-05/0.7406, allocations: 4 kB / 0.5076 GB, free: 7.977 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.141e-05/0.7406, allocations: 7.922 kB / 0.5077 GB, free: 7.969 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001556/0.7422, allocations: 0.654 MB / 0.5083 GB, free: 7.266 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.52e-06/0.7422, allocations: 0 / 0.5083 GB, free: 7.266 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003283/0.7425, allocations: 103.9 kB / 0.5084 GB, free: 7.164 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.01e-05/0.7426, allocations: 0 / 0.5084 GB, free: 7.164 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002295/0.7428, allocations: 95.88 kB / 0.5085 GB, free: 7.07 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.336e-06/0.7428, allocations: 4 kB / 0.5085 GB, free: 7.066 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.9e-06/0.7428, allocations: 3.953 kB / 0.5085 GB, free: 7.062 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002721/0.7456, allocations: 1.036 MB / 0.5095 GB, free: 5.977 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007896/0.7464, allocations: 252.5 kB / 0.5097 GB, free: 5.711 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002735/0.7467, allocations: 31.98 kB / 0.5098 GB, free: 5.68 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006623/0.7474, allocations: 67.78 kB / 0.5098 GB, free: 5.613 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005225/0.7479, allocations: 160.4 kB / 0.51 GB, free: 5.457 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008317/0.7487, allocations: 0.5618 MB / 0.5105 GB, free: 4.895 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0004617/0.7492, allocations: 246.1 kB / 0.5108 GB, free: 4.656 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.2e-07/0.7492, allocations: 0 / 0.5108 GB, free: 4.656 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001006/0.7503, allocations: 144 kB / 0.5109 GB, free: 4.516 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.003397/0.7537, allocations: 1.653 MB / 0.5125 GB, free: 2.801 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002495/0.7562, allocations: 0.9973 MB / 0.5135 GB, free: 1.742 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 6.282e-06/0.7563, allocations: 0.5625 kB / 0.5135 GB, free: 1.742 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001429/0.7577, allocations: 0.6758 MB / 0.5142 GB, free: 1 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003502/0.7612, allocations: 470.3 kB / 0.5146 GB, free: 0.5391 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003619/0.7649, allocations: 1.082 MB / 0.5157 GB, free: 15.41 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000784/0.7658, allocations: 0.9103 MB / 0.5166 GB, free: 14.47 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003549/0.7693, allocations: 0.8102 MB / 0.5173 GB, free: 13.66 MB / 410.7 MB Notification: Performance of SimCode: time 1.372e-06/0.7694, allocations: 3.938 kB / 0.5174 GB, free: 13.66 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.133/3.902, allocations: 16.97 MB / 0.5339 GB, free: 116.7 MB / 410.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