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: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.Multiplexer,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_Multiplexer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.Multiplexer,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001281/0.001281, allocations: 200.4 kB / 8.54 MB, free: 1.836 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.225/1.225, allocations: 225.5 MB / 234.4 MB, free: 3.41 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008182/0.0008182, allocations: 90.52 kB / 286.3 MB, free: 5.145 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08076/0.0816, allocations: 56.89 MB / 343.2 MB, free: 8.547 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07595/0.1576, allocations: 51.47 MB / 394.7 MB, free: 5.02 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2078/0.3654, allocations: 84.18 MB / 478.9 MB, free: 8.812 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001602/0.3656, allocations: 72.78 kB / 479 MB, free: 8.785 MB / 346.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.0997/0.4653, allocations: 55.82 MB / 0.5222 GB, free: 6.684 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.744e-05/0.4653, allocations: 12 kB / 0.5222 GB, free: 6.672 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000354/0.4657, allocations: 83.14 kB / 0.5223 GB, free: 6.59 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008502/0.4666, allocations: 465 kB / 0.5228 GB, free: 6.102 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.362e-05/0.4666, allocations: 23.91 kB / 0.5228 GB, free: 6.078 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001906/0.4668, allocations: 39.94 kB / 0.5228 GB, free: 6.039 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001167/0.468, allocations: 0.5922 MB / 0.5234 GB, free: 5.445 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001275/0.4693, allocations: 0.7494 MB / 0.5241 GB, free: 4.691 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.633e-05/0.4693, allocations: 4 kB / 0.5241 GB, free: 4.688 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001085/0.4694, allocations: 4 kB / 0.5241 GB, free: 4.684 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.485e-05/0.4694, allocations: 12 kB / 0.5242 GB, free: 4.672 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002997/0.4724, allocations: 1.605 MB / 0.5257 GB, free: 3.02 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008528/0.4733, allocations: 0.514 MB / 0.5262 GB, free: 2.496 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004243/0.4738, allocations: 270.3 kB / 0.5265 GB, free: 2.23 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001179/0.4739, allocations: 4.5 kB / 0.5265 GB, free: 2.227 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007595/0.4746, allocations: 0.5281 MB / 0.527 GB, free: 1.688 MB / 394.7 MB Notification: Performance of pre-optimization done (n=58): time 4.789e-06/0.4747, allocations: 3.938 kB / 0.527 GB, free: 1.684 MB / 394.7 MB Notification: Performance of matching and sorting (n=58): time 0.001495/0.4762, allocations: 0.7654 MB / 0.5278 GB, free: 0.9102 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001058/0.4763, allocations: 196.4 kB / 0.5279 GB, free: 0.6758 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000425/0.4767, allocations: 357.5 kB / 0.5283 GB, free: 328 kB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001138/0.4768, allocations: 37.7 kB / 0.5283 GB, free: 284 kB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001442/0.477, allocations: 200.8 kB / 0.5285 GB, free: 76 kB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002199/0.4772, allocations: 118.6 kB / 0.5286 GB, free: 15.95 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.635e-05/0.4773, allocations: 4 kB / 0.5286 GB, free: 15.95 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001296/0.4775, allocations: 362.7 kB / 0.529 GB, free: 15.59 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004637/0.4779, allocations: 277.2 kB / 0.5292 GB, free: 15.31 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005503/0.4785, allocations: 359 kB / 0.5296 GB, free: 14.95 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005534/0.479, allocations: 304.7 kB / 0.5299 GB, free: 14.65 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.384e-06/0.4791, allocations: 4 kB / 0.5299 GB, free: 14.65 MB / 410.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001665/0.4807, allocations: 0.8611 MB / 0.5307 GB, free: 13.78 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.743e-05/0.4808, allocations: 4 kB / 0.5307 GB, free: 13.78 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.779e-06/0.4808, allocations: 8.062 kB / 0.5307 GB, free: 13.77 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.934e-05/0.4808, allocations: 4 kB / 0.5307 GB, free: 13.77 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003038/0.4811, allocations: 111.8 kB / 0.5308 GB, free: 13.66 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.035e-05/0.4811, allocations: 4 kB / 0.5308 GB, free: 13.65 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005602/0.4817, allocations: 67.7 kB / 0.5309 GB, free: 13.58 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005562/0.4823, allocations: 0.558 MB / 0.5315 GB, free: 13.02 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.0003881/0.4827, allocations: 317.2 kB / 0.5318 GB, free: 12.68 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00015/0.4828, allocations: 47.44 kB / 0.5318 GB, free: 12.63 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001274/0.483, allocations: 54.17 kB / 0.5319 GB, free: 12.58 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.373e-06/0.483, allocations: 4 kB / 0.5319 GB, free: 12.57 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.235e-06/0.483, allocations: 0 / 0.5319 GB, free: 12.57 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.496e-06/0.483, allocations: 3.984 kB / 0.5319 GB, free: 12.57 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001058/0.4841, allocations: 0.5764 MB / 0.5324 GB, free: 11.96 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/0.4841, allocations: 3.938 kB / 0.5324 GB, free: 11.95 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002239/0.4843, allocations: 95.88 kB / 0.5325 GB, free: 11.86 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.514e-06/0.4843, allocations: 4 kB / 0.5325 GB, free: 11.86 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001762/0.4845, allocations: 87.86 kB / 0.5326 GB, free: 11.77 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.928e-06/0.4845, allocations: 3.984 kB / 0.5326 GB, free: 11.77 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.859e-06/0.4845, allocations: 8 kB / 0.5326 GB, free: 11.76 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001418/0.4859, allocations: 0.8064 MB / 0.5334 GB, free: 10.93 MB / 410.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.00146/0.4874, allocations: 1.193 MB / 0.5346 GB, free: 9.715 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004639/0.4879, allocations: 264.4 kB / 0.5348 GB, free: 9.438 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002132/0.4881, allocations: 12 kB / 0.5348 GB, free: 9.426 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003776/0.4885, allocations: 68.83 kB / 0.5349 GB, free: 9.359 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003138/0.4888, allocations: 144.3 kB / 0.535 GB, free: 9.219 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004998/0.4893, allocations: 0.5618 MB / 0.5356 GB, free: 8.656 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0002289/0.4896, allocations: 236.6 kB / 0.5358 GB, free: 8.426 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001247/0.4908, allocations: 127.9 kB / 0.5359 GB, free: 8.297 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.0002952/0.4911, allocations: 152.9 kB / 0.5361 GB, free: 8.137 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001376/0.4925, allocations: 0.8521 MB / 0.5369 GB, free: 7.258 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.4925, allocations: 0 / 0.5369 GB, free: 7.258 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007048/0.4932, allocations: 0.5412 MB / 0.5374 GB, free: 6.684 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001866/0.4951, allocations: 458.8 kB / 0.5379 GB, free: 6.262 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002089/0.4972, allocations: 0.8739 MB / 0.5387 GB, free: 5.363 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003262/0.5005, allocations: 2.192 MB / 0.5409 GB, free: 3.168 MB / 410.7 MB Notification: Performance of SimCode: time 7.32e-07/0.5005, allocations: 0 / 0.5409 GB, free: 3.168 MB / 410.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Digital.Examples.Multiplexer_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Digital_Examples_Multiplexer_fmu --startTime=0 --stopTime=250 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Digital_Examples_Multiplexer.fmu > Modelica_trunk_Modelica.Electrical.Digital.Examples.Multiplexer.pipe 2>&1)