Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Digital.Examples.Multiplexer.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.Multiplexer,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_Multiplexer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.Multiplexer,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_Multiplexer",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001507/0.001507, allocations: 176.2 kB / 8.349 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.553/1.553, allocations: 221.5 MB / 230.3 MB, free: 7.52 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009223/0.0009222, allocations: 84.69 kB / 281.2 MB, free: 5.277 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.196e-05/2.189e-05, allocations: 4 kB / 337.1 MB, free: 9.941 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1045/0.1045, allocations: 50.42 MB / 387.6 MB, free: 7.477 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3745/0.479, allocations: 83.44 MB / 471 MB, free: 11.27 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003039/0.4794, allocations: 67.97 kB / 471.1 MB, free: 11.2 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1081/0.5875, allocations: 55.48 MB / 0.5142 GB, free: 3.82 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.625e-06/0.5876, allocations: 0 / 0.5142 GB, free: 3.82 MB / 394.7 MB Notification: Performance of Transformations before backend: time 4.403e-05/0.5877, allocations: 16 kB / 0.5142 GB, free: 3.805 MB / 394.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.001806/0.5895, allocations: 0.9776 MB / 0.5152 GB, free: 2.75 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.759e-05/0.5896, allocations: 11.97 kB / 0.5152 GB, free: 2.738 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002225/0.5898, allocations: 79.09 kB / 0.5153 GB, free: 2.66 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008866/0.5907, allocations: 465 kB / 0.5157 GB, free: 2.16 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.949e-05/0.5908, allocations: 20 kB / 0.5157 GB, free: 2.141 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001405/0.5909, allocations: 36 kB / 0.5158 GB, free: 2.105 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001316/0.5922, allocations: 0.5844 MB / 0.5163 GB, free: 1.523 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001363/0.5936, allocations: 0.7454 MB / 0.5171 GB, free: 0.7656 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.776e-05/0.5937, allocations: 0 / 0.5171 GB, free: 0.7656 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001015/0.5938, allocations: 7.938 kB / 0.5171 GB, free: 0.7578 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.547e-05/0.5938, allocations: 19.98 kB / 0.5171 GB, free: 0.7383 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002989/0.5968, allocations: 1.571 MB / 0.5186 GB, free: 15.13 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008051/0.5976, allocations: 0.5594 MB / 0.5192 GB, free: 14.55 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003662/0.598, allocations: 266.5 kB / 0.5194 GB, free: 14.29 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001204/0.5981, allocations: 8.547 kB / 0.5194 GB, free: 14.29 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007563/0.5989, allocations: 0.5327 MB / 0.5199 GB, free: 13.74 MB / 410.7 MB Notification: Performance of pre-optimization done (n=58): time 3.747e-06/0.5989, allocations: 0 / 0.5199 GB, free: 13.74 MB / 410.7 MB Notification: Performance of matching and sorting (n=58): time 0.001502/0.6004, allocations: 0.8186 MB / 0.5207 GB, free: 12.91 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001527/0.6006, allocations: 200.5 kB / 0.5209 GB, free: 12.67 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000504/0.6011, allocations: 345.9 kB / 0.5213 GB, free: 12.33 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001224/0.6012, allocations: 45.69 kB / 0.5213 GB, free: 12.28 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002084/0.6014, allocations: 228.9 kB / 0.5215 GB, free: 12.05 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001933/0.6016, allocations: 130.5 kB / 0.5217 GB, free: 11.92 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.063e-05/0.6017, allocations: 4 kB / 0.5217 GB, free: 11.92 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001745/0.6019, allocations: 354.8 kB / 0.522 GB, free: 11.56 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004318/0.6023, allocations: 273.5 kB / 0.5223 GB, free: 11.3 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004692/0.6028, allocations: 352.1 kB / 0.5226 GB, free: 10.93 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004818/0.6033, allocations: 299.6 kB / 0.5229 GB, free: 10.64 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.881e-06/0.6033, allocations: 4 kB / 0.5229 GB, free: 10.63 MB / 410.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001401/0.6047, allocations: 0.9144 MB / 0.5238 GB, free: 9.711 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001053/0.6049, allocations: 144.5 kB / 0.5239 GB, free: 9.539 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.498e-06/0.6049, allocations: 7.938 kB / 0.5239 GB, free: 9.531 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.176e-05/0.6049, allocations: 4 kB / 0.5239 GB, free: 9.527 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002961/0.6052, allocations: 107.8 kB / 0.524 GB, free: 9.422 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.037e-06/0.6052, allocations: 4 kB / 0.524 GB, free: 9.418 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005684/0.6058, allocations: 79.62 kB / 0.5241 GB, free: 9.34 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005644/0.6064, allocations: 0.558 MB / 0.5246 GB, free: 8.781 MB / 410.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.0003934/0.6068, allocations: 315.3 kB / 0.5249 GB, free: 8.438 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001234/0.608, allocations: 0.8227 MB / 0.5258 GB, free: 7.609 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000114/0.6081, allocations: 47.44 kB / 0.5258 GB, free: 7.562 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000139/0.6083, allocations: 49.08 kB / 0.5258 GB, free: 7.516 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.606e-06/0.6083, allocations: 11.98 kB / 0.5259 GB, free: 7.504 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.551e-06/0.6083, allocations: 0 / 0.5259 GB, free: 7.504 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.001e-06/0.6083, allocations: 0 / 0.5259 GB, free: 7.504 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008775/0.6092, allocations: 0.5803 MB / 0.5264 GB, free: 6.887 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.116e-06/0.6092, allocations: 0 / 0.5264 GB, free: 6.887 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002037/0.6094, allocations: 95.83 kB / 0.5265 GB, free: 6.793 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.817e-06/0.6094, allocations: 7.984 kB / 0.5265 GB, free: 6.785 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001214/0.6096, allocations: 83.95 kB / 0.5266 GB, free: 6.703 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.375e-06/0.6096, allocations: 0 / 0.5266 GB, free: 6.703 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.749e-06/0.6096, allocations: 3.984 kB / 0.5266 GB, free: 6.699 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001223/0.6108, allocations: 0.8715 MB / 0.5275 GB, free: 5.809 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004448/0.6113, allocations: 252.5 kB / 0.5277 GB, free: 5.543 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001739/0.6115, allocations: 16 kB / 0.5277 GB, free: 5.527 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003841/0.6119, allocations: 59.7 kB / 0.5278 GB, free: 5.469 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003429/0.6122, allocations: 156.4 kB / 0.5279 GB, free: 5.312 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005996/0.6128, allocations: 0.5696 MB / 0.5285 GB, free: 4.742 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0002706/0.6131, allocations: 232.6 kB / 0.5287 GB, free: 4.52 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.71e-07/0.6131, allocations: 0 / 0.5287 GB, free: 4.52 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0008873/0.614, allocations: 120 kB / 0.5288 GB, free: 4.402 MB / 410.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.00179/0.6158, allocations: 1.475 MB / 0.5303 GB, free: 2.898 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001286/0.6171, allocations: 0.9725 MB / 0.5312 GB, free: 1.867 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.6171, allocations: 0 / 0.5312 GB, free: 1.867 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006985/0.6178, allocations: 0.6593 MB / 0.5318 GB, free: 1.148 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002036/0.6199, allocations: 469.5 kB / 0.5323 GB, free: 0.6992 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00208/0.6219, allocations: 0.9489 MB / 0.5332 GB, free: 15.71 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005456/0.6225, allocations: 0.9101 MB / 0.5341 GB, free: 14.77 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.002681/0.6252, allocations: 1.496 MB / 0.5356 GB, free: 13.27 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001593/0.6268, allocations: 0.6154 MB / 0.5362 GB, free: 12.65 MB / 426.7 MB Notification: Performance of SimCode: time 1.623e-06/0.6268, allocations: 0 / 0.5362 GB, free: 12.65 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.28/0.9068, allocations: 21.36 MB / 0.557 GB, free: 124.7 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001807/0.9071, allocations: 136.6 kB / 0.5572 GB, free: 124.5 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.209/3.116, allocations: 5.203 kB / 0.5572 GB, free: 124.5 MB / 426.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.Multiplexer.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.Multiplexer.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.Multiplexer.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.Multiplexer.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Digital.Examples.Multiplexer_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Digital_Examples_Multiplexer_fmu --startTime=0 --stopTime=250 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Digital_Examples_Multiplexer.fmu > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.Multiplexer.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Digital.Examples.Multiplexer_res.mat does not exist to compare? outputFormat=mat