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: translateModel(Modelica.Electrical.Digital.Examples.Multiplexer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|FF.RS1.TD1.x|FF.RS2.TD1.x",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Digital.Examples.Multiplexer") translateModel(Modelica.Electrical.Digital.Examples.Multiplexer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|FF.RS1.TD1.x|FF.RS2.TD1.x",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Digital.Examples.Multiplexer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001515/0.001515, allocations: 176.3 kB / 17.4 MB, free: 4.418 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.566/1.566, allocations: 223.3 MB / 241.4 MB, free: 11.72 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009231/0.0009231, allocations: 101.9 kB / 292.6 MB, free: 10.78 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003454/0.0003454, allocations: 11.94 kB / 352.3 MB, free: 15.02 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3391/0.3394, allocations: 50.39 MB / 402.7 MB, free: 32.46 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1159/0.4554, allocations: 84.21 MB / 486.9 MB, free: 12.13 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001971/0.4556, allocations: 77.05 kB / 487 MB, free: 12.06 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3182/0.7738, allocations: 55.51 MB / 0.5298 GB, free: 85.34 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.226e-06/0.7739, allocations: 0 / 0.5298 GB, free: 85.34 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.378e-05/0.774, allocations: 20 kB / 0.5298 GB, free: 85.32 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.001981/0.7759, allocations: 1.015 MB / 0.5308 GB, free: 84.28 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.491e-05/0.776, allocations: 12.03 kB / 0.5308 GB, free: 84.27 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003447/0.7764, allocations: 79.84 kB / 0.5309 GB, free: 84.2 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008143/0.7772, allocations: 485.4 kB / 0.5314 GB, free: 83.7 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.348e-05/0.7772, allocations: 45.69 kB / 0.5314 GB, free: 83.66 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000185/0.7774, allocations: 60.38 kB / 0.5315 GB, free: 83.6 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001433/0.7789, allocations: 0.8461 MB / 0.5323 GB, free: 82.74 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.847e-05/0.7789, allocations: 192 / 0.5323 GB, free: 82.74 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001056/0.779, allocations: 27.94 kB / 0.5323 GB, free: 82.71 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.401e-05/0.779, allocations: 19.84 kB / 0.5323 GB, free: 82.7 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001125/0.7802, allocations: 0.6493 MB / 0.533 GB, free: 82.05 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002606/0.7828, allocations: 1.688 MB / 0.5346 GB, free: 80.36 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009924/0.7838, allocations: 0.6087 MB / 0.5352 GB, free: 79.75 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000503/0.7843, allocations: 306.4 kB / 0.5355 GB, free: 79.45 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.598e-05/0.7844, allocations: 4.562 kB / 0.5355 GB, free: 79.44 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007667/0.7852, allocations: 0.5727 MB / 0.5361 GB, free: 78.86 MB / 378.7 MB Notification: Performance of pre-optimization done (n=58): time 3.297e-06/0.7852, allocations: 0 / 0.5361 GB, free: 78.86 MB / 378.7 MB Notification: Performance of matching and sorting (n=58): time 0.001957/0.7872, allocations: 1.307 MB / 0.5374 GB, free: 77.52 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.333e-05/0.7873, allocations: 192.5 kB / 0.5375 GB, free: 77.29 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004382/0.7877, allocations: 409.2 kB / 0.5379 GB, free: 76.88 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001029/0.7878, allocations: 53.69 kB / 0.538 GB, free: 76.82 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001349/0.788, allocations: 228.5 kB / 0.5382 GB, free: 76.61 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001597/0.7881, allocations: 140.7 kB / 0.5383 GB, free: 76.48 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.611e-05/0.7882, allocations: 16 kB / 0.5383 GB, free: 76.47 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.877e-05/0.7883, allocations: 358.7 kB / 0.5387 GB, free: 76.11 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005072/0.7888, allocations: 313.1 kB / 0.539 GB, free: 75.8 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005148/0.7894, allocations: 388.4 kB / 0.5394 GB, free: 75.4 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001105/0.7905, allocations: 0.9475 MB / 0.5403 GB, free: 74.38 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.39e-06/0.7905, allocations: 3.938 kB / 0.5403 GB, free: 74.38 MB / 378.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001615/0.7921, allocations: 1.146 MB / 0.5414 GB, free: 73.2 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.186e-05/0.7922, allocations: 152.6 kB / 0.5416 GB, free: 73.02 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.626e-06/0.7922, allocations: 0 / 0.5416 GB, free: 73.02 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.116e-05/0.7922, allocations: 4 kB / 0.5416 GB, free: 73.02 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002113/0.7925, allocations: 107.6 kB / 0.5417 GB, free: 72.92 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.251e-05/0.7925, allocations: 11.83 kB / 0.5417 GB, free: 72.91 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005263/0.793, allocations: 79.61 kB / 0.5417 GB, free: 72.84 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004425/0.7935, allocations: 0.5617 MB / 0.5423 GB, free: 72.28 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.0006214/0.7941, allocations: 449.8 kB / 0.5427 GB, free: 71.81 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001485/0.7942, allocations: 47.53 kB / 0.5428 GB, free: 71.76 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001007/0.7944, allocations: 52.77 kB / 0.5428 GB, free: 71.71 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.463e-06/0.7944, allocations: 11.98 kB / 0.5428 GB, free: 71.7 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.917e-06/0.7944, allocations: 3.984 kB / 0.5428 GB, free: 71.7 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.031e-06/0.7944, allocations: 0 / 0.5428 GB, free: 71.7 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008548/0.7953, allocations: 0.6675 MB / 0.5435 GB, free: 70.99 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.563e-06/0.7953, allocations: 0 / 0.5435 GB, free: 70.99 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001573/0.7954, allocations: 99.78 kB / 0.5436 GB, free: 70.9 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.161e-06/0.7954, allocations: 4 kB / 0.5436 GB, free: 70.89 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001066/0.7956, allocations: 83.95 kB / 0.5437 GB, free: 70.81 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.539e-06/0.7956, allocations: 4 kB / 0.5437 GB, free: 70.81 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/0.7956, allocations: 0 / 0.5437 GB, free: 70.81 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00153/0.7971, allocations: 1.087 MB / 0.5447 GB, free: 69.68 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004331/0.7976, allocations: 252.5 kB / 0.545 GB, free: 69.41 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001785/0.7977, allocations: 20 kB / 0.545 GB, free: 69.39 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003897/0.7981, allocations: 71.7 kB / 0.5451 GB, free: 69.32 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003314/0.7985, allocations: 160.4 kB / 0.5452 GB, free: 69.17 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000539/0.799, allocations: 0.5651 MB / 0.5458 GB, free: 68.61 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002677/0.7993, allocations: 251.2 kB / 0.546 GB, free: 68.36 MB / 378.7 MB Notification: Performance of sort global known variables: time 1e-07/0.7993, allocations: 0 / 0.546 GB, free: 68.36 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0009257/0.8003, allocations: 144 kB / 0.5461 GB, free: 68.22 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.0003602/0.8006, allocations: 168.8 kB / 0.5463 GB, free: 68.05 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001555/0.8022, allocations: 1.044 MB / 0.5473 GB, free: 66.96 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.8022, allocations: 0 / 0.5473 GB, free: 66.96 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008006/0.803, allocations: 0.6956 MB / 0.548 GB, free: 66.21 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001956/0.805, allocations: 493.5 kB / 0.5485 GB, free: 65.75 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002005/0.807, allocations: 1.244 MB / 0.5497 GB, free: 64.47 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003909/0.8074, allocations: 0.8908 MB / 0.5506 GB, free: 63.55 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.002577/0.81, allocations: 1.496 MB / 0.552 GB, free: 62.05 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001467/0.8115, allocations: 490.2 kB / 0.5525 GB, free: 61.57 MB / 378.7 MB Notification: Performance of SimCode: time 1.783e-06/0.8115, allocations: 0 / 0.5525 GB, free: 61.57 MB / 378.7 MB Notification: Performance of Templates: time 0.02338/0.8349, allocations: 17.93 MB / 0.57 GB, free: 43.33 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.Multiplexer.makefile (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 & ./Modelica_4.0.0_Modelica.Electrical.Digital.Examples.Multiplexer -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.Multiplexer.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Digital.Examples.Multiplexer_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/Multiplexer/Multiplexer.csv","../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.Multiplexer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches