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") [: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 trunk/package.mo): time 0.00119/0.001191, allocations: 203 kB / 8.543 MB, free: 1.809 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.183/1.183, allocations: 225.5 MB / 234.4 MB, free: 3.391 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008335/0.0008335, allocations: 93.23 kB / 286.3 MB, free: 5.25 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 7.013e-06/7.113e-06, allocations: 0 / 343.1 MB, free: 8.754 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08033/0.08035, allocations: 51.48 MB / 394.6 MB, free: 5.23 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2157/0.296, allocations: 84.18 MB / 478.8 MB, free: 8.828 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001725/0.2963, allocations: 67.7 kB / 478.9 MB, free: 8.805 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.1018/0.398, allocations: 54.84 MB / 0.5212 GB, free: 7.996 MB / 394.7 MB Notification: Performance of Transformations before backend: time 2.993e-05/0.3981, allocations: 15.94 kB / 0.5212 GB, free: 7.98 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.00133/0.3994, allocations: 0.9698 MB / 0.5222 GB, free: 6.93 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.662e-05/0.3995, allocations: 8.031 kB / 0.5222 GB, free: 6.922 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001899/0.3997, allocations: 75.16 kB / 0.5222 GB, free: 6.848 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007368/0.4004, allocations: 473 kB / 0.5227 GB, free: 6.352 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.707e-05/0.4005, allocations: 27.91 kB / 0.5227 GB, free: 6.324 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001486/0.4006, allocations: 36 kB / 0.5227 GB, free: 6.289 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001063/0.4017, allocations: 0.5883 MB / 0.5233 GB, free: 5.699 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001223/0.4029, allocations: 0.751 MB / 0.5241 GB, free: 4.945 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.506e-05/0.4029, allocations: 0 / 0.5241 GB, free: 4.945 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000107/0.4031, allocations: 8 kB / 0.5241 GB, free: 4.938 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.547e-05/0.4031, allocations: 16 kB / 0.5241 GB, free: 4.922 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002942/0.406, allocations: 1.597 MB / 0.5256 GB, free: 3.281 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008448/0.4069, allocations: 0.5075 MB / 0.5261 GB, free: 2.762 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004305/0.4073, allocations: 270.3 kB / 0.5264 GB, free: 2.496 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001254/0.4075, allocations: 16.48 kB / 0.5264 GB, free: 2.48 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007376/0.4082, allocations: 0.5242 MB / 0.5269 GB, free: 1.945 MB / 394.7 MB Notification: Performance of pre-optimization done (n=58): time 2.575e-06/0.4082, allocations: 0 / 0.5269 GB, free: 1.945 MB / 394.7 MB Notification: Performance of matching and sorting (n=58): time 0.001419/0.4096, allocations: 0.7693 MB / 0.5277 GB, free: 1.168 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000101/0.4098, allocations: 196.3 kB / 0.5279 GB, free: 0.9336 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003979/0.4102, allocations: 349.6 kB / 0.5282 GB, free: 0.5859 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001161/0.4103, allocations: 41.69 kB / 0.5282 GB, free: 0.5391 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001283/0.4104, allocations: 196.9 kB / 0.5284 GB, free: 348 kB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001754/0.4106, allocations: 126.5 kB / 0.5285 GB, free: 220 kB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001212/0.4107, allocations: 10.16 kB / 0.5285 GB, free: 212 kB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001735/0.4109, allocations: 358.7 kB / 0.5289 GB, free: 15.85 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004611/0.4114, allocations: 277.2 kB / 0.5292 GB, free: 15.57 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005193/0.4119, allocations: 347.1 kB / 0.5295 GB, free: 15.21 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005328/0.4125, allocations: 311.7 kB / 0.5298 GB, free: 14.91 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.4125, allocations: 0 / 0.5298 GB, free: 14.91 MB / 410.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001518/0.414, allocations: 0.868 MB / 0.5306 GB, free: 14.04 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.677e-05/0.414, allocations: 8 kB / 0.5306 GB, free: 14.03 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.502e-06/0.414, allocations: 0 / 0.5306 GB, free: 14.03 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.658e-05/0.414, allocations: 4 kB / 0.5306 GB, free: 14.03 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002794/0.4143, allocations: 107.8 kB / 0.5307 GB, free: 13.92 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.854e-05/0.4144, allocations: 12.05 kB / 0.5308 GB, free: 13.91 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005251/0.4149, allocations: 67.7 kB / 0.5308 GB, free: 13.84 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000534/0.4154, allocations: 0.5619 MB / 0.5314 GB, free: 13.28 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.0003724/0.4158, allocations: 313.2 kB / 0.5317 GB, free: 12.94 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001408/0.416, allocations: 51.44 kB / 0.5317 GB, free: 12.89 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001004/0.4161, allocations: 48.77 kB / 0.5318 GB, free: 12.84 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.447e-06/0.4161, allocations: 8 kB / 0.5318 GB, free: 12.83 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.4161, allocations: 0 / 0.5318 GB, free: 12.83 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.855e-06/0.4161, allocations: 7.984 kB / 0.5318 GB, free: 12.82 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008462/0.417, allocations: 0.5725 MB / 0.5323 GB, free: 12.21 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.364e-06/0.417, allocations: 0 / 0.5323 GB, free: 12.21 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002037/0.4172, allocations: 95.88 kB / 0.5324 GB, free: 12.12 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.611e-06/0.4172, allocations: 5.688 kB / 0.5324 GB, free: 12.12 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001576/0.4174, allocations: 91.8 kB / 0.5325 GB, free: 12.03 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.637e-06/0.4174, allocations: 4 kB / 0.5325 GB, free: 12.02 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.4174, allocations: 0 / 0.5325 GB, free: 12.02 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001352/0.4187, allocations: 0.8141 MB / 0.5333 GB, free: 11.19 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004554/0.4192, allocations: 264.5 kB / 0.5336 GB, free: 10.91 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002337/0.4194, allocations: 12 kB / 0.5336 GB, free: 10.9 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003695/0.4198, allocations: 55.8 kB / 0.5336 GB, free: 10.84 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003339/0.4202, allocations: 152.3 kB / 0.5338 GB, free: 10.7 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005142/0.4207, allocations: 0.5618 MB / 0.5343 GB, free: 10.13 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0002347/0.4209, allocations: 240.6 kB / 0.5346 GB, free: 9.898 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0005827/0.4215, allocations: 123.9 kB / 0.5347 GB, free: 9.777 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.0002604/0.4218, allocations: 160.9 kB / 0.5348 GB, free: 9.609 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001281/0.4231, allocations: 0.8462 MB / 0.5357 GB, free: 8.734 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.4231, allocations: 0 / 0.5357 GB, free: 8.734 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007118/0.4238, allocations: 0.5412 MB / 0.5362 GB, free: 8.164 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001775/0.4256, allocations: 452.3 kB / 0.5366 GB, free: 7.75 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002014/0.4276, allocations: 0.8734 MB / 0.5375 GB, free: 6.848 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003491/0.4311, allocations: 2.19 MB / 0.5396 GB, free: 4.652 MB / 410.7 MB Notification: Performance of SimCode: time 3.61e-07/0.4311, allocations: 0 / 0.5396 GB, free: 4.652 MB / 410.7 MB Notification: Performance of Templates: time 0.03107/0.4622, allocations: 25.04 MB / 0.5641 GB, free: 10.78 MB / 442.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