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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001429/0.001429, allocations: 182.9 kB / 8.138 MB, free: 2.219 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.156/1.156, allocations: 221.4 MB / 229.9 MB, free: 3.016 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.0008787/0.0008787, allocations: 100.1 kB / 280.8 MB, free: 1.25 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.785e-06/8.185e-06, allocations: 0 / 336.5 MB, free: 9.504 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1787/0.1787, allocations: 50.39 MB / 386.9 MB, free: 37.99 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08564/0.2644, allocations: 83.37 MB / 470.3 MB, free: 3.43 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001919/0.2646, allocations: 80.98 kB / 470.4 MB, free: 3.352 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.2261/0.4907, allocations: 54.77 MB / 0.5128 GB, free: 96.8 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.033e-05/0.4908, allocations: 15.62 kB / 0.5128 GB, free: 96.79 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.001264/0.4921, allocations: 0.9641 MB / 0.5138 GB, free: 95.87 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.075e-05/0.4921, allocations: 8.031 kB / 0.5138 GB, free: 95.86 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002226/0.4923, allocations: 79.69 kB / 0.5139 GB, free: 95.79 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006777/0.493, allocations: 476.3 kB / 0.5143 GB, free: 95.3 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.375e-05/0.4931, allocations: 20 kB / 0.5143 GB, free: 95.29 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001489/0.4932, allocations: 40 kB / 0.5144 GB, free: 95.25 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009593/0.4942, allocations: 0.5883 MB / 0.5149 GB, free: 94.66 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001075/0.4953, allocations: 0.75 MB / 0.5157 GB, free: 93.9 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.625e-05/0.4953, allocations: 0 / 0.5157 GB, free: 93.9 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00011/0.4954, allocations: 4 kB / 0.5157 GB, free: 93.9 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.104e-05/0.4954, allocations: 12.56 kB / 0.5157 GB, free: 93.89 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002472/0.4979, allocations: 1.604 MB / 0.5173 GB, free: 92.3 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000708/0.4986, allocations: 0.5108 MB / 0.5178 GB, free: 91.78 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003565/0.499, allocations: 278.1 kB / 0.518 GB, free: 91.5 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001413/0.4991, allocations: 5.156 kB / 0.518 GB, free: 91.5 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005891/0.4997, allocations: 0.529 MB / 0.5185 GB, free: 90.96 MB / 378.7 MB Notification: Performance of pre-optimization done (n=58): time 3.015e-06/0.4998, allocations: 0 / 0.5185 GB, free: 90.96 MB / 378.7 MB Notification: Performance of matching and sorting (n=58): time 0.001209/0.501, allocations: 0.7615 MB / 0.5193 GB, free: 90.19 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.76e-05/0.501, allocations: 204.4 kB / 0.5195 GB, free: 89.95 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002882/0.5013, allocations: 349.5 kB / 0.5198 GB, free: 89.61 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001025/0.5014, allocations: 37.7 kB / 0.5199 GB, free: 89.56 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.041e-05/0.5015, allocations: 197.5 kB / 0.52 GB, free: 89.38 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001519/0.5017, allocations: 130 kB / 0.5202 GB, free: 89.26 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.401e-05/0.5018, allocations: 4 kB / 0.5202 GB, free: 89.26 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.413e-05/0.5018, allocations: 358.8 kB / 0.5205 GB, free: 88.9 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003957/0.5023, allocations: 277.2 kB / 0.5208 GB, free: 88.63 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004134/0.5027, allocations: 351.1 kB / 0.5211 GB, free: 88.27 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004596/0.5031, allocations: 311.5 kB / 0.5214 GB, free: 87.96 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.357e-06/0.5031, allocations: 0 / 0.5214 GB, free: 87.96 MB / 378.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.00126/0.5044, allocations: 0.8748 MB / 0.5223 GB, free: 87.09 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.281e-05/0.5044, allocations: 7.125 kB / 0.5223 GB, free: 87.09 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.272e-06/0.5044, allocations: 3.938 kB / 0.5223 GB, free: 87.09 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.584e-05/0.5045, allocations: 8 kB / 0.5223 GB, free: 87.08 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002387/0.5047, allocations: 103.6 kB / 0.5224 GB, free: 86.98 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.885e-06/0.5047, allocations: 5.406 kB / 0.5224 GB, free: 86.98 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004784/0.5052, allocations: 75.62 kB / 0.5225 GB, free: 86.91 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000376/0.5056, allocations: 0.5615 MB / 0.523 GB, free: 86.35 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 () * 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.0003001/0.5059, allocations: 311.8 kB / 0.5233 GB, free: 86.02 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001228/0.506, allocations: 51.44 kB / 0.5233 GB, free: 85.97 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.142e-05/0.5061, allocations: 45.77 kB / 0.5234 GB, free: 85.93 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.51e-06/0.5061, allocations: 8 kB / 0.5234 GB, free: 85.92 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.5061, allocations: 0 / 0.5234 GB, free: 85.92 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.523e-06/0.5062, allocations: 3.984 kB / 0.5234 GB, free: 85.91 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006746/0.5068, allocations: 0.5783 MB / 0.524 GB, free: 85.31 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.5068, allocations: 0 / 0.524 GB, free: 85.31 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000185/0.507, allocations: 99.62 kB / 0.5241 GB, free: 85.22 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.179e-06/0.5071, allocations: 0 / 0.5241 GB, free: 85.22 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001529/0.5072, allocations: 96.59 kB / 0.5242 GB, free: 85.13 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.855e-06/0.5072, allocations: 4 kB / 0.5242 GB, free: 85.12 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.5072, allocations: 0 / 0.5242 GB, free: 85.12 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001154/0.5084, allocations: 0.8102 MB / 0.525 GB, free: 84.29 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003749/0.5088, allocations: 256.5 kB / 0.5252 GB, free: 84.02 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002195/0.509, allocations: 20 kB / 0.5252 GB, free: 84 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003694/0.5094, allocations: 63.7 kB / 0.5253 GB, free: 83.95 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002924/0.5097, allocations: 152.2 kB / 0.5254 GB, free: 83.8 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003878/0.5101, allocations: 0.5618 MB / 0.526 GB, free: 83.23 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0001704/0.5102, allocations: 236.6 kB / 0.5262 GB, free: 83 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005483/0.5108, allocations: 124.2 kB / 0.5263 GB, free: 82.88 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) * 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.0002341/0.511, allocations: 160.7 kB / 0.5265 GB, free: 82.73 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001016/0.5121, allocations: 0.8421 MB / 0.5273 GB, free: 81.86 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.513e-06/0.5121, allocations: 0 / 0.5273 GB, free: 81.86 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005792/0.5127, allocations: 0.5408 MB / 0.5278 GB, free: 81.3 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001654/0.5143, allocations: 458.8 kB / 0.5283 GB, free: 80.87 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001829/0.5162, allocations: 0.8808 MB / 0.5291 GB, free: 79.96 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003021/0.5192, allocations: 2.187 MB / 0.5313 GB, free: 77.75 MB / 378.7 MB Notification: Performance of SimCode: time 7.91e-07/0.5192, allocations: 0 / 0.5313 GB, free: 77.75 MB / 378.7 MB Notification: Performance of Templates: time 0.02419/0.5434, allocations: 25.05 MB / 0.5557 GB, free: 52.02 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/jenkins/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