Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Digital.Examples.BUF3S.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.BUF3S,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_BUF3S",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.BUF3S,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_BUF3S",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.001054/0.001055, allocations: 187 kB / 8.136 MB, free: 2.184 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.186/1.186, allocations: 221.4 MB / 229.9 MB, free: 3.016 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.0008918/0.0008917, allocations: 93.11 kB / 280.8 MB, free: 1.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09328/0.09419, allocations: 55.82 MB / 336.6 MB, free: 9.422 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2012/0.2954, allocations: 50.39 MB / 387 MB, free: 38 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08715/0.3827, allocations: 81.99 MB / 469 MB, free: 4.789 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002897/0.383, allocations: 67.91 kB / 469.1 MB, free: 4.723 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.05256/0.4356, allocations: 27.21 MB / 496.3 MB, free: 9.625 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.133e-05/0.4357, allocations: 8 kB / 496.3 MB, free: 9.617 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001054/0.4358, allocations: 39.62 kB / 496.3 MB, free: 9.578 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004006/0.4362, allocations: 273.3 kB / 496.6 MB, free: 9.27 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.267e-05/0.4362, allocations: 4 kB / 496.6 MB, free: 9.266 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.568e-05/0.4363, allocations: 4 kB / 496.6 MB, free: 9.262 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001516/0.4364, allocations: 59.97 kB / 496.6 MB, free: 9.203 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002401/0.4367, allocations: 141.6 kB / 496.8 MB, free: 9.059 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.716e-06/0.4367, allocations: 0 / 496.8 MB, free: 9.059 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.344e-05/0.4367, allocations: 4 kB / 496.8 MB, free: 9.055 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.211e-06/0.4367, allocations: 0 / 496.8 MB, free: 9.055 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008537/0.4376, allocations: 479.2 kB / 497.3 MB, free: 8.551 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001536/0.4378, allocations: 94.5 kB / 497.3 MB, free: 8.449 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001264/0.4379, allocations: 84.89 kB / 497.4 MB, free: 8.363 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.154e-05/0.4379, allocations: 0 / 497.4 MB, free: 8.363 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002181/0.4381, allocations: 214.5 kB / 497.6 MB, free: 8.129 MB / 378.7 MB Notification: Performance of pre-optimization done (n=13): time 1.993e-06/0.4382, allocations: 0 / 497.6 MB, free: 8.129 MB / 378.7 MB Notification: Performance of matching and sorting (n=13): time 0.0004196/0.4386, allocations: 217.4 kB / 497.9 MB, free: 7.91 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001065/0.4387, allocations: 170.1 kB / 498 MB, free: 7.707 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006244/0.4393, allocations: 444.5 kB / 498.5 MB, free: 7.27 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.711e-05/0.4394, allocations: 29.7 kB / 498.5 MB, free: 7.234 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.191e-05/0.4395, allocations: 93.12 kB / 498.6 MB, free: 7.141 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.905e-05/0.4395, allocations: 27.66 kB / 498.6 MB, free: 7.113 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.363e-05/0.4396, allocations: 8 kB / 498.6 MB, free: 7.105 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001241/0.4397, allocations: 322.7 kB / 498.9 MB, free: 6.781 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001137/0.4398, allocations: 63.97 kB / 499 MB, free: 6.719 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001033/0.4399, allocations: 59.36 kB / 499 MB, free: 6.664 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.44e-05/0.44, allocations: 55.83 kB / 499.1 MB, free: 6.609 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.44, allocations: 0 / 499.1 MB, free: 6.609 MB / 378.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000338/0.4404, allocations: 201.5 kB / 499.3 MB, free: 6.406 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.377e-05/0.4404, allocations: 4 kB / 499.3 MB, free: 6.402 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.019e-06/0.4404, allocations: 0 / 499.3 MB, free: 6.402 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.847e-05/0.4404, allocations: 8 kB / 499.3 MB, free: 6.395 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.2e-05/0.4405, allocations: 3.906 kB / 499.3 MB, free: 6.391 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.951e-06/0.4405, allocations: 1.031 kB / 499.3 MB, free: 6.391 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001544/0.4406, allocations: 15.92 kB / 499.3 MB, free: 6.375 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001278/0.4408, allocations: 119.8 kB / 499.4 MB, free: 6.258 MB / 378.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: 15 ($whenCondition1,$whenCondition2,e_table.y,x_table.y,bUF3S.nextstate,bUF3S.yy,$PRE.bUF3S.inertialDelaySensitive.x,bUF3S.inertialDelaySensitive.x,$PRE.bUF3S.inertialDelaySensitive.y,bUF3S.inertialDelaySensitive.y,bUF3S.inertialDelaySensitive.delayTime,bUF3S.inertialDelaySensitive.y_auxiliary,bUF3S.inertialDelaySensitive.y_old,bUF3S.inertialDelaySensitive.lh,bUF3S.inertialDelaySensitive.t_next) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 4 * 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.0002097/0.441, allocations: 241.6 kB / 499.7 MB, free: 5.992 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.805e-05/0.4411, allocations: 39.53 kB / 499.7 MB, free: 5.953 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001214/0.4412, allocations: 67.23 kB / 499.8 MB, free: 5.887 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-06/0.4412, allocations: 0 / 499.8 MB, free: 5.887 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.9e-06/0.4412, allocations: 0 / 499.8 MB, free: 5.887 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.258e-06/0.4412, allocations: 0 / 499.8 MB, free: 5.887 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007136/0.4419, allocations: 0.5886 MB / 0.4886 GB, free: 5.254 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.416e-06/0.442, allocations: 3.984 kB / 0.4886 GB, free: 5.25 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.933e-06/0.442, allocations: 4.781 kB / 0.4887 GB, free: 5.246 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/0.442, allocations: 4 kB / 0.4887 GB, free: 5.242 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.986e-05/0.442, allocations: 19.98 kB / 0.4887 GB, free: 5.223 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.246e-06/0.442, allocations: 4 kB / 0.4887 GB, free: 5.219 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/0.442, allocations: 4 kB / 0.4887 GB, free: 5.215 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004036/0.4424, allocations: 339 kB / 0.489 GB, free: 4.867 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004793/0.4429, allocations: 0.7064 MB / 0.4897 GB, free: 4.141 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003439/0.4433, allocations: 256.4 kB / 0.4899 GB, free: 3.871 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.014e-05/0.4434, allocations: 16 kB / 0.49 GB, free: 3.855 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001646/0.4436, allocations: 16.77 kB / 0.49 GB, free: 3.84 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001195/0.4437, allocations: 35.81 kB / 0.49 GB, free: 3.805 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000109/0.4438, allocations: 119.9 kB / 0.4901 GB, free: 3.688 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0004265/0.4442, allocations: 366.9 kB / 0.4905 GB, free: 3.332 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008455/0.4451, allocations: 40 kB / 0.4905 GB, free: 3.293 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: 13 ($whenCondition1,$whenCondition2,e_table.y,x_table.y,bUF3S.nextstate,bUF3S.yy,bUF3S.inertialDelaySensitive.x,bUF3S.inertialDelaySensitive.y,bUF3S.inertialDelaySensitive.delayTime,bUF3S.inertialDelaySensitive.y_auxiliary,bUF3S.inertialDelaySensitive.y_old,bUF3S.inertialDelaySensitive.lh,bUF3S.inertialDelaySensitive.t_next) * Number of discrete states: 13 (e_table.y,x_table.y,bUF3S.yy,bUF3S.nextstate,bUF3S.inertialDelaySensitive.y,bUF3S.inertialDelaySensitive.y_auxiliary,bUF3S.inertialDelaySensitive.t_next,bUF3S.inertialDelaySensitive.delayTime,bUF3S.inertialDelaySensitive.lh,bUF3S.inertialDelaySensitive.y_old,$whenCondition2,$whenCondition1,bUF3S.inertialDelaySensitive.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 4 * 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.0001379/0.4452, allocations: 119 kB / 0.4906 GB, free: 3.168 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.000349/0.4456, allocations: 270.8 kB / 0.4909 GB, free: 2.879 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.4456, allocations: 0 / 0.4909 GB, free: 2.879 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002619/0.4459, allocations: 266.7 kB / 0.4911 GB, free: 2.594 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005076/0.4464, allocations: 101 kB / 0.4912 GB, free: 2.5 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009149/0.4473, allocations: 0.5266 MB / 0.4917 GB, free: 1.945 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004479/0.4478, allocations: 0.8251 MB / 0.4926 GB, free: 1.094 MB / 378.7 MB Notification: Performance of SimCode: time 3.3e-07/0.4478, allocations: 0 / 0.4926 GB, free: 1.094 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.BUF3S.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.BUF3S.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.BUF3S.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.BUF3S.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Digital.Examples.BUF3S_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Digital_Examples_BUF3S_fmu --startTime=0 --stopTime=12 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Digital_Examples_BUF3S.fmu > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.BUF3S.pipe 2>&1)