Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Digital.Examples.BUF3S.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.BUF3S,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_BUF3S",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.BUF3S,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001081/0.001081, allocations: 205.6 kB / 8.54 MB, free: 1.805 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.172/1.172, allocations: 225.5 MB / 234.4 MB, free: 3.359 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008986/0.0008985, allocations: 97.19 kB / 286.3 MB, free: 5.242 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09118/0.0921, allocations: 56.9 MB / 343.2 MB, free: 8.613 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07505/0.1672, allocations: 51.48 MB / 394.7 MB, free: 5.086 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.21/0.3771, allocations: 82.8 MB / 477.5 MB, free: 9.867 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001624/0.3773, allocations: 65.16 kB / 477.6 MB, free: 9.844 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.04846/0.4258, allocations: 27.28 MB / 0.493 GB, free: 4.418 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.599e-05/0.4259, allocations: 12 kB / 0.493 GB, free: 4.406 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.483e-05/0.426, allocations: 36.38 kB / 0.4931 GB, free: 4.371 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003298/0.4263, allocations: 261.1 kB / 0.4933 GB, free: 4.082 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.852e-05/0.4263, allocations: 4.625 kB / 0.4933 GB, free: 4.078 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.486e-05/0.4264, allocations: 8.562 kB / 0.4933 GB, free: 4.07 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001541/0.4265, allocations: 59.34 kB / 0.4934 GB, free: 4.027 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002391/0.4268, allocations: 145 kB / 0.4935 GB, free: 3.898 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.652e-06/0.4268, allocations: 4 kB / 0.4935 GB, free: 3.895 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.891e-05/0.4268, allocations: 0 / 0.4935 GB, free: 3.895 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.061e-06/0.4268, allocations: 4 kB / 0.4935 GB, free: 3.891 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007736/0.4276, allocations: 460.7 kB / 0.494 GB, free: 3.484 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001956/0.4278, allocations: 98.98 kB / 0.4941 GB, free: 3.41 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001224/0.428, allocations: 85.25 kB / 0.4941 GB, free: 3.352 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.084e-05/0.428, allocations: 0 / 0.4941 GB, free: 3.352 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002167/0.4282, allocations: 217.3 kB / 0.4943 GB, free: 3.141 MB / 362.7 MB Notification: Performance of pre-optimization done (n=13): time 1.663e-06/0.4282, allocations: 0 / 0.4943 GB, free: 3.141 MB / 362.7 MB Notification: Performance of matching and sorting (n=13): time 0.0004363/0.4287, allocations: 222 kB / 0.4946 GB, free: 2.949 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.136e-05/0.4288, allocations: 165.1 kB / 0.4947 GB, free: 2.754 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005518/0.4293, allocations: 445.8 kB / 0.4951 GB, free: 2.391 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.717e-05/0.4294, allocations: 32.7 kB / 0.4952 GB, free: 2.355 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.788e-05/0.4294, allocations: 88.14 kB / 0.4953 GB, free: 2.27 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.338e-05/0.4295, allocations: 34.92 kB / 0.4953 GB, free: 2.238 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.204e-05/0.4295, allocations: 5.406 kB / 0.4953 GB, free: 2.234 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.132e-05/0.4296, allocations: 324.5 kB / 0.4956 GB, free: 1.914 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001085/0.4297, allocations: 60.8 kB / 0.4957 GB, free: 1.875 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.871e-05/0.4298, allocations: 55.16 kB / 0.4957 GB, free: 1.836 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.642e-05/0.4299, allocations: 51.56 kB / 0.4958 GB, free: 1.801 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.4299, allocations: 0 / 0.4958 GB, free: 1.801 MB / 362.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003482/0.4303, allocations: 206.4 kB / 0.496 GB, free: 1.598 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.451e-05/0.4303, allocations: 4 kB / 0.496 GB, free: 1.594 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.454e-06/0.4303, allocations: 8.062 kB / 0.496 GB, free: 1.586 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.145e-05/0.4303, allocations: 3.906 kB / 0.496 GB, free: 1.582 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.729e-05/0.4303, allocations: 0 / 0.496 GB, free: 1.582 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.487e-06/0.4304, allocations: 0 / 0.496 GB, free: 1.582 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001418/0.4305, allocations: 12 kB / 0.496 GB, free: 1.57 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001211/0.4306, allocations: 127.8 kB / 0.4961 GB, free: 1.445 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.000185/0.4308, allocations: 241.5 kB / 0.4963 GB, free: 1.176 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.138e-05/0.4309, allocations: 40.56 kB / 0.4964 GB, free: 1.137 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001116/0.431, allocations: 67.25 kB / 0.4964 GB, free: 1.066 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.645e-06/0.431, allocations: 4 kB / 0.4964 GB, free: 1.062 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/0.431, allocations: 0 / 0.4964 GB, free: 1.062 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.514e-06/0.431, allocations: 0 / 0.4964 GB, free: 1.062 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006983/0.4317, allocations: 0.5886 MB / 0.497 GB, free: 440 kB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.532e-06/0.4317, allocations: 0 / 0.497 GB, free: 440 kB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.35e-06/0.4318, allocations: 0 / 0.497 GB, free: 440 kB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.385e-06/0.4318, allocations: 0 / 0.497 GB, free: 440 kB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.331e-05/0.4318, allocations: 19.98 kB / 0.497 GB, free: 420 kB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.907e-06/0.4318, allocations: 4 kB / 0.497 GB, free: 416 kB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.4318, allocations: 10.22 kB / 0.4971 GB, free: 408 kB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004128/0.4322, allocations: 343 kB / 0.4974 GB, free: 48 kB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0005004/0.4328, allocations: 0.7103 MB / 0.4981 GB, free: 15.32 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003309/0.4331, allocations: 248.5 kB / 0.4983 GB, free: 15.05 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.362e-05/0.4332, allocations: 12 kB / 0.4983 GB, free: 15.04 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001653/0.4334, allocations: 19.89 kB / 0.4983 GB, free: 15.02 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001131/0.4335, allocations: 31.97 kB / 0.4984 GB, free: 14.99 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001162/0.4336, allocations: 115.8 kB / 0.4985 GB, free: 14.88 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0003871/0.434, allocations: 370.9 kB / 0.4988 GB, free: 14.52 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008344/0.4348, allocations: 36 kB / 0.4989 GB, free: 14.48 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.0001471/0.435, allocations: 119.4 kB / 0.499 GB, free: 14.36 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0003513/0.4353, allocations: 274.7 kB / 0.4992 GB, free: 14.07 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.4354, allocations: 0 / 0.4992 GB, free: 14.07 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002636/0.4356, allocations: 270.8 kB / 0.4995 GB, free: 13.78 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005217/0.4362, allocations: 102.6 kB / 0.4996 GB, free: 13.68 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009175/0.4371, allocations: 0.5148 MB / 0.5001 GB, free: 13.14 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004732/0.4376, allocations: 0.8251 MB / 0.5009 GB, free: 12.29 MB / 378.7 MB Notification: Performance of SimCode: time 2.4e-07/0.4376, allocations: 0 / 0.5009 GB, free: 12.29 MB / 378.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Digital.Examples.BUF3S.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Digital.Examples.BUF3S.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Digital.Examples.BUF3S.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.BUF3S.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Digital.Examples.BUF3S_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Digital_Examples_BUF3S_fmu --startTime=0 --stopTime=12 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Digital_Examples_BUF3S.fmu > Modelica_trunk_Modelica.Electrical.Digital.Examples.BUF3S.pipe 2>&1)