Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Digital.Examples.Multiplexer.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_Modelica.Electrical.Digital.Examples.Multiplexer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009652/0.0009652, allocations: 202.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.335/1.335, allocations: 225.6 MB / 234.8 MB, free: 3.258 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008107/0.0008108, allocations: 100.7 kB / 286.7 MB, free: 5.277 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.946e-05/1.949e-05, allocations: 4 kB / 343.7 MB, free: 8.297 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09176/0.0918, allocations: 51.47 MB / 395.2 MB, free: 4.781 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2993/0.3911, allocations: 84.24 MB / 479.4 MB, free: 8.844 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000158/0.3913, allocations: 78.22 kB / 479.5 MB, free: 8.809 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09829/0.4896, allocations: 55.54 MB / 0.5225 GB, free: 6.855 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.487e-06/0.4896, allocations: 3.984 kB / 0.5225 GB, free: 6.852 MB / 394.7 MB Notification: Performance of Transformations before backend: time 2.79e-05/0.4897, allocations: 19.94 kB / 0.5225 GB, free: 6.832 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.001291/0.491, allocations: 0.9679 MB / 0.5234 GB, free: 5.789 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.742e-05/0.491, allocations: 12.03 kB / 0.5235 GB, free: 5.777 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001897/0.4912, allocations: 79.16 kB / 0.5235 GB, free: 5.699 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006822/0.4919, allocations: 461 kB / 0.524 GB, free: 5.203 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.007e-05/0.4919, allocations: 23.95 kB / 0.524 GB, free: 5.18 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000129/0.4921, allocations: 40 kB / 0.524 GB, free: 5.141 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009334/0.493, allocations: 0.5804 MB / 0.5246 GB, free: 4.562 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001147/0.4942, allocations: 0.7397 MB / 0.5253 GB, free: 3.816 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.634e-05/0.4942, allocations: 4 kB / 0.5253 GB, free: 3.812 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001011/0.4943, allocations: 4 kB / 0.5253 GB, free: 3.809 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.148e-05/0.4943, allocations: 12 kB / 0.5253 GB, free: 3.797 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002564/0.4969, allocations: 1.59 MB / 0.5269 GB, free: 2.168 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000737/0.4976, allocations: 0.535 MB / 0.5274 GB, free: 1.621 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003629/0.498, allocations: 270.5 kB / 0.5277 GB, free: 1.355 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001332/0.4982, allocations: 8.562 kB / 0.5277 GB, free: 1.348 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006629/0.4988, allocations: 0.5249 MB / 0.5282 GB, free: 0.8086 MB / 394.7 MB Notification: Performance of pre-optimization done (n=58): time 2.004e-06/0.4988, allocations: 0 / 0.5282 GB, free: 0.8086 MB / 394.7 MB Notification: Performance of matching and sorting (n=58): time 0.001264/0.5001, allocations: 0.8342 MB / 0.529 GB, free: 15.96 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.236e-05/0.5002, allocations: 192.5 kB / 0.5292 GB, free: 15.73 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003308/0.5006, allocations: 345.9 kB / 0.5295 GB, free: 15.39 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001124/0.5007, allocations: 45.69 kB / 0.5296 GB, free: 15.34 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001508/0.5008, allocations: 236.8 kB / 0.5298 GB, free: 15.1 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001695/0.501, allocations: 122.5 kB / 0.5299 GB, free: 14.98 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.32e-05/0.5011, allocations: 4 kB / 0.5299 GB, free: 14.98 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001305/0.5012, allocations: 358.8 kB / 0.5303 GB, free: 14.62 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003894/0.5016, allocations: 273.5 kB / 0.5305 GB, free: 14.35 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004382/0.5021, allocations: 348.1 kB / 0.5309 GB, free: 13.99 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004375/0.5025, allocations: 306.7 kB / 0.5311 GB, free: 13.69 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.005e-06/0.5025, allocations: 0 / 0.5311 GB, free: 13.69 MB / 410.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.00131/0.5039, allocations: 0.914 MB / 0.532 GB, free: 12.78 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.371e-05/0.504, allocations: 144.5 kB / 0.5322 GB, free: 12.61 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.446e-06/0.504, allocations: 4 kB / 0.5322 GB, free: 12.6 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.591e-05/0.504, allocations: 4 kB / 0.5322 GB, free: 12.6 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002486/0.5042, allocations: 111.9 kB / 0.5323 GB, free: 12.49 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.957e-06/0.5043, allocations: 7.953 kB / 0.5323 GB, free: 12.48 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004463/0.5047, allocations: 71.69 kB / 0.5324 GB, free: 12.41 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004814/0.5052, allocations: 0.5619 MB / 0.5329 GB, free: 11.85 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.0003351/0.5056, allocations: 309.3 kB / 0.5332 GB, free: 11.51 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001185/0.5057, allocations: 47.44 kB / 0.5333 GB, free: 11.46 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.854e-05/0.5058, allocations: 49.06 kB / 0.5333 GB, free: 11.41 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.394e-06/0.5058, allocations: 8 kB / 0.5333 GB, free: 11.41 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.169e-06/0.5058, allocations: 0 / 0.5333 GB, free: 11.41 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.193e-06/0.5058, allocations: 3.953 kB / 0.5333 GB, free: 11.4 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007246/0.5065, allocations: 0.5765 MB / 0.5339 GB, free: 10.79 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.076e-06/0.5066, allocations: 4 kB / 0.5339 GB, free: 10.79 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001896/0.5067, allocations: 99.81 kB / 0.534 GB, free: 10.69 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.657e-06/0.5068, allocations: 0 / 0.534 GB, free: 10.69 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001182/0.5069, allocations: 89.64 kB / 0.5341 GB, free: 10.6 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.046e-06/0.5069, allocations: 3.438 kB / 0.5341 GB, free: 10.6 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.5069, allocations: 0 / 0.5341 GB, free: 10.6 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001265/0.5082, allocations: 0.8715 MB / 0.5349 GB, free: 9.711 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003695/0.5086, allocations: 256.5 kB / 0.5352 GB, free: 9.441 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000174/0.5087, allocations: 20 kB / 0.5352 GB, free: 9.422 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003418/0.5091, allocations: 55.8 kB / 0.5352 GB, free: 9.367 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002752/0.5094, allocations: 160.4 kB / 0.5354 GB, free: 9.211 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004643/0.5098, allocations: 0.5579 MB / 0.5359 GB, free: 8.652 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0002023/0.5101, allocations: 232.6 kB / 0.5361 GB, free: 8.43 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.21e-07/0.5101, allocations: 0 / 0.5361 GB, free: 8.43 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.000506/0.5106, allocations: 127.9 kB / 0.5363 GB, free: 8.305 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.0002827/0.5109, allocations: 170.1 kB / 0.5364 GB, free: 8.125 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001264/0.5121, allocations: 0.9685 MB / 0.5374 GB, free: 7.094 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.5122, allocations: 4 kB / 0.5374 GB, free: 7.09 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007002/0.5129, allocations: 0.6591 MB / 0.538 GB, free: 6.371 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001989/0.5149, allocations: 469.1 kB / 0.5385 GB, free: 5.938 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00137/0.5162, allocations: 0.8487 MB / 0.5393 GB, free: 5.062 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004818/0.5167, allocations: 0.9023 MB / 0.5402 GB, free: 4.129 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.002405/0.5191, allocations: 1.51 MB / 0.5417 GB, free: 2.645 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001322/0.5205, allocations: 482.3 kB / 0.5421 GB, free: 2.172 MB / 410.7 MB Notification: Performance of SimCode: time 4.01e-07/0.5205, allocations: 0 / 0.5421 GB, free: 2.172 MB / 410.7 MB Notification: Performance of Templates: time 0.02591/0.5464, allocations: 17.31 MB / 0.559 GB, free: 500 kB / 426.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Digital.Examples.Multiplexer.makefile (rm -f Modelica_trunk_Modelica.Electrical.Digital.Examples.Multiplexer.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Digital.Examples.Multiplexer.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Digital.Examples.Multiplexer.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.Multiplexer.sim & ./Modelica_trunk_Modelica.Electrical.Digital.Examples.Multiplexer -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Digital.Examples.Multiplexer.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Digital.Examples.Multiplexer_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/Multiplexer/Multiplexer.csv","../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.Multiplexer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches