Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Digital.Examples.BUF3S.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.BUF3S,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Digital_Examples_BUF3S",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.BUF3S,fileNamePrefix="Modelica_3_2_3_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 3.2.3+maint.om/package.mo): time 0.001087/0.001087, allocations: 179.7 kB / 8.474 MB, free: 1.879 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.031/1.031, allocations: 205.2 MB / 214.1 MB, free: 13.84 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008434/0.0008433, allocations: 93.86 kB / 262.1 MB, free: 13.54 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09487/0.09575, allocations: 52.99 MB / 315.1 MB, free: 8.5 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1943/0.2901, allocations: 47.56 MB / 362.6 MB, free: 45.82 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08667/0.3768, allocations: 81.08 MB / 443.7 MB, free: 4.805 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001972/0.3771, allocations: 67.97 kB / 443.8 MB, free: 4.738 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.05269/0.4298, allocations: 26.85 MB / 470.6 MB, free: 9.949 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.363e-05/0.4298, allocations: 11.94 kB / 470.6 MB, free: 9.938 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.619e-05/0.4299, allocations: 39.62 kB / 470.7 MB, free: 9.898 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000329/0.4302, allocations: 267.7 kB / 470.9 MB, free: 9.598 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.253e-05/0.4303, allocations: 4 kB / 470.9 MB, free: 9.594 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.694e-05/0.4303, allocations: 12 kB / 471 MB, free: 9.582 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001488/0.4305, allocations: 55.98 kB / 471 MB, free: 9.527 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002374/0.4307, allocations: 145.6 kB / 471.2 MB, free: 9.379 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.435e-06/0.4307, allocations: 0 / 471.2 MB, free: 9.379 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.227e-05/0.4308, allocations: 7.984 kB / 471.2 MB, free: 9.371 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.169e-06/0.4308, allocations: 4 kB / 471.2 MB, free: 9.367 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007272/0.4315, allocations: 461 kB / 471.6 MB, free: 8.879 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001494/0.4317, allocations: 98.55 kB / 471.7 MB, free: 8.773 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001304/0.4318, allocations: 88.88 kB / 471.8 MB, free: 8.684 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.341e-05/0.4318, allocations: 3.906 kB / 471.8 MB, free: 8.68 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002221/0.4321, allocations: 202.7 kB / 472 MB, free: 8.457 MB / 362.7 MB Notification: Performance of pre-optimization done (n=13): time 3.757e-06/0.4321, allocations: 0 / 472 MB, free: 8.457 MB / 362.7 MB Notification: Performance of matching and sorting (n=13): time 0.0004363/0.4325, allocations: 229.1 kB / 472.2 MB, free: 8.227 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.911e-05/0.4326, allocations: 162.2 kB / 472.4 MB, free: 8.031 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005088/0.4331, allocations: 448.5 kB / 472.8 MB, free: 7.59 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.623e-05/0.4332, allocations: 29.7 kB / 472.8 MB, free: 7.555 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.781e-05/0.4332, allocations: 93.12 kB / 472.9 MB, free: 7.461 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.525e-05/0.4333, allocations: 23.77 kB / 473 MB, free: 7.438 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.11e-05/0.4333, allocations: 7.938 kB / 473 MB, free: 7.43 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001306/0.4334, allocations: 326.7 kB / 473.3 MB, free: 7.102 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001122/0.4336, allocations: 67.97 kB / 473.4 MB, free: 7.035 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001106/0.4337, allocations: 60.55 kB / 473.4 MB, free: 6.977 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.336e-05/0.4338, allocations: 47.62 kB / 473.5 MB, free: 6.934 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.4338, allocations: 5.688 kB / 473.5 MB, free: 6.93 MB / 362.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003355/0.4341, allocations: 201.4 kB / 473.7 MB, free: 6.727 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.241e-05/0.4341, allocations: 4 kB / 473.7 MB, free: 6.723 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.278e-06/0.4342, allocations: 0 / 473.7 MB, free: 6.723 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.334e-05/0.4342, allocations: 3.906 kB / 473.7 MB, free: 6.719 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.63e-05/0.4342, allocations: 0 / 473.7 MB, free: 6.719 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.23e-06/0.4342, allocations: 4 kB / 473.7 MB, free: 6.715 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001418/0.4344, allocations: 15.98 kB / 473.7 MB, free: 6.699 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001151/0.4345, allocations: 119.7 kB / 473.8 MB, free: 6.582 MB / 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: 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.0001881/0.4347, allocations: 245.4 kB / 474 MB, free: 6.309 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.199e-05/0.4347, allocations: 39.53 kB / 474.1 MB, free: 6.27 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001169/0.4349, allocations: 71.23 kB / 474.2 MB, free: 6.195 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.937e-06/0.4349, allocations: 3.984 kB / 474.2 MB, free: 6.191 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.847e-06/0.4349, allocations: 0 / 474.2 MB, free: 6.191 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.106e-06/0.4349, allocations: 0 / 474.2 MB, free: 6.191 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000676/0.4356, allocations: 0.5887 MB / 474.7 MB, free: 5.559 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.4356, allocations: 0 / 474.7 MB, free: 5.559 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.969e-06/0.4356, allocations: 0 / 474.7 MB, free: 5.559 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.966e-06/0.4356, allocations: 0.8438 kB / 474.7 MB, free: 5.559 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.93e-05/0.4357, allocations: 23.97 kB / 474.8 MB, free: 5.535 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.332e-06/0.4357, allocations: 0 / 474.8 MB, free: 5.535 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.4357, allocations: 0 / 474.8 MB, free: 5.535 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004213/0.4361, allocations: 342.9 kB / 475.1 MB, free: 5.184 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.000512/0.4366, allocations: 0.7063 MB / 475.8 MB, free: 4.457 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003804/0.437, allocations: 260.5 kB / 476.1 MB, free: 4.184 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.221e-05/0.4371, allocations: 8 kB / 476.1 MB, free: 4.176 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001643/0.4373, allocations: 16.16 kB / 476.1 MB, free: 4.16 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001357/0.4374, allocations: 40.52 kB / 476.1 MB, free: 4.121 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001299/0.4375, allocations: 119.8 kB / 476.2 MB, free: 4.004 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0004475/0.438, allocations: 370.9 kB / 476.6 MB, free: 3.641 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0009396/0.4389, allocations: 36 kB / 476.6 MB, free: 3.605 MB / 362.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.0001937/0.4391, allocations: 115 kB / 476.8 MB, free: 3.48 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004009/0.4396, allocations: 274.8 kB / 477 MB, free: 3.188 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.4396, allocations: 3.094 kB / 477 MB, free: 3.188 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002693/0.4398, allocations: 270.8 kB / 477.3 MB, free: 2.898 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005118/0.4404, allocations: 101.3 kB / 477.4 MB, free: 2.801 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000929/0.4413, allocations: 0.5279 MB / 477.9 MB, free: 2.246 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004604/0.4418, allocations: 0.8212 MB / 478.7 MB, free: 1.398 MB / 362.7 MB Notification: Performance of SimCode: time 3.71e-07/0.4418, allocations: 0 / 478.7 MB, free: 1.398 MB / 362.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.BUF3S.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Digital.Examples.BUF3S.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Digital.Examples.BUF3S.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.BUF3S.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Digital.Examples.BUF3S_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Digital_Examples_BUF3S_fmu --startTime=0 --stopTime=12 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Digital_Examples_BUF3S.fmu > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.BUF3S.pipe 2>&1)