Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Digital.Examples.Multiplexer.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.Multiplexer,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Digital_Examples_Multiplexer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.Multiplexer,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Digital_Examples_Multiplexer",fmuType="me",version="2.0",platforms={"static"}) [: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 3.2.3+maint.om/package.mo): time 0.001111/0.001111, allocations: 179.3 kB / 8.478 MB, free: 1.875 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.095/1.095, allocations: 205.2 MB / 214.1 MB, free: 5.102 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008926/0.0008927, allocations: 87.67 kB / 262.1 MB, free: 5.148 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1509/0.1518, allocations: 52.96 MB / 315.1 MB, free: 41.43 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06283/0.2147, allocations: 47.58 MB / 362.6 MB, free: 9.891 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1971/0.4118, allocations: 82.44 MB / 445.1 MB, free: 10.76 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001449/0.412, allocations: 68.91 kB / 445.1 MB, free: 10.76 MB / 314.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.09321/0.5053, allocations: 55.13 MB / 0.4885 GB, free: 10.25 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.446e-05/0.5053, allocations: 11.94 kB / 0.4886 GB, free: 10.24 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002404/0.5056, allocations: 83.16 kB / 0.4886 GB, free: 10.16 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007678/0.5063, allocations: 468.2 kB / 0.4891 GB, free: 9.668 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.725e-05/0.5064, allocations: 27.91 kB / 0.4891 GB, free: 9.641 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001535/0.5065, allocations: 40 kB / 0.4891 GB, free: 9.602 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001057/0.5076, allocations: 0.5883 MB / 0.4897 GB, free: 9.012 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001209/0.5088, allocations: 0.7454 MB / 0.4904 GB, free: 8.262 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.479e-05/0.5088, allocations: 0 / 0.4904 GB, free: 8.262 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001049/0.509, allocations: 4 kB / 0.4904 GB, free: 8.258 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.486e-05/0.509, allocations: 16 kB / 0.4905 GB, free: 8.242 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002865/0.5118, allocations: 1.603 MB / 0.492 GB, free: 6.625 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000805/0.5127, allocations: 0.511 MB / 0.4925 GB, free: 6.105 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004058/0.5131, allocations: 270.3 kB / 0.4928 GB, free: 5.84 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000118/0.5132, allocations: 8.5 kB / 0.4928 GB, free: 5.832 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006995/0.5139, allocations: 0.532 MB / 0.4933 GB, free: 5.289 MB / 346.7 MB Notification: Performance of pre-optimization done (n=58): time 2.615e-06/0.5139, allocations: 0 / 0.4933 GB, free: 5.289 MB / 346.7 MB Notification: Performance of matching and sorting (n=58): time 0.001356/0.5153, allocations: 0.7654 MB / 0.4941 GB, free: 4.516 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.018e-05/0.5154, allocations: 200.3 kB / 0.4943 GB, free: 4.277 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003861/0.5158, allocations: 345.6 kB / 0.4946 GB, free: 3.93 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001114/0.5159, allocations: 45.62 kB / 0.4946 GB, free: 3.879 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001386/0.5161, allocations: 192.9 kB / 0.4948 GB, free: 3.684 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001857/0.5162, allocations: 126.5 kB / 0.4949 GB, free: 3.559 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.309e-05/0.5164, allocations: 8 kB / 0.4949 GB, free: 3.551 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000136/0.5165, allocations: 362.7 kB / 0.4953 GB, free: 3.188 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004679/0.517, allocations: 273.2 kB / 0.4955 GB, free: 2.918 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005428/0.5175, allocations: 347.1 kB / 0.4959 GB, free: 2.559 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005433/0.5181, allocations: 319.5 kB / 0.4962 GB, free: 2.246 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.647e-06/0.5181, allocations: 0 / 0.4962 GB, free: 2.246 MB / 346.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001439/0.5195, allocations: 0.8599 MB / 0.497 GB, free: 1.383 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.373e-05/0.5196, allocations: 8 kB / 0.497 GB, free: 1.375 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.302e-06/0.5196, allocations: 0 / 0.497 GB, free: 1.375 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.565e-05/0.5196, allocations: 4 kB / 0.497 GB, free: 1.371 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002663/0.5199, allocations: 107.8 kB / 0.4971 GB, free: 1.266 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.245e-05/0.5199, allocations: 7.984 kB / 0.4971 GB, free: 1.258 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005339/0.5204, allocations: 75.7 kB / 0.4972 GB, free: 1.184 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005319/0.521, allocations: 0.5658 MB / 0.4978 GB, free: 0.6172 MB / 346.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.0003983/0.5214, allocations: 305.3 kB / 0.4981 GB, free: 288 kB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000138/0.5215, allocations: 55.34 kB / 0.4981 GB, free: 232 kB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.134e-05/0.5216, allocations: 44.77 kB / 0.4982 GB, free: 188 kB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.442e-05/0.5216, allocations: 8 kB / 0.4982 GB, free: 180 kB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.5216, allocations: 3.938 kB / 0.4982 GB, free: 176 kB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.488e-06/0.5217, allocations: 7.969 kB / 0.4982 GB, free: 168 kB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008544/0.5225, allocations: 0.5746 MB / 0.4987 GB, free: 15.57 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.946e-06/0.5225, allocations: 0 / 0.4987 GB, free: 15.57 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002081/0.5227, allocations: 99.88 kB / 0.4988 GB, free: 15.47 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.839e-06/0.5228, allocations: 7.938 kB / 0.4988 GB, free: 15.46 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001481/0.5229, allocations: 83.95 kB / 0.4989 GB, free: 15.38 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.61e-06/0.5229, allocations: 11.84 kB / 0.4989 GB, free: 15.37 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.003e-06/0.5229, allocations: 0 / 0.4989 GB, free: 15.37 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00135/0.5243, allocations: 0.8102 MB / 0.4997 GB, free: 14.54 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001397/0.5257, allocations: 1.19 MB / 0.5009 GB, free: 13.32 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004531/0.5262, allocations: 264.5 kB / 0.5011 GB, free: 13.05 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002177/0.5264, allocations: 20 kB / 0.5012 GB, free: 13.03 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003741/0.5268, allocations: 59.7 kB / 0.5012 GB, free: 12.97 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003161/0.5271, allocations: 148.4 kB / 0.5013 GB, free: 12.82 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005114/0.5276, allocations: 0.5618 MB / 0.5019 GB, free: 12.26 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0002254/0.5278, allocations: 236.6 kB / 0.5021 GB, free: 12.03 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001153/0.529, allocations: 120 kB / 0.5022 GB, free: 11.91 MB / 362.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.0002831/0.5293, allocations: 160.8 kB / 0.5024 GB, free: 11.74 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001195/0.5305, allocations: 0.8397 MB / 0.5032 GB, free: 10.88 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.5305, allocations: 0 / 0.5032 GB, free: 10.88 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006801/0.5312, allocations: 0.5408 MB / 0.5037 GB, free: 10.3 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001736/0.5329, allocations: 464.4 kB / 0.5042 GB, free: 9.855 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002004/0.535, allocations: 0.8772 MB / 0.505 GB, free: 8.957 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003337/0.5383, allocations: 2.184 MB / 0.5072 GB, free: 6.742 MB / 362.7 MB Notification: Performance of SimCode: time 2.8e-07/0.5383, allocations: 0 / 0.5072 GB, free: 6.742 MB / 362.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.Multiplexer.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Digital.Examples.Multiplexer.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Digital.Examples.Multiplexer.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.Multiplexer.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Digital.Examples.Multiplexer_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Digital_Examples_Multiplexer_fmu --startTime=0 --stopTime=250 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Digital_Examples_Multiplexer.fmu > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.Multiplexer.pipe 2>&1)