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: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.Multiplexer,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_Multiplexer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.Multiplexer,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001178/0.001178, allocations: 182.7 kB / 8.136 MB, free: 2.215 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.136/1.136, allocations: 221.4 MB / 229.9 MB, free: 3.012 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.0009335/0.0009335, allocations: 100.1 kB / 280.8 MB, free: 1.293 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08858/0.08955, allocations: 55.81 MB / 336.6 MB, free: 9.473 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1807/0.2702, allocations: 50.39 MB / 387 MB, free: 37.95 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08312/0.3534, allocations: 83.37 MB / 470.4 MB, free: 3.422 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002051/0.3536, allocations: 71.91 kB / 470.4 MB, free: 3.352 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.2258/0.5795, allocations: 55.77 MB / 0.5139 GB, free: 95.88 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.184e-05/0.5795, allocations: 8.688 kB / 0.5139 GB, free: 95.87 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002544/0.5798, allocations: 75.16 kB / 0.514 GB, free: 95.8 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006932/0.5805, allocations: 479.4 kB / 0.5144 GB, free: 95.32 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.436e-05/0.5805, allocations: 28 kB / 0.5144 GB, free: 95.29 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001592/0.5807, allocations: 36.56 kB / 0.5145 GB, free: 95.25 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009715/0.5817, allocations: 0.5883 MB / 0.515 GB, free: 94.66 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001092/0.5828, allocations: 0.7416 MB / 0.5158 GB, free: 93.92 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.61e-05/0.5828, allocations: 0 / 0.5158 GB, free: 93.92 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001111/0.5829, allocations: 8 kB / 0.5158 GB, free: 93.91 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.376e-05/0.583, allocations: 12 kB / 0.5158 GB, free: 93.9 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002508/0.5855, allocations: 1.606 MB / 0.5174 GB, free: 92.3 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006833/0.5862, allocations: 0.5111 MB / 0.5179 GB, free: 91.79 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003407/0.5865, allocations: 274.1 kB / 0.5181 GB, free: 91.52 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001159/0.5866, allocations: 8.5 kB / 0.5181 GB, free: 91.51 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005742/0.5872, allocations: 0.5287 MB / 0.5186 GB, free: 90.97 MB / 378.7 MB Notification: Performance of pre-optimization done (n=58): time 2.846e-06/0.5872, allocations: 4 kB / 0.5186 GB, free: 90.96 MB / 378.7 MB Notification: Performance of matching and sorting (n=58): time 0.001178/0.5884, allocations: 0.7615 MB / 0.5194 GB, free: 90.2 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.709e-05/0.5885, allocations: 196.4 kB / 0.5196 GB, free: 89.96 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002987/0.5888, allocations: 353.5 kB / 0.5199 GB, free: 89.61 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000107/0.5889, allocations: 37.7 kB / 0.52 GB, free: 89.57 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.919e-05/0.589, allocations: 196.4 kB / 0.5201 GB, free: 89.39 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001578/0.5892, allocations: 130.8 kB / 0.5203 GB, free: 89.27 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.757e-05/0.5893, allocations: 4 kB / 0.5203 GB, free: 89.27 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.261e-05/0.5893, allocations: 358.8 kB / 0.5206 GB, free: 88.91 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003918/0.5897, allocations: 281.2 kB / 0.5209 GB, free: 88.63 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004075/0.5902, allocations: 347.1 kB / 0.5212 GB, free: 88.27 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004386/0.5906, allocations: 312.4 kB / 0.5215 GB, free: 87.97 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.5906, allocations: 0 / 0.5215 GB, free: 87.97 MB / 378.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001237/0.5919, allocations: 0.8609 MB / 0.5223 GB, free: 87.12 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.203e-05/0.5919, allocations: 12.92 kB / 0.5224 GB, free: 87.11 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.071e-06/0.5919, allocations: 0 / 0.5224 GB, free: 87.11 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.56e-05/0.5919, allocations: 4 kB / 0.5224 GB, free: 87.1 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002356/0.5921, allocations: 107.6 kB / 0.5225 GB, free: 87 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.482e-06/0.5922, allocations: 4 kB / 0.5225 GB, free: 87 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004934/0.5927, allocations: 79.66 kB / 0.5225 GB, free: 86.93 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003763/0.593, allocations: 0.5615 MB / 0.5231 GB, free: 86.37 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.0003157/0.5934, allocations: 304.7 kB / 0.5234 GB, free: 86.04 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000132/0.5935, allocations: 55.42 kB / 0.5234 GB, free: 85.98 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.703e-05/0.5936, allocations: 44.77 kB / 0.5235 GB, free: 85.94 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.02e-06/0.5936, allocations: 7.938 kB / 0.5235 GB, free: 85.93 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.5936, allocations: 4 kB / 0.5235 GB, free: 85.93 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.322e-06/0.5936, allocations: 3.984 kB / 0.5235 GB, free: 85.93 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007032/0.5943, allocations: 0.5743 MB / 0.5241 GB, free: 85.33 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/0.5944, allocations: 0 / 0.5241 GB, free: 85.33 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001827/0.5945, allocations: 99.62 kB / 0.5241 GB, free: 85.24 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.001e-06/0.5946, allocations: 4 kB / 0.5242 GB, free: 85.23 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001324/0.5947, allocations: 95.84 kB / 0.5242 GB, free: 85.14 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.427e-06/0.5947, allocations: 8 kB / 0.5243 GB, free: 85.13 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.963e-06/0.5947, allocations: 0 / 0.5243 GB, free: 85.13 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00113/0.5958, allocations: 0.8102 MB / 0.525 GB, free: 84.3 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001125/0.597, allocations: 1.193 MB / 0.5262 GB, free: 83.09 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004019/0.5974, allocations: 260.5 kB / 0.5265 GB, free: 82.82 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002259/0.5976, allocations: 16 kB / 0.5265 GB, free: 82.8 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003705/0.598, allocations: 55.77 kB / 0.5265 GB, free: 82.75 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002842/0.5983, allocations: 152.2 kB / 0.5267 GB, free: 82.6 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003679/0.5987, allocations: 0.5618 MB / 0.5272 GB, free: 82.04 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0001682/0.5988, allocations: 240.6 kB / 0.5274 GB, free: 81.8 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001119/0.6, allocations: 120 kB / 0.5276 GB, free: 81.69 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.0002218/0.6002, allocations: 158.2 kB / 0.5277 GB, free: 81.53 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00101/0.6012, allocations: 0.8493 MB / 0.5285 GB, free: 80.66 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.6012, allocations: 0 / 0.5285 GB, free: 80.66 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005451/0.6018, allocations: 0.5369 MB / 0.5291 GB, free: 80.11 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001615/0.6034, allocations: 464.8 kB / 0.5295 GB, free: 79.67 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001852/0.6053, allocations: 0.8746 MB / 0.5304 GB, free: 78.77 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002914/0.6082, allocations: 2.187 MB / 0.5325 GB, free: 76.55 MB / 378.7 MB Notification: Performance of SimCode: time 4.51e-07/0.6082, allocations: 0 / 0.5325 GB, free: 76.55 MB / 378.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Digital.Examples.Multiplexer_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Digital_Examples_Multiplexer_fmu --startTime=0 --stopTime=250 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Digital_Examples_Multiplexer.fmu > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.Multiplexer.pipe 2>&1)