Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.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.MUX2x1,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_MUX2x1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.MUX2x1,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_MUX2x1",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.0009702/0.0009702, allocations: 199.2 kB / 8.541 MB, free: 1.812 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.126/1.126, allocations: 225.5 MB / 234.4 MB, free: 3.328 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008048/0.0008048, allocations: 95.69 kB / 286.3 MB, free: 5.281 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09344/0.09427, allocations: 56.9 MB / 343.2 MB, free: 8.578 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08262/0.1769, allocations: 51.47 MB / 394.7 MB, free: 5.059 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2146/0.3916, allocations: 82.79 MB / 477.5 MB, free: 9.836 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000165/0.3918, allocations: 70.73 kB / 477.6 MB, free: 9.809 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.04789/0.4397, allocations: 28.17 MB / 0.4939 GB, free: 3.711 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.386e-05/0.4397, allocations: 8 kB / 0.4939 GB, free: 3.703 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.466e-05/0.4398, allocations: 43.53 kB / 0.4939 GB, free: 3.66 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003626/0.4402, allocations: 273.8 kB / 0.4942 GB, free: 3.363 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.227e-05/0.4402, allocations: 7.906 kB / 0.4942 GB, free: 3.355 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.65e-05/0.4403, allocations: 8 kB / 0.4942 GB, free: 3.348 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001732/0.4405, allocations: 80.84 kB / 0.4943 GB, free: 3.289 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002473/0.4407, allocations: 155.1 kB / 0.4944 GB, free: 3.152 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.126e-06/0.4407, allocations: 0 / 0.4944 GB, free: 3.152 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.661e-05/0.4408, allocations: 10.73 kB / 0.4944 GB, free: 3.145 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.592e-06/0.4408, allocations: 8.688 kB / 0.4944 GB, free: 3.137 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008248/0.4416, allocations: 494.9 kB / 0.4949 GB, free: 2.703 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001772/0.4418, allocations: 113.9 kB / 0.495 GB, free: 2.602 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001383/0.442, allocations: 108.8 kB / 0.4951 GB, free: 2.492 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.135e-06/0.442, allocations: 0 / 0.4951 GB, free: 2.492 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002401/0.4422, allocations: 222.7 kB / 0.4953 GB, free: 2.25 MB / 362.7 MB Notification: Performance of pre-optimization done (n=14): time 1.703e-06/0.4422, allocations: 3.938 kB / 0.4953 GB, free: 2.246 MB / 362.7 MB Notification: Performance of matching and sorting (n=14): time 0.0004626/0.4427, allocations: 249.2 kB / 0.4956 GB, free: 1.996 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.721e-05/0.4428, allocations: 194.1 kB / 0.4958 GB, free: 1.766 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005982/0.4434, allocations: 494.3 kB / 0.4962 GB, free: 1.277 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.511e-05/0.4435, allocations: 29.7 kB / 0.4963 GB, free: 1.242 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.466e-05/0.4435, allocations: 101.1 kB / 0.4964 GB, free: 1.141 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.341e-05/0.4436, allocations: 27.62 kB / 0.4964 GB, free: 1.113 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.133e-05/0.4436, allocations: 4 kB / 0.4964 GB, free: 1.109 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001185/0.4437, allocations: 330.8 kB / 0.4967 GB, free: 0.7773 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001344/0.4439, allocations: 75.98 kB / 0.4968 GB, free: 0.7031 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001208/0.444, allocations: 79.97 kB / 0.4969 GB, free: 0.625 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001063/0.4441, allocations: 59.48 kB / 0.4969 GB, free: 0.5703 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.4441, allocations: 0 / 0.4969 GB, free: 0.5703 MB / 362.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003763/0.4445, allocations: 233.5 kB / 0.4971 GB, free: 344 kB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.299e-05/0.4445, allocations: 4 kB / 0.4971 GB, free: 340 kB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.372e-06/0.4445, allocations: 3.984 kB / 0.4971 GB, free: 336 kB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.163e-05/0.4445, allocations: 4 kB / 0.4971 GB, free: 332 kB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.486e-05/0.4446, allocations: 0 / 0.4971 GB, free: 332 kB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.4e-06/0.4446, allocations: 0 / 0.4971 GB, free: 332 kB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001511/0.4447, allocations: 19.91 kB / 0.4972 GB, free: 312 kB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001164/0.4449, allocations: 97.23 kB / 0.4973 GB, free: 216 kB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 16 ($whenCondition1,$whenCondition2,Mux2x1.sel,Mux2x1.nextstate,Mux2x1.yy,$PRE.Mux2x1.inertialDelaySensitive.x,Mux2x1.inertialDelaySensitive.x,$PRE.Mux2x1.inertialDelaySensitive.y,Mux2x1.inertialDelaySensitive.y,Mux2x1.inertialDelaySensitive.delayTime,Mux2x1.inertialDelaySensitive.y_auxiliary,Mux2x1.inertialDelaySensitive.y_old,Mux2x1.inertialDelaySensitive.lh,Mux2x1.inertialDelaySensitive.t_next,Input1.y,Input0.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 3 * 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.0002252/0.4451, allocations: 267.6 kB / 0.4975 GB, free: 15.91 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.111e-05/0.4452, allocations: 47.44 kB / 0.4976 GB, free: 15.86 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001408/0.4453, allocations: 67.58 kB / 0.4976 GB, free: 15.8 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.895e-06/0.4453, allocations: 0 / 0.4976 GB, free: 15.8 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.4453, allocations: 3.281 kB / 0.4976 GB, free: 15.8 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.916e-06/0.4453, allocations: 4 kB / 0.4976 GB, free: 15.79 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007632/0.4461, allocations: 0.647 MB / 0.4983 GB, free: 15.1 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.4461, allocations: 0 / 0.4983 GB, free: 15.1 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.531e-06/0.4461, allocations: 0 / 0.4983 GB, free: 15.1 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.869e-06/0.4461, allocations: 4 kB / 0.4983 GB, free: 15.1 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.297e-05/0.4462, allocations: 15.98 kB / 0.4983 GB, free: 15.08 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.065e-06/0.4462, allocations: 4 kB / 0.4983 GB, free: 15.08 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.4462, allocations: 0 / 0.4983 GB, free: 15.08 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004573/0.4467, allocations: 374.9 kB / 0.4986 GB, free: 14.7 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0005756/0.4472, allocations: 0.7486 MB / 0.4994 GB, free: 13.93 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003493/0.4476, allocations: 260.7 kB / 0.4996 GB, free: 13.66 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.692e-05/0.4477, allocations: 12 kB / 0.4996 GB, free: 13.64 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001747/0.4479, allocations: 23.98 kB / 0.4997 GB, free: 13.62 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001357/0.448, allocations: 43.95 kB / 0.4997 GB, free: 13.58 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000111/0.4481, allocations: 103.7 kB / 0.4998 GB, free: 13.48 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0004591/0.4486, allocations: 398.9 kB / 0.5002 GB, free: 13.09 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000858/0.4495, allocations: 47.91 kB / 0.5002 GB, free: 13.05 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: 14 ($whenCondition1,$whenCondition2,Mux2x1.sel,Mux2x1.nextstate,Mux2x1.yy,Mux2x1.inertialDelaySensitive.x,Mux2x1.inertialDelaySensitive.y,Mux2x1.inertialDelaySensitive.delayTime,Mux2x1.inertialDelaySensitive.y_auxiliary,Mux2x1.inertialDelaySensitive.y_old,Mux2x1.inertialDelaySensitive.lh,Mux2x1.inertialDelaySensitive.t_next,Input1.y,Input0.y) * Number of discrete states: 14 (Input1.y,Mux2x1.sel,Input0.y,Mux2x1.yy,Mux2x1.nextstate,Mux2x1.inertialDelaySensitive.y,Mux2x1.inertialDelaySensitive.y_auxiliary,Mux2x1.inertialDelaySensitive.t_next,Mux2x1.inertialDelaySensitive.delayTime,Mux2x1.inertialDelaySensitive.lh,Mux2x1.inertialDelaySensitive.y_old,$whenCondition2,$whenCondition1,Mux2x1.inertialDelaySensitive.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 1 * 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 Backend phase and start with SimCode phase: time 0.000143/0.4496, allocations: 115.2 kB / 0.5003 GB, free: 12.93 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0003953/0.45, allocations: 332.4 kB / 0.5007 GB, free: 12.57 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 9.477e-06/0.45, allocations: 4 kB / 0.5007 GB, free: 12.57 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002922/0.4503, allocations: 324.5 kB / 0.501 GB, free: 12.22 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00065/0.451, allocations: 156.1 kB / 0.5011 GB, free: 12.08 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001093/0.4521, allocations: 0.5993 MB / 0.5017 GB, free: 11.45 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000488/0.4526, allocations: 0.8372 MB / 0.5025 GB, free: 10.58 MB / 378.7 MB Notification: Performance of SimCode: time 2.244e-06/0.4526, allocations: 0 / 0.5025 GB, free: 10.58 MB / 378.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Digital_Examples_MUX2x1_fmu --startTime=0 --stopTime=15 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Digital_Examples_MUX2x1.fmu > Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.pipe 2>&1)