Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_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_cpp_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_cpp_Modelica.Electrical.Digital.Examples.Multiplexer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001005/0.001005, allocations: 203.3 kB / 18.07 MB, free: 3.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.295/1.295, allocations: 226.5 MB / 245.4 MB, free: 8.203 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007231/0.0007232, allocations: 106.9 kB / 297.4 MB, free: 6.895 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0001916/0.0001917, allocations: 8 kB / 357.4 MB, free: 10.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1899/0.1901, allocations: 51.29 MB / 408.7 MB, free: 27.72 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09573/0.2858, allocations: 84.92 MB / 493.6 MB, free: 6.691 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002468/0.2861, allocations: 67.97 kB / 493.6 MB, free: 6.625 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2746/0.5608, allocations: 55.56 MB / 0.5363 GB, free: 76.87 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.5608, allocations: 4 kB / 0.5363 GB, free: 76.86 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.941e-05/0.5609, allocations: 12 kB / 0.5363 GB, free: 76.85 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.001333/0.5622, allocations: 1.023 MB / 0.5373 GB, free: 75.74 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.311e-05/0.5622, allocations: 12.03 kB / 0.5374 GB, free: 75.73 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001835/0.5624, allocations: 80.08 kB / 0.5374 GB, free: 75.65 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005573/0.563, allocations: 479.4 kB / 0.5379 GB, free: 75.14 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.661e-05/0.563, allocations: 45.69 kB / 0.5379 GB, free: 75.1 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001244/0.5632, allocations: 64.38 kB / 0.538 GB, free: 75.04 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001197/0.5644, allocations: 0.8383 MB / 0.5388 GB, free: 74.19 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.468e-05/0.5644, allocations: 192 / 0.5388 GB, free: 74.19 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001042/0.5645, allocations: 27.94 kB / 0.5388 GB, free: 74.16 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.846e-06/0.5645, allocations: 12 kB / 0.5389 GB, free: 74.15 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009987/0.5655, allocations: 0.6571 MB / 0.5395 GB, free: 73.5 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002211/0.5678, allocations: 1.686 MB / 0.5411 GB, free: 71.75 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008959/0.5687, allocations: 0.6098 MB / 0.5417 GB, free: 71.13 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004504/0.5691, allocations: 310.3 kB / 0.542 GB, free: 70.83 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000124/0.5693, allocations: 8.562 kB / 0.542 GB, free: 70.82 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006983/0.57, allocations: 0.5689 MB / 0.5426 GB, free: 70.24 MB / 378.7 MB Notification: Performance of pre-optimization done (n=58): time 2.945e-06/0.57, allocations: 0 / 0.5426 GB, free: 70.24 MB / 378.7 MB Notification: Performance of matching and sorting (n=58): time 0.001912/0.5719, allocations: 1.307 MB / 0.5439 GB, free: 68.89 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.328e-05/0.572, allocations: 200.5 kB / 0.5441 GB, free: 68.66 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003458/0.5723, allocations: 405.2 kB / 0.5444 GB, free: 68.25 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.774e-05/0.5724, allocations: 53.64 kB / 0.5445 GB, free: 68.19 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.827e-05/0.5725, allocations: 232.9 kB / 0.5447 GB, free: 67.96 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001369/0.5727, allocations: 130.5 kB / 0.5448 GB, free: 67.83 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.764e-05/0.5728, allocations: 23.98 kB / 0.5449 GB, free: 67.81 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.165e-05/0.5728, allocations: 358.7 kB / 0.5452 GB, free: 67.45 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004883/0.5733, allocations: 305.1 kB / 0.5455 GB, free: 67.15 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000507/0.5738, allocations: 392.4 kB / 0.5459 GB, free: 66.75 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001128/0.575, allocations: 0.9565 MB / 0.5468 GB, free: 65.71 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/0.575, allocations: 0 / 0.5468 GB, free: 65.71 MB / 378.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001514/0.5765, allocations: 1.146 MB / 0.5479 GB, free: 64.53 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.975e-05/0.5766, allocations: 144.5 kB / 0.5481 GB, free: 64.36 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.593e-06/0.5766, allocations: 4 kB / 0.5481 GB, free: 64.35 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.71e-05/0.5766, allocations: 4 kB / 0.5481 GB, free: 64.35 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002029/0.5768, allocations: 107.8 kB / 0.5482 GB, free: 64.24 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.037e-06/0.5768, allocations: 7.938 kB / 0.5482 GB, free: 64.23 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004288/0.5773, allocations: 87.62 kB / 0.5483 GB, free: 64.15 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003727/0.5777, allocations: 0.5617 MB / 0.5488 GB, free: 63.59 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.0004127/0.5781, allocations: 446.1 kB / 0.5492 GB, free: 63.11 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001264/0.5782, allocations: 47.44 kB / 0.5493 GB, free: 63.07 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.694e-05/0.5783, allocations: 60.77 kB / 0.5493 GB, free: 63.01 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.909e-06/0.5783, allocations: 4 kB / 0.5494 GB, free: 63 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.062e-06/0.5783, allocations: 3.984 kB / 0.5494 GB, free: 63 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.322e-06/0.5783, allocations: 7.922 kB / 0.5494 GB, free: 62.99 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006778/0.579, allocations: 0.6695 MB / 0.55 GB, free: 62.27 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.579, allocations: 0 / 0.55 GB, free: 62.27 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001526/0.5792, allocations: 95.88 kB / 0.5501 GB, free: 62.18 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.857e-06/0.5792, allocations: 4 kB / 0.5501 GB, free: 62.18 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001116/0.5793, allocations: 87.95 kB / 0.5502 GB, free: 62.09 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.066e-06/0.5793, allocations: 4 kB / 0.5502 GB, free: 62.09 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.5793, allocations: 0 / 0.5502 GB, free: 62.09 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001409/0.5807, allocations: 1.079 MB / 0.5513 GB, free: 60.96 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003215/0.5811, allocations: 252.5 kB / 0.5515 GB, free: 60.69 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001471/0.5812, allocations: 20 kB / 0.5515 GB, free: 60.67 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003116/0.5815, allocations: 75.7 kB / 0.5516 GB, free: 60.6 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002745/0.5818, allocations: 152.4 kB / 0.5517 GB, free: 60.45 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003939/0.5822, allocations: 0.5618 MB / 0.5523 GB, free: 59.89 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001924/0.5824, allocations: 259.2 kB / 0.5525 GB, free: 59.64 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.5824, allocations: 0 / 0.5525 GB, free: 59.64 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005079/0.583, allocations: 140 kB / 0.5527 GB, free: 59.5 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.0002122/0.5832, allocations: 170.1 kB / 0.5528 GB, free: 59.32 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001252/0.5844, allocations: 1.04 MB / 0.5538 GB, free: 58.22 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.5844, allocations: 0.5625 kB / 0.5538 GB, free: 58.22 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006576/0.5851, allocations: 0.6875 MB / 0.5545 GB, free: 57.47 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001555/0.5867, allocations: 499.3 kB / 0.555 GB, free: 57 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00158/0.5883, allocations: 1.308 MB / 0.5563 GB, free: 55.66 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002656/0.5885, allocations: 0.8869 MB / 0.5571 GB, free: 54.74 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00188/0.5904, allocations: 0.6774 MB / 0.5578 GB, free: 54.06 MB / 378.7 MB Notification: Performance of SimCode: time 3.51e-07/0.5904, allocations: 0 / 0.5578 GB, free: 54.06 MB / 378.7 MB Notification: Performance of Templates: time 0.01194/0.6024, allocations: 14.58 MB / 0.572 GB, free: 38.77 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.Multiplexer.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.Multiplexer.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.Multiplexer.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.Multiplexer.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.Multiplexer.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.Multiplexer --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.Multiplexer.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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_trunk_cpp_Modelica.Electrical.Digital.Examples.Multiplexer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches