Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1.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.MUX2x1,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Digital_Examples_MUX2x1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.MUX2x1,fileNamePrefix="Modelica_3_2_3_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 3.2.3+maint.om/package.mo): time 0.001043/0.001043, allocations: 178.5 kB / 8.476 MB, free: 1.844 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.108/1.108, allocations: 205.2 MB / 214.1 MB, free: 1.879 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.0008451/0.0008453, allocations: 87.39 kB / 262.1 MB, free: 1.832 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.135/0.1359, allocations: 52.97 MB / 315.1 MB, free: 22.95 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06948/0.2054, allocations: 47.58 MB / 362.6 MB, free: 7.305 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2229/0.4283, allocations: 81.34 MB / 444 MB, free: 14.07 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001832/0.4285, allocations: 67.84 kB / 444 MB, free: 14.04 MB / 330.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.05251/0.4811, allocations: 27.74 MB / 471.8 MB, free: 7.719 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.441e-05/0.4811, allocations: 12 kB / 471.8 MB, free: 7.707 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001027/0.4812, allocations: 43.52 kB / 471.8 MB, free: 7.664 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003773/0.4816, allocations: 276 kB / 472.1 MB, free: 7.367 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.035e-05/0.4816, allocations: 8 kB / 472.1 MB, free: 7.359 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.101e-05/0.4817, allocations: 11.91 kB / 472.1 MB, free: 7.348 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001791/0.4819, allocations: 77.34 kB / 472.2 MB, free: 7.293 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002403/0.4821, allocations: 151.8 kB / 472.4 MB, free: 7.16 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.333e-06/0.4821, allocations: 7.938 kB / 472.4 MB, free: 7.152 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.384e-05/0.4822, allocations: 11.97 kB / 472.4 MB, free: 7.141 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.4e-06/0.4822, allocations: 4 kB / 472.4 MB, free: 7.137 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008096/0.483, allocations: 490.6 kB / 472.9 MB, free: 6.688 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001685/0.4832, allocations: 118.2 kB / 473 MB, free: 6.594 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001322/0.4833, allocations: 105.4 kB / 473.1 MB, free: 6.523 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.71e-06/0.4833, allocations: 3.938 kB / 473.1 MB, free: 6.52 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002262/0.4836, allocations: 220.4 kB / 473.3 MB, free: 6.309 MB / 346.7 MB Notification: Performance of pre-optimization done (n=14): time 1.914e-06/0.4836, allocations: 0 / 473.3 MB, free: 6.309 MB / 346.7 MB Notification: Performance of matching and sorting (n=14): time 0.0004464/0.484, allocations: 259.3 kB / 473.6 MB, free: 6.086 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.391e-05/0.4841, allocations: 195.3 kB / 473.7 MB, free: 5.855 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005764/0.4847, allocations: 488.5 kB / 474.2 MB, free: 5.449 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.757e-05/0.4848, allocations: 29.7 kB / 474.2 MB, free: 5.414 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.376e-05/0.4848, allocations: 96.81 kB / 474.3 MB, free: 5.32 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.67e-05/0.4849, allocations: 34.23 kB / 474.4 MB, free: 5.293 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.188e-05/0.4849, allocations: 4 kB / 474.4 MB, free: 5.289 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001155/0.485, allocations: 325.2 kB / 474.7 MB, free: 4.969 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000119/0.4851, allocations: 77.97 kB / 474.8 MB, free: 4.914 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001069/0.4853, allocations: 74.98 kB / 474.8 MB, free: 4.863 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.756e-05/0.4854, allocations: 58.95 kB / 474.9 MB, free: 4.82 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.4854, allocations: 4 kB / 474.9 MB, free: 4.816 MB / 346.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003513/0.4857, allocations: 231 kB / 475.1 MB, free: 4.621 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.192e-05/0.4857, allocations: 4 kB / 475.1 MB, free: 4.617 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.117e-06/0.4858, allocations: 4 kB / 475.1 MB, free: 4.613 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.21e-05/0.4858, allocations: 0 / 475.1 MB, free: 4.613 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.099e-05/0.4858, allocations: 3.172 kB / 475.1 MB, free: 4.613 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.692e-06/0.4858, allocations: 3.938 kB / 475.1 MB, free: 4.609 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001693/0.486, allocations: 19.89 kB / 475.2 MB, free: 4.59 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001047/0.4861, allocations: 97.3 kB / 475.3 MB, free: 4.492 MB / 346.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.0001891/0.4863, allocations: 265.5 kB / 475.5 MB, free: 4.199 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.395e-05/0.4864, allocations: 51.42 kB / 475.6 MB, free: 4.148 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001167/0.4865, allocations: 72.88 kB / 475.6 MB, free: 4.09 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.214e-06/0.4865, allocations: 0 / 475.6 MB, free: 4.09 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.877e-06/0.4865, allocations: 0 / 475.6 MB, free: 4.09 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.805e-06/0.4865, allocations: 0 / 475.6 MB, free: 4.09 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007041/0.4872, allocations: 0.6342 MB / 476.3 MB, free: 3.504 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.846e-06/0.4872, allocations: 11.94 kB / 476.3 MB, free: 3.492 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.532e-06/0.4873, allocations: 3.984 kB / 476.3 MB, free: 3.488 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.4873, allocations: 0 / 476.3 MB, free: 3.488 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.88e-05/0.4873, allocations: 22.8 kB / 476.3 MB, free: 3.469 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.4873, allocations: 0 / 476.3 MB, free: 3.469 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.4873, allocations: 128 / 476.3 MB, free: 3.469 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004425/0.4878, allocations: 371 kB / 476.7 MB, free: 3.137 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0005653/0.4883, allocations: 0.7435 MB / 477.4 MB, free: 2.422 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003591/0.4887, allocations: 275.8 kB / 477.7 MB, free: 2.18 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.072e-05/0.4888, allocations: 8 kB / 477.7 MB, free: 2.172 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001975/0.489, allocations: 12 kB / 477.7 MB, free: 2.16 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001371/0.4892, allocations: 48.12 kB / 477.8 MB, free: 2.125 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.937e-05/0.4893, allocations: 106.9 kB / 477.9 MB, free: 2.023 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.0004706/0.4897, allocations: 405.4 kB / 478.3 MB, free: 1.695 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000869/0.4906, allocations: 47.91 kB / 478.3 MB, free: 1.648 MB / 346.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.0001405/0.4908, allocations: 114.5 kB / 478.4 MB, free: 1.531 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0004093/0.4912, allocations: 335.2 kB / 478.7 MB, free: 1.234 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.4912, allocations: 0 / 478.7 MB, free: 1.234 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003212/0.4915, allocations: 324.3 kB / 479.1 MB, free: 0.9727 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006932/0.4922, allocations: 152.4 kB / 479.2 MB, free: 0.8398 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001047/0.4933, allocations: 0.5973 MB / 479.8 MB, free: 284 kB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004426/0.4937, allocations: 0.8372 MB / 480.6 MB, free: 15.41 MB / 362.7 MB Notification: Performance of SimCode: time 2.124e-05/0.4938, allocations: 0 / 480.6 MB, free: 15.41 MB / 362.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Digital_Examples_MUX2x1_fmu --startTime=0 --stopTime=15 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Digital_Examples_MUX2x1.fmu > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1.pipe 2>&1)