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.001022/0.001022, allocations: 175.5 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.327/1.327, allocations: 221.3 MB / 235.5 MB, free: 2.961 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.0007801/0.0007801, allocations: 100.9 kB / 286.5 MB, free: 224 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.641e-05/3.682e-05, allocations: 4 kB / 343.9 MB, free: 4.223 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1036/0.1036, allocations: 50.41 MB / 394.3 MB, free: 1.77 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3421/0.4457, allocations: 84.1 MB / 478.4 MB, free: 3.387 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001873/0.4459, allocations: 71.95 kB / 478.5 MB, free: 3.316 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1027/0.5487, allocations: 55.89 MB / 0.5219 GB, free: 11.52 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.114e-06/0.5487, allocations: 0 / 0.5219 GB, free: 11.52 MB / 410.7 MB Notification: Performance of Transformations before backend: time 3.19e-05/0.5488, allocations: 12 kB / 0.5219 GB, free: 11.5 MB / 410.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.001328/0.5501, allocations: 0.9737 MB / 0.5228 GB, free: 10.45 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.801e-05/0.5502, allocations: 15.95 kB / 0.5229 GB, free: 10.44 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001607/0.5503, allocations: 106.5 kB / 0.523 GB, free: 10.32 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001659/0.5505, allocations: 75.16 kB / 0.523 GB, free: 10.25 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007785/0.5513, allocations: 457 kB / 0.5235 GB, free: 9.758 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.915e-05/0.5513, allocations: 49.31 kB / 0.5235 GB, free: 9.711 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001548/0.5515, allocations: 56 kB / 0.5236 GB, free: 9.656 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00133/0.5528, allocations: 0.8221 MB / 0.5244 GB, free: 8.828 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.194e-05/0.5529, allocations: 3.953 kB / 0.5244 GB, free: 8.824 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001081/0.553, allocations: 24 kB / 0.5244 GB, free: 8.801 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.381e-05/0.553, allocations: 16 kB / 0.5244 GB, free: 8.785 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001024/0.554, allocations: 0.6104 MB / 0.525 GB, free: 8.172 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002846/0.5569, allocations: 1.69 MB / 0.5267 GB, free: 6.434 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001025/0.5579, allocations: 0.564 MB / 0.5272 GB, free: 5.855 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004854/0.5584, allocations: 282.5 kB / 0.5275 GB, free: 5.574 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001268/0.5586, allocations: 12.56 kB / 0.5275 GB, free: 5.562 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007544/0.5593, allocations: 0.5494 MB / 0.528 GB, free: 5.004 MB / 410.7 MB Notification: Performance of pre-optimization done (n=58): time 1.983e-06/0.5593, allocations: 0 / 0.528 GB, free: 5.004 MB / 410.7 MB Notification: Performance of matching and sorting (n=58): time 0.00157/0.5609, allocations: 0.991 MB / 0.529 GB, free: 3.973 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001088/0.561, allocations: 196.5 kB / 0.5292 GB, free: 3.738 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003781/0.5614, allocations: 367.1 kB / 0.5295 GB, free: 3.367 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001129/0.5615, allocations: 49.69 kB / 0.5296 GB, free: 3.312 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001568/0.5617, allocations: 232.9 kB / 0.5298 GB, free: 3.082 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001645/0.5619, allocations: 134.4 kB / 0.5299 GB, free: 2.949 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.534e-05/0.562, allocations: 20 kB / 0.5299 GB, free: 2.93 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001449/0.5621, allocations: 354.8 kB / 0.5303 GB, free: 2.574 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004962/0.5626, allocations: 285.5 kB / 0.5306 GB, free: 2.297 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00055/0.5632, allocations: 365.7 kB / 0.5309 GB, free: 1.918 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006265/0.5638, allocations: 457.5 kB / 0.5313 GB, free: 1.441 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.336e-06/0.5638, allocations: 0 / 0.5313 GB, free: 1.441 MB / 410.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001773/0.5656, allocations: 1.104 MB / 0.5324 GB, free: 308 kB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001178/0.5658, allocations: 148.4 kB / 0.5326 GB, free: 128 kB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.217e-06/0.5658, allocations: 4 kB / 0.5326 GB, free: 124 kB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.425e-05/0.5658, allocations: 7.984 kB / 0.5326 GB, free: 116 kB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002485/0.5661, allocations: 107.8 kB / 0.5327 GB, free: 8 kB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.176e-05/0.5661, allocations: 12.05 kB / 0.5327 GB, free: 15.99 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000505/0.5666, allocations: 87.58 kB / 0.5328 GB, free: 15.91 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005895/0.5672, allocations: 0.5658 MB / 0.5333 GB, free: 15.34 MB / 426.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.0004188/0.5676, allocations: 329.3 kB / 0.5336 GB, free: 14.98 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001191/0.5678, allocations: 47.44 kB / 0.5337 GB, free: 14.94 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.42e-05/0.5679, allocations: 56.77 kB / 0.5337 GB, free: 14.88 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.322e-06/0.5679, allocations: 4 kB / 0.5337 GB, free: 14.88 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.444e-06/0.5679, allocations: 0 / 0.5337 GB, free: 14.88 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.834e-06/0.5679, allocations: 3.984 kB / 0.5337 GB, free: 14.88 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008401/0.5687, allocations: 0.6657 MB / 0.5344 GB, free: 14.16 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.629e-06/0.5688, allocations: 3.984 kB / 0.5344 GB, free: 14.16 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001803/0.569, allocations: 99.83 kB / 0.5345 GB, free: 14.06 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.28e-06/0.569, allocations: 4 kB / 0.5345 GB, free: 14.05 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001341/0.5691, allocations: 95.94 kB / 0.5346 GB, free: 13.96 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.467e-06/0.5691, allocations: 4 kB / 0.5346 GB, free: 13.96 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-06/0.5691, allocations: 0 / 0.5346 GB, free: 13.96 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001505/0.5706, allocations: 1.036 MB / 0.5356 GB, free: 12.87 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005034/0.5711, allocations: 252.5 kB / 0.5358 GB, free: 12.61 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001515/0.5713, allocations: 23.98 kB / 0.5359 GB, free: 12.58 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003413/0.5717, allocations: 71.8 kB / 0.5359 GB, free: 12.51 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003066/0.572, allocations: 152.4 kB / 0.5361 GB, free: 12.36 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004994/0.5725, allocations: 0.5579 MB / 0.5366 GB, free: 11.8 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0002456/0.5727, allocations: 254.1 kB / 0.5369 GB, free: 11.55 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.6e-07/0.5727, allocations: 0 / 0.5369 GB, free: 11.55 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0005048/0.5732, allocations: 140 kB / 0.537 GB, free: 11.42 MB / 426.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.001964/0.5752, allocations: 1.657 MB / 0.5386 GB, free: 9.699 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001354/0.5766, allocations: 1.001 MB / 0.5396 GB, free: 8.637 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.185e-06/0.5766, allocations: 0 / 0.5396 GB, free: 8.637 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007693/0.5774, allocations: 0.6758 MB / 0.5403 GB, free: 7.898 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001842/0.5792, allocations: 484.9 kB / 0.5407 GB, free: 7.438 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001897/0.5811, allocations: 1.003 MB / 0.5417 GB, free: 6.395 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004814/0.5816, allocations: 0.9026 MB / 0.5426 GB, free: 5.465 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.002454/0.5841, allocations: 1.5 MB / 0.544 GB, free: 3.957 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001486/0.5856, allocations: 0.6076 MB / 0.5446 GB, free: 3.348 MB / 426.7 MB Notification: Performance of SimCode: time 9.72e-07/0.5856, allocations: 0 / 0.5446 GB, free: 3.348 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2444/0.83, allocations: 22 MB / 0.5661 GB, free: 118.8 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001254/0.8302, allocations: 163.8 kB / 0.5663 GB, free: 118.6 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.182/3.013, allocations: 0 / 0.5663 GB, free: 118.6 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